This is an automated email from the ASF dual-hosted git repository.

zhfeng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit 842aca0fecdd64e5899365525a5b4f57d0c90c55
Author: Zheng Feng <zh.f...@gmail.com>
AuthorDate: Fri Jun 30 10:11:21 2023 +0800

    Add a work around for google-pubsub and google-storage tests
---
 .../reference/extensions/google-bigquery.adoc      | 12 ++++++++++++
 .../pages/reference/extensions/google-pubsub.adoc  |  8 ++++++++
 .../pages/reference/extensions/google-storage.adoc | 12 ++++++++++++
 .../runtime/src/main/doc/limitations.adoc          |  7 +++++++
 .../runtime/src/main/doc/limitations.adoc          |  8 ++++++++
 .../runtime/src/main/doc/limitations.adoc          |  7 +++++++
 .../META-INF/native-image/native-image.properties  | 22 ++++++++++++++++++++++
 .../META-INF/native-image/native-image.properties  | 22 ++++++++++++++++++++++
 8 files changed, 98 insertions(+)

diff --git a/docs/modules/ROOT/pages/reference/extensions/google-bigquery.adoc 
b/docs/modules/ROOT/pages/reference/extensions/google-bigquery.adoc
index 15697e0177..8683a6765e 100644
--- a/docs/modules/ROOT/pages/reference/extensions/google-bigquery.adoc
+++ b/docs/modules/ROOT/pages/reference/extensions/google-bigquery.adoc
@@ -52,3 +52,15 @@ If you want to read SQL scripts from the classpath with 
`google-bigquery-sql` in
 then you will need to ensure that they are added to the native image via the 
`quarkus.native.resources.includes` configuration property.
 Please check 
https://quarkus.io/guides/building-native-image#quarkus-native-pkg-native-config_quarkus.native.resources.includes[Quarkus
 documentation] for more details.
 
+
+[id="extensions-google-bigquery-camel-quarkus-limitations"]
+== Camel Quarkus limitations
+
+Currently it needs a work around in native building to introduce a 
native-image.properties file containing the following line:
+[source,properties]
+----
+Args = -H:+RunReachabilityHandlersConcurrently
+----
+
+Also this file needs to be in your application, e.g. 
`src/main/resources/META-INF/native-image/native-image.properties`
+
diff --git a/docs/modules/ROOT/pages/reference/extensions/google-pubsub.adoc 
b/docs/modules/ROOT/pages/reference/extensions/google-pubsub.adoc
index af8baf5896..7e23da4574 100644
--- a/docs/modules/ROOT/pages/reference/extensions/google-pubsub.adoc
+++ b/docs/modules/ROOT/pages/reference/extensions/google-pubsub.adoc
@@ -55,3 +55,11 @@ Since such serialization is not yet supported by GraalVM, 
this extension provide
 If your payload contains binary data, then you will need to handle that by 
creating a custom Jackson Serializer / Deserializer. Refer to the 
https://quarkus.io/guides/writing-extensions#customizing-jackson[Quarkus 
Jackson guide] for 
 information on how to do this.
 
+Currently it needs a work around in native building to introduce a 
native-image.properties file containing the following line:
+[source,properties]
+----
+Args = -H:+RunReachabilityHandlersConcurrently
+----
+
+Also this file needs to be in your application, e.g. 
`src/main/resources/META-INF/native-image/native-image.properties`
+
diff --git a/docs/modules/ROOT/pages/reference/extensions/google-storage.adoc 
b/docs/modules/ROOT/pages/reference/extensions/google-storage.adoc
index 67158f2a36..453c55c802 100644
--- a/docs/modules/ROOT/pages/reference/extensions/google-storage.adoc
+++ b/docs/modules/ROOT/pages/reference/extensions/google-storage.adoc
@@ -44,6 +44,18 @@ ifeval::[{doc-show-user-guide-link} == true]
 Check the xref:user-guide/index.adoc[User guide] for more information about 
writing Camel Quarkus applications.
 endif::[]
 
+[id="extensions-google-storage-camel-quarkus-limitations"]
+== Camel Quarkus limitations
+
+Currently it needs a work around in native building to introduce a 
native-image.properties file containing the following line:
+[source,properties]
+----
+Args = -H:+RunReachabilityHandlersConcurrently
+----
+
+Also this file needs to be in your application, e.g. 
`src/main/resources/META-INF/native-image/native-image.properties`
+
+
 [id="extensions-google-storage-ssl-in-native-mode"]
 == SSL in native mode
 
diff --git a/extensions/google-bigquery/runtime/src/main/doc/limitations.adoc 
b/extensions/google-bigquery/runtime/src/main/doc/limitations.adoc
new file mode 100644
index 0000000000..d409fbb62a
--- /dev/null
+++ b/extensions/google-bigquery/runtime/src/main/doc/limitations.adoc
@@ -0,0 +1,7 @@
+Currently it needs a work around in native building to introduce a 
native-image.properties file containing the following line:
+[source,properties]
+----
+Args = -H:+RunReachabilityHandlersConcurrently
+----
+
+Also this file needs to be in your application, e.g. 
`src/main/resources/META-INF/native-image/native-image.properties`
diff --git a/extensions/google-pubsub/runtime/src/main/doc/limitations.adoc 
b/extensions/google-pubsub/runtime/src/main/doc/limitations.adoc
index 49606e0151..0feb98ccc4 100644
--- a/extensions/google-pubsub/runtime/src/main/doc/limitations.adoc
+++ b/extensions/google-pubsub/runtime/src/main/doc/limitations.adoc
@@ -4,3 +4,11 @@ Since such serialization is not yet supported by GraalVM, this 
extension provide
 
 If your payload contains binary data, then you will need to handle that by 
creating a custom Jackson Serializer / Deserializer. Refer to the 
https://quarkus.io/guides/writing-extensions#customizing-jackson[Quarkus 
Jackson guide] for 
 information on how to do this.
+
+Currently it needs a work around in native building to introduce a 
native-image.properties file containing the following line:
+[source,properties]
+----
+Args = -H:+RunReachabilityHandlersConcurrently
+----
+
+Also this file needs to be in your application, e.g. 
`src/main/resources/META-INF/native-image/native-image.properties`
diff --git a/extensions/google-storage/runtime/src/main/doc/limitations.adoc 
b/extensions/google-storage/runtime/src/main/doc/limitations.adoc
new file mode 100644
index 0000000000..d409fbb62a
--- /dev/null
+++ b/extensions/google-storage/runtime/src/main/doc/limitations.adoc
@@ -0,0 +1,7 @@
+Currently it needs a work around in native building to introduce a 
native-image.properties file containing the following line:
+[source,properties]
+----
+Args = -H:+RunReachabilityHandlersConcurrently
+----
+
+Also this file needs to be in your application, e.g. 
`src/main/resources/META-INF/native-image/native-image.properties`
diff --git 
a/integration-tests/google-pubsub/src/main/resources/META-INF/native-image/native-image.properties
 
b/integration-tests/google-pubsub/src/main/resources/META-INF/native-image/native-image.properties
new file mode 100644
index 0000000000..8765562aa7
--- /dev/null
+++ 
b/integration-tests/google-pubsub/src/main/resources/META-INF/native-image/native-image.properties
@@ -0,0 +1,22 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+#
+# TODO: it should be removed once https://github.com/oracle/graal/issues/6904 
get fixed
+#       or https://github.com/oracle/graal/pull/6908 get merged and gax-grpc 
drops the
+#       -H:-RunReachabilityHandlersConcurrently
+#
+Args = -H:+RunReachabilityHandlersConcurrently
diff --git 
a/integration-tests/google-storage/src/main/resources/META-INF/native-image/native-image.properties
 
b/integration-tests/google-storage/src/main/resources/META-INF/native-image/native-image.properties
new file mode 100644
index 0000000000..8765562aa7
--- /dev/null
+++ 
b/integration-tests/google-storage/src/main/resources/META-INF/native-image/native-image.properties
@@ -0,0 +1,22 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+#
+# TODO: it should be removed once https://github.com/oracle/graal/issues/6904 
get fixed
+#       or https://github.com/oracle/graal/pull/6908 get merged and gax-grpc 
drops the
+#       -H:-RunReachabilityHandlersConcurrently
+#
+Args = -H:+RunReachabilityHandlersConcurrently

Reply via email to