hk-lrzy commented on a change in pull request #2581:
URL: https://github.com/apache/hudi/pull/2581#discussion_r581232576
##########
File path:
hudi-flink/src/main/java/org/apache/hudi/operator/partitioner/BucketAssignFunction.java
##########
@@ -100,6 +160,12 @@ public void initializeState(FunctionInitializationContext
context) {
TypeInformation.of(HoodieKey.class),
TypeInformation.of(HoodieRecordLocation.class));
indexState = context.getKeyedStateStore().getMapState(indexStateDesc);
+ MapStateDescriptor<String, Integer> partitionLoadStateDesc =
+ new MapStateDescriptor<>("partitionLoadState", Types.STRING,
Types.INT);
+ partitionLoadState =
context.getKeyedStateStore().getMapState(partitionLoadStateDesc);
Review comment:
i remembered that `partitionLoadState` is a keystate rather than
operatorstate, so can't access `initializeState` and `notifyCheckpointComplete`.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]