swamirishi commented on code in PR #8787:
URL: https://github.com/apache/ozone/pull/8787#discussion_r2212829117


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmSnapshotManager.java:
##########
@@ -217,6 +217,9 @@ public OmSnapshotManager(OzoneManager ozoneManager) {
         OZONE_OM_SNAPSHOT_DB_MAX_OPEN_FILES,
         OZONE_OM_SNAPSHOT_DB_MAX_OPEN_FILES_DEFAULT
     );
+    Preconditions.checkArgument(this.maxOpenSstFilesInSnapshotDb > 0,

Review Comment:
   @jojochuang even 0 & -1 should be allowed. Rocksdb allows these values.
   -1: Use unlimited number of open files (not recommended unless you manage 
file descriptors externally).
   
   0: RocksDB will open file descriptors on demand, and cache only a small 
number (like table readers) — suitable for low file descriptor environments.
   
   > 0: RocksDB will keep up to this number of files open at once. The typical 
value is in the hundreds or thousands, depending on your OS limits.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to