You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by AsterixDB Code Review <do...@asterix-gerrit.ics.uci.edu> on 2026/10/07 22:34:40 UTC
[XS] Change in asterixdb[master]: [ASTERIXDB-3947][STO] Rename the max open descriptors option
From Michael Blow <mb...@apache.org>:
Michael Blow has uploaded this change for review. ( https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/22016?usp=email )
Change subject: [ASTERIXDB-3947][STO] Rename the max open descriptors option
......................................................................
[ASTERIXDB-3947][STO] Rename the max open descriptors option
- user model changes: yes
- storage format changes: no
- interface changes: no
Details: Rename STORAGE_BUFFERCACHE_MAXOPENDESCRIPTORS to
STORAGE_BUFFER_CACHE_MAX_OPEN_DESCRIPTORS, so its key reads
storage.buffer.cache.max.open.descriptors rather than running the words
together. The option has not been released, so the old name is not kept.
Ext-ref: MB-74476
Generated-by: Claude Opus 5.5 <no...@anthropic.com>
Change-Id: I5cec40b598c555887d745486971d1f7eba8f3708
---
M asterixdb/asterix-common/src/main/java/org/apache/asterix/common/config/StorageProperties.java
M asterixdb/asterix-doc/src/site/markdown/ncservice.md
2 files changed, 4 insertions(+), 4 deletions(-)
git pull ssh://asterix-gerrit.ics.uci.edu:29418/asterixdb refs/changes/16/22016/1
diff --git a/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/config/StorageProperties.java b/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/config/StorageProperties.java
index 31a390f..7f193d7 100644
--- a/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/config/StorageProperties.java
+++ b/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/config/StorageProperties.java
@@ -56,7 +56,7 @@
// By default, uses 1/4 of the maximum heap size for read cache, i.e., disk buffer cache.
STORAGE_BUFFERCACHE_SIZE(POSITIVE_LONG_BYTE_UNIT, MAX_HEAP_BYTES / 4),
STORAGE_BUFFERCACHE_MAXOPENFILES(NONNEGATIVE_INTEGER, Integer.MAX_VALUE),
- STORAGE_BUFFERCACHE_MAXOPENDESCRIPTORS(NONNEGATIVE_INTEGER, 0),
+ STORAGE_BUFFER_CACHE_MAX_OPEN_DESCRIPTORS(NONNEGATIVE_INTEGER, 0),
STORAGE_MEMORYCOMPONENT_GLOBALBUDGET(POSITIVE_LONG_BYTE_UNIT, MAX_HEAP_BYTES / 4),
STORAGE_MEMORYCOMPONENT_PAGESIZE(POSITIVE_INTEGER_BYTE_UNIT, StorageUtil.getIntSizeInBytes(128, KILOBYTE)),
STORAGE_MEMORYCOMPONENT_NUMCOMPONENTS(POSITIVE_INTEGER, 2),
@@ -139,7 +139,7 @@
+ " of the buffer cache page size.";
case STORAGE_BUFFERCACHE_MAXOPENFILES:
return "The maximum number of open files in the buffer cache";
- case STORAGE_BUFFERCACHE_MAXOPENDESCRIPTORS:
+ case STORAGE_BUFFER_CACHE_MAX_OPEN_DESCRIPTORS:
return "The number of OS file descriptors the buffer cache aims to hold at most. Beyond it, the"
+ " descriptors of the least recently used files with no I/O in progress and no unforced"
+ " writes are closed, and reopened on their next I/O. 0 means half of the process's"
@@ -276,7 +276,7 @@
* limit cannot be determined
*/
public int getBufferCacheMaxOpenDescriptors() {
- int configured = accessor.getInt(Option.STORAGE_BUFFERCACHE_MAXOPENDESCRIPTORS);
+ int configured = accessor.getInt(Option.STORAGE_BUFFER_CACHE_MAX_OPEN_DESCRIPTORS);
if (configured > 0) {
return configured;
}
diff --git a/asterixdb/asterix-doc/src/site/markdown/ncservice.md b/asterixdb/asterix-doc/src/site/markdown/ncservice.md
index 2f16b18..4ce41ec 100644
--- a/asterixdb/asterix-doc/src/site/markdown/ncservice.md
+++ b/asterixdb/asterix-doc/src/site/markdown/ncservice.md
@@ -324,7 +324,7 @@
| nc | result.public.port | Public IP port to announce dataset result distribution listener | same as result.listen.port |
| nc | result.sweep.threshold | The duration within which an instance of the result cleanup should be invoked in milliseconds | 60000 |
| nc | result.ttl | Limits the amount of time results for asynchronous jobs should be retained by the system in milliseconds | 86400000 |
-| nc | storage.buffercache.maxopendescriptors | The number of OS file descriptors the buffer cache aims to hold at most. Beyond it, the descriptors of the least recently used files with no I/O in progress and no unforced writes are closed, and reopened on their next I/O. 0 means half of the process's maximum number of open files, or unbounded where that limit cannot be determined. Not applied on cloud storage | 0 |
+| nc | storage.buffer.cache.max.open.descriptors | The number of OS file descriptors the buffer cache aims to hold at most. Beyond it, the descriptors of the least recently used files with no I/O in progress and no unforced writes are closed, and reopened on their next I/O. 0 means half of the process's maximum number of open files, or unbounded where that limit cannot be determined. Not applied on cloud storage | 0 |
| nc | storage.buffercache.maxopenfiles | The maximum number of open files in the buffer cache | 2147483647 |
| nc | storage.buffercache.pagesize | The page size in bytes for pages in the buffer cache | 131072 (128 kB) |
| nc | storage.buffercache.size | The size of memory allocated to the disk buffer cache. The value should be a multiple of the buffer cache page size. | 1/4 of the JVM allocated memory |
--
To view, visit https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/22016?usp=email
To unsubscribe, or for help writing mail filters, visit https://asterix-gerrit.ics.uci.edu/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Change-Id: I5cec40b598c555887d745486971d1f7eba8f3708
Gerrit-Change-Number: 22016
Gerrit-PatchSet: 1
Gerrit-Owner: Michael Blow <mb...@apache.org>