AmandeepSingh285 commented on code in PR #3695:
URL: https://github.com/apache/celeborn/pull/3695#discussion_r3296612629
##########
common/src/main/scala/org/apache/celeborn/common/CelebornConf.scala:
##########
@@ -4520,6 +4528,62 @@ object CelebornConf extends Logging {
.checkValues(Set("LEVELDB", "ROCKSDB"))
.createWithDefault("ROCKSDB")
+ val WORKER_RECOVER_DB_AUTO_RECOVERY: ConfigEntry[Boolean] =
+ buildConf("celeborn.metadata.autoRecovery.enabled")
+ .categories("worker")
+ .doc("If true, the metadata DB will automatically attempt to recover
from RocksDBException " +
+ "errors during put/get/delete operations. Recovery tries a safe
reopen. " +
+ "If false, RocksDBException errors are propagated directly to the
caller.")
+ .version("0.7.0")
+ .booleanConf
+ .createWithDefault(false)
+
+ private val rocksDBCompressionTypes: Set[String] = Set(
+ "NO_COMPRESSION",
+ "SNAPPY_COMPRESSION",
+ "ZLIB_COMPRESSION",
+ "BZLIB2_COMPRESSION",
+ "LZ4_COMPRESSION",
+ "LZ4HC_COMPRESSION",
+ "XPRESS_COMPRESSION",
+ "ZSTD_COMPRESSION",
+ "DISABLE_COMPRESSION_OPTION")
Review Comment:
These were the available compression options -
NO_COMPRESSION((byte) 0x0, null, "kNoCompression"),
SNAPPY_COMPRESSION((byte) 0x1, "snappy", "kSnappyCompression"),
ZLIB_COMPRESSION((byte) 0x2, "z", "kZlibCompression"),
BZLIB2_COMPRESSION((byte) 0x3, "bzip2", "kBZip2Compression"),
LZ4_COMPRESSION((byte) 0x4, "lz4", "kLZ4Compression"),
LZ4HC_COMPRESSION((byte) 0x5, "lz4hc", "kLZ4HCCompression"),
XPRESS_COMPRESSION((byte) 0x6, "xpress", "kXpressCompression"),
ZSTD_COMPRESSION((byte) 0x7, "zstd", "kZSTD"),
DISABLE_COMPRESSION_OPTION((byte) 0x7F, null, "kDisableCompressionOption");
Used the same compression types in the change
--
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]