yuzhaojing commented on code in PR #5890:
URL: https://github.com/apache/hudi/pull/5890#discussion_r900689937
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/configuration/FlinkOptions.java:
##########
@@ -594,6 +594,12 @@ private FlinkOptions() {
.defaultValue(false) // default false for pipeline
.withDescription("Schedule the cluster plan, default false");
+ public static final ConfigOption<Boolean> CLUSTERING_ASYNC_ENABLED =
ConfigOptions
+ .key("clustering.async.enabled")
+ .booleanType()
+ .defaultValue(false) // default false for pipeline
+ .withDescription("Async Clustering, default fals");
+
Review Comment:
fixed.
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/StreamWriteOperatorCoordinator.java:
##########
@@ -253,6 +253,14 @@ public void notifyCheckpointComplete(long checkpointId) {
CompactionUtil.scheduleCompaction(metaClient, writeClient,
tableState.isDeltaTimeCompaction, committed);
}
+ if (tableState.scheduleClustering && committed) {
+ // if async clustering is on, schedule the clustering
+ if (OptionsResolver.isBucketIndexType(conf)) {
+ throw new UnsupportedOperationException("Bucket index not
supported for clustering.");
+ }
Review Comment:
fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]