zoltar9264 commented on code in PR #22458:
URL: https://github.com/apache/flink/pull/22458#discussion_r1176280348
##########
flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBResourceContainer.java:
##########
@@ -59,6 +59,9 @@
public final class RocksDBResourceContainer implements AutoCloseable {
private static final Logger LOG =
LoggerFactory.getLogger(RocksDBResourceContainer.class);
+ // the filename length limit is 255 on most operating systems
+ private static final int INSTANCE_PATH_LENGTH_LIMIT = 255 -
"_LOG".length();
Review Comment:
Because when log dir is set, rocksdb will add the suffix '_LOG' to the
instance path as the log file name, you can check it in
https://github.com/ververica/frocksdb/blob/FRocksDB-6.20.3/file/filename.cc#L31
--
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]