masteryhx commented on code in PR #14611: URL: https://github.com/apache/flink/pull/14611#discussion_r1305114733
########## flink-runtime/src/main/java/org/apache/flink/runtime/state/KeyedStateBackend.java: ########## @@ -30,6 +30,11 @@ /** * A keyed state backend provides methods for managing keyed state. * + * <h2>Not Thread-Safe</h2> + * + * State access in keyed state backend dose not require thread safety as each task is executed by + * one thread. Current implementations (Heap/RocksDB keyed state backend) are not thread-safe. + * Review Comment: How about also adding `@NotThreadSafe` to these classes ? -- 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]
