masteryhx commented on code in PR #24322:
URL: https://github.com/apache/flink/pull/24322#discussion_r1526040906


##########
flink-state-backends/flink-statebackend-rocksdb/src/test/java/org/apache/flink/contrib/streaming/state/RocksDBNativeMetricOptionsTest.java:
##########
@@ -29,7 +29,11 @@ public class RocksDBNativeMetricOptionsTest {
     public void testNativeMetricsConfigurable() {
         for (RocksDBProperty property : RocksDBProperty.values()) {
             Configuration config = new Configuration();
-            config.setBoolean(property.getConfigKey(), true);
+            if (property.getConfigKey().contains("num-files-at-level")) {
+                
config.setBoolean("state.backend.rocksdb.metrics.num-files-at-level", true);

Review Comment:
   ```suggestion
                   
config.setBoolean(RocksDBNativeMetricOptions.MONITOR_NUM_FILES_AT_LEVEL.key(), 
true);
   ```



-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to