Skip to content

Commit 8afa097

Browse files
committed
Relocate apache http package
1 parent 76b9a72 commit 8afa097

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

hudi-aws/src/main/java/org/apache/hudi/aws/sync/AWSGlueCatalogSyncClient.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,8 @@ public void addPartitionsToTable(String tableName, List<String> partitionsToAdd)
138138

139139
BatchCreatePartitionResult result = awsGlue.batchCreatePartition(request);
140140
if (CollectionUtils.nonEmpty(result.getErrors())) {
141-
if(result.getErrors().stream().allMatch((error) -> "AlreadyExistsException".equals(error.getErrorDetail().getErrorCode()))){
142-
LOG.warn("Partitions already exist in glue: " + result.getErrors());
143-
} else{
144-
throw new HoodieGlueSyncException("Fail to add partitions to " + tableId(databaseName, tableName)
141+
throw new HoodieGlueSyncException("Fail to add partitions to " + tableId(databaseName, tableName)
145142
+ " with error(s): " + result.getErrors());
146-
}
147143
}
148144
Thread.sleep(BATCH_REQUEST_SLEEP_MILLIS);
149145
}

packaging/hudi-spark-bundle/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@
150150
<pattern>javax.servlet.</pattern>
151151
<shadedPattern>org.apache.hudi.javax.servlet.</shadedPattern>
152152
</relocation>
153+
<relocation>
154+
<pattern>org.apache.http.</pattern>
155+
<shadedPattern>org.apache.hudi.org.apache.http.</shadedPattern>
156+
</relocation>
153157
<relocation>
154158
<pattern>com.yammer.metrics.</pattern>
155159
<shadedPattern>org.apache.hudi.com.yammer.metrics.</shadedPattern>

0 commit comments

Comments
 (0)