Zakelly commented on a change in pull request #17874: URL: https://github.com/apache/flink/pull/17874#discussion_r757245729
########## File path: flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/EmbeddedRocksDBStateBackend.java ########## @@ -500,15 +509,15 @@ private RocksDBOptionsFactory configureOptionsFactory( return originalOptionsFactory; } - // if using DefaultConfigurableOptionsFactory by default, we could avoid reflection to speed - // up. - if (factoryClassName.equalsIgnoreCase(DefaultConfigurableOptionsFactory.class.getName())) { - DefaultConfigurableOptionsFactory optionsFactory = - new DefaultConfigurableOptionsFactory(); - optionsFactory.configure(config); - LOG.info("Using default options factory: {}.", optionsFactory); - - return optionsFactory; + // From FLINK-24046, we deprecate the DefaultConfigurableOptionsFactory. + if (factoryClassName == null) { + return null; + } else if (factoryClassName.equalsIgnoreCase( + DefaultConfigurableOptionsFactory.class.getName())) { + LOG.info( + "{} is deprecated. Please remove this value from the configuration.", Review comment: Good point. I'll add those warnings. -- 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