cshuo commented on code in PR #19805:
URL: https://github.com/apache/hudi/pull/19805#discussion_r3922002267
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/configuration/OptionsResolver.java:
##########
@@ -262,6 +265,16 @@ public static boolean
isGlobalRecordLevelIndex(Configuration conf) {
return indexType == HoodieIndex.IndexType.GLOBAL_RECORD_LEVEL_INDEX;
}
+ /**
+ * Returns whether the table uses partitioned record level index served by
the local RocksDB-based
+ * partitioned index cache, i.e. {@link FlinkOptions#INDEX_RLI_BACKEND_TYPE}
is configured as {@code rocksdb}.
+ */
+ public static boolean isTimeBoundedRLIBootstrapEnabled(Configuration conf) {
+ return isRecordLevelIndex(conf)
Review Comment:
One possible solution is not set `INDEX_BOOTSTRAP_ENABLED` always as false
for partitioned RLI in `HoodieTableFactory#setupWriteOptions`, i.e., if the
time bounded bootstrap is enabled, `INDEX_BOOTSTRAP_ENABLED` should be set as
true. Then the enable condition for bootstrap in Pipelines can be simplified.
--
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]