]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Retain overridden mClock recovery settings across osd restarts
authorSridhar Seshasayee <sseshasa@redhat.com>
Tue, 21 Feb 2023 12:24:36 +0000 (17:54 +0530)
committerSridhar Seshasayee <sseshasa@redhat.com>
Thu, 27 Apr 2023 13:12:31 +0000 (18:42 +0530)
commit9d1a64cb54d2adf12cacfaedcec8d030518f55c7
tree6c1816cd326004fd669f33782b242ba2df4eefe3
parent17a6106934338ea40133e0dc7e085559b3685042
osd: Retain overridden mClock recovery settings across osd restarts

Fix an issue where an overridden mClock recovery setting (set prior to
an osd restart) could be lost after an osd restart.

For e.g., consider that prior to an osd restart, the option
'osd_max_backfill' was successfully set to a value different from the
mClock default. If the osd was restarted for some reason, the
boot-up sequence was incorrectly resetting the backfill value to the
mclock default within the async local/remote reservers. This fix
ensures that no change is made if the current overriden value is
different from the mClock default.

Modify an existing standalone test to verify that the local and remote
async reservers are updated to the desired number of backfills under
normal conditions and also across osd restarts.

Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
qa/standalone/misc/mclock-config.sh
src/osd/OSD.cc