tisonkun commented on code in PR #21249:
URL: https://github.com/apache/flink/pull/21249#discussion_r1016479532
##########
flink-connectors/flink-connector-pulsar/src/main/java/org/apache/flink/connector/pulsar/sink/config/SinkConfiguration.java:
##########
@@ -62,6 +65,8 @@ public SinkConfiguration(Configuration configuration) {
this.messageKeyHash = get(PULSAR_MESSAGE_KEY_HASH);
this.enableSchemaEvolution = get(PULSAR_WRITE_SCHEMA_EVOLUTION);
this.maxRecommitTimes = get(PULSAR_MAX_RECOMMIT_TIMES);
+ this.enableMetrics =
+ !get(PULSAR_ENABLE_SINK_METRICS) &&
get(PULSAR_STATS_INTERVAL_SECONDS) > 0;
Review Comment:
```suggestion
get(PULSAR_ENABLE_SINK_METRICS) &&
get(PULSAR_STATS_INTERVAL_SECONDS) > 0;
```
ditto
--
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]