Skip to content

Commit

Permalink
Fix apache#5006 to add a work around for google-bigquery
Browse files Browse the repository at this point in the history
  • Loading branch information
zhfeng committed Jul 3, 2023
1 parent 9197483 commit 584ac5c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@
*/
package org.apache.camel.quarkus.component.google.bigquery.deployment;

import java.util.List;

import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem;

class GoogleBigqueryProcessor {
private static final String FEATURE = "camel-google-bigquery";
Expand All @@ -29,12 +26,4 @@ class GoogleBigqueryProcessor {
FeatureBuildItem feature() {
return new FeatureBuildItem(FEATURE);
}

@BuildStep
public List<RuntimeInitializedClassBuildItem> runtimeInitializedClass() {
return List.of(
new RuntimeInitializedClassBuildItem("org.apache.arrow.memory.BaseAllocator"),
new RuntimeInitializedClassBuildItem("org.apache.arrow.memory.DefaultAllocationManagerFactory"),
new RuntimeInitializedClassBuildItem("org.apache.arrow.memory.NettyAllocationManager"));
}
}
6 changes: 6 additions & 0 deletions extensions/google-bigquery/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-google-bigquery</artifactId>
<exclusions>
<exclusion>
<groupId>org.apache.arrow</groupId>
<artifactId>arrow-memory-netty</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jboss.logmanager</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 584ac5c

Please sign in to comment.