HuangZhenQiu commented on code in PR #18762:
URL: https://github.com/apache/hudi/pull/18762#discussion_r3263890977
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/partitioner/index/GlobalRecordLevelIndexBackend.java:
##########
@@ -67,9 +71,16 @@ public GlobalRecordLevelIndexBackend(Configuration conf,
long initCheckpointId)
this.metaClient = StreamerUtil.createMetaClient(conf);
this.conf = conf;
this.recordIndexCache = new RecordIndexCache(conf, initCheckpointId);
+ registerMetrics(new UnregisteredMetricsGroup());
Review Comment:
initialize metrics, so that we don't need to do metrics != null check.
--
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]