cshuo commented on code in PR #18894:
URL: https://github.com/apache/hudi/pull/18894#discussion_r3346937572
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/partitioner/GlobalRecordIndexPartitioner.java:
##########
@@ -93,6 +95,14 @@ public static int computeNumShardsAssigned(int taskIndex,
int numPartitions, int
static int getNumFileGroupsForRecordIndexPartition(Configuration conf) {
String tablePath = conf.get(FlinkOptions.PATH);
HoodieTableMetaClient metaClient = StreamerUtil.createMetaClient(conf);
+ // For flink adaptive batch execution, writer coordinator is not started
yet, so metadata table
+ // is not initialized for a new table.
+ if
(!metaClient.getTableConfig().isMetadataPartitionAvailable(MetadataPartitionType.RECORD_INDEX))
{
+ // Get the minimum file group count used to initialize global record
level index from
+ // the write config, since the config value is customized for the flink
writer.
+ HoodieWriteConfig writeConfig =
FlinkWriteClients.getHoodieClientConfig(conf);
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]