+++ This bug was initially created as a clone of Bug #1337391 +++ Description of problem: ======================== Currently, the command 'gluster volume bitrot <volname> scrub-frequency' can set the frequency to hourly/daily/weekly/biweekly/monthly. For testing, we set the frequency to the minimum possible, i.e., an hour. After corrupting a file, we are forced to wait out an entire hour (or more) for the scrubber to mark the file as 'corrupted'. The above mentioned step is one of the common task that is followed for most test cases. This leads to unnecessary inconvenience when testing bitrot feature. Needless to say, automation also takes close to 3 days, just because of the mandatory requirement of waiting for an hour before doing any validation. I understand the need to reduce time < hour would never arise in the field, but it would be good to have such an option provided for testing and regression purposes, in the upcoming releases. Version-Release number of selected component (if applicable): ============================================================ Additional info: ================ [root@dhcp35-13 ~]# gluster v bitrot ozone Usage: volume bitrot <VOLNAME> {enable|disable} | volume bitrot <volname> scrub-throttle {lazy|normal|aggressive} | volume bitrot <volname> scrub-frequency {hourly|daily|weekly|biweekly|monthly} | volume bitrot <volname> scrub {pause|resume|status} [root@dhcp35-13 ~]#
REVIEW: http://review.gluster.org/14836 (features/bitrot: Option to set scrub interval to a minute) posted (#1) for review on master by Kotresh HR (khiremat)
COMMIT: http://review.gluster.org/14836 committed in master by Jeff Darcy (jdarcy) ------ commit 7df1174f7bed2a00631cf17201f5217a053afeb1 Author: Kotresh HR <khiremat> Date: Thu Jun 30 14:49:51 2016 +0530 features/bitrot: Option to set scrub interval to a minute Bitrot scrub-frequency supports "hourly|daily|weekly|biweekly|monthly". But it is painful for testing as minimum scrub-interval is an hour Hence introducing a scrub interval of minute to ease testing. It is intentionally not exposed in bitrot command help as it is only for testing. e.g., gluster vol bitrot <volname> scrub-frequency minute Change-Id: I155a65298d3fad5ae9e529d9c7d4b0d25fa297c0 BUG: 1351537 Signed-off-by: Kotresh HR <khiremat> Reviewed-on: http://review.gluster.org/14836 Smoke: Gluster Build System <jenkins.org> NetBSD-regression: NetBSD Build System <jenkins.org> CentOS-regression: Gluster Build System <jenkins.org> Reviewed-by: Jeff Darcy <jdarcy>