danny0405 commented on code in PR #18813:
URL: https://github.com/apache/hudi/pull/18813#discussion_r3314742397


##########
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:
   is this just for testing, can we fire a separate PR to clean up these and 
fix the tests.



-- 
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]

Reply via email to