."filestore_merge_threshold" can be set to a negative value as expected
If the `filestore_merge_threshold` parameter is set to a negative value, merging of subdirectories is disabled. Previously, an attempt to set `filestore_merge_threshold` to a negative value by using the command line failed and an error message similar to the following one was returned:
----
"error": "error setting 'filestore_merge_threshold' to '-40': (22) Invalid argument"
----
As a consequence, it was not possible to disable merging of subdirectories. This bug has been fixed, and `filestore_merge_threshold` can now be set to a negative value as expected.
Description of problem:
In the filestore-config-ref we say...
filestore merge threshold
Description: Min number of files in a subdir before merging into parent NOTE: A > negative value means to disable subdir merging
But running the following gives an error.
# ceph --admin-daemon /var/run/ceph/ceph-osd.312.asok config set filestore_merge_threshold -40
{
"error": "error setting 'filestore_merge_threshold' to '-40': (22) Invalid argument"
}
Version-Release number of selected component (if applicable):
ceph-0.94.3-3.el7cp.x86_64
How reproducible:
100%
Steps to Reproduce:
1. ceph --admin-daemon /var/run/ceph/ceph-osd.312.asok config set filestore_merge_threshold -40
Actual results:
"error": "error setting 'filestore_merge_threshold' to '-40': (22) Invalid argument"
Expected results:
"success": "filestore_merge_threshold = '-40' "
Additional info:
This is being worked in http://tracker.ceph.com/issues/13829
Not sure how this got overlooked but I guess I didn't fully understand the process involved at that time.
I've created http://tracker.ceph.com/issues/16680 and am working on a backport now.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHSA-2016-1972.html
Description of problem: In the filestore-config-ref we say... filestore merge threshold Description: Min number of files in a subdir before merging into parent NOTE: A > negative value means to disable subdir merging But running the following gives an error. # ceph --admin-daemon /var/run/ceph/ceph-osd.312.asok config set filestore_merge_threshold -40 { "error": "error setting 'filestore_merge_threshold' to '-40': (22) Invalid argument" } Version-Release number of selected component (if applicable): ceph-0.94.3-3.el7cp.x86_64 How reproducible: 100% Steps to Reproduce: 1. ceph --admin-daemon /var/run/ceph/ceph-osd.312.asok config set filestore_merge_threshold -40 Actual results: "error": "error setting 'filestore_merge_threshold' to '-40': (22) Invalid argument" Expected results: "success": "filestore_merge_threshold = '-40' " Additional info: This is being worked in http://tracker.ceph.com/issues/13829