skywalker0618 commented on code in PR #18813:
URL: https://github.com/apache/hudi/pull/18813#discussion_r3319910807
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/partitioner/index/RecordLevelIndexBackend.java:
##########
@@ -96,9 +102,18 @@ public RecordLevelIndexBackend(Configuration conf,
BootstrapFilter bootstrapFilt
this.metaClient = StreamerUtil.createMetaClient(conf);
this.maxCacheSizeInBytes = conf.get(FlinkOptions.INDEX_RLI_CACHE_SIZE) *
1024 * 1024;
this.bootstrapFilter = bootstrapFilter;
+ // Pre-seed metrics with an unregistered group so the backend is safe to
use before the
+ // bucket assign operator wires the real metric group via
registerMetrics(MetricGroup).
+ registerMetrics(new UnregisteredMetricsGroup());
Review Comment:
@danny0405 Sure, I created one PR to clean up this:
https://github.com/apache/hudi/pull/18875. Do you mind taking a look? Thanks
--
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]