Zakelly commented on a change in pull request #17874:
URL: https://github.com/apache/flink/pull/17874#discussion_r758892979



##########
File path: 
flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/EmbeddedRocksDBStateBackend.java
##########
@@ -521,6 +532,16 @@ private RocksDBOptionsFactory configureOptionsFactory(
                             ((ConfigurableRocksDBOptionsFactory) 
optionsFactory).configure(config);
                 }
                 LOG.info("Using configured options factory: {}.", 
optionsFactory);
+                if 
(DefaultConfigurableOptionsFactory.class.isAssignableFrom(clazz)) {
+                    LOG.warn(
+                            "{} is extending from {}, which is deprecated and 
will be removed in "
+                                    + "future. It is highly recommended to 
directly implement the "
+                                    + "ConfigurableRocksDBOptionsFactory 
without extending the {}. "
+                                    + "For more information, please refer to 
FLINK-24046.",
+                            optionsFactory,
+                            DefaultConfigurableOptionsFactory.class.getName(),
+                            DefaultConfigurableOptionsFactory.class.getName());

Review comment:
       Sure, I refined this method.




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