+++ This bug was initially created as a clone of Bug #1352871 +++ +++ This bug was initially created as a clone of Bug #1337444 +++ Description of problem: ======================== In scenarios where scrubber would take more time to finish scrubbing files, a 'scrub status' output when scrubbing is in progress, displays the previous run's information for 'last completed scrub time' and 'duration of last scrub'. This provides an incorrect view to the user, giving the impression that scrubbing has completed. We should ideally have the field 'State of scrub' set to 'In progress' and the above mentioned fields set to '-' . The other two fields (files scrubbed, files skipped) correctly show the present run's details. Version-Release number of selected component (if applicable): ============================================================= How reproducible: ================ Always Steps to Reproduce: ==================== 1. Have a 4node cluster, with a dist-rep volume and sharding enabled. Set the scrub frequency to 'hourly' 2. Create 100 1MB files and wait for the scrubber to finish its run. 3. View the scrub status output for the validity of the fields that it shows. 4. Create 5 4GB files and wait for the next run of scrubbing to start. 5. When the scrubbing is in progress (as seen from scrub.log), issue a 'gluster volume bitrot <volname> scrub status' Actual results: =============== Scrub status shows 4 fields with respect to every node. 2 fields are updated as per the current run, and 2 as per the previous run. Expected results: ================= Either all the 4 fields must reflect the current run, OR all 4 fields must reflect the previous run. Preferable would be to let the user know that scrubbing is in progress, and update the fields accordingly.
REVIEW: http://review.gluster.org/14900 (feature/bitrot: Show whether scrub is in progress/idle) posted (#1) for review on release-3.7 by Kotresh HR (khiremat)
COMMIT: http://review.gluster.org/14900 committed in release-3.7 by Jeff Darcy (jdarcy) ------ commit 8c6700bc7bc78ed4754bf2e59fd28a40530d4e76 Author: Kotresh HR <khiremat> Date: Mon Jul 4 17:25:57 2016 +0530 feature/bitrot: Show whether scrub is in progress/idle Backport of http://review.gluster.org/14864/ Bitrot scrub status shows whether the scrub is paused or active. It doesn't show whether the scrubber is actually scrubbing or waiting in the timer wheel for the next schedule. This patch shows this status with "In Progress" and "Idle" respectively. Change-Id: I995d8553d1ff166503ae1e7b46282fc3ba961f0b BUG: 1355635 Signed-off-by: Kotresh HR <khiremat> (cherry picked from commit f4757d256e3e00132ef204c01ed61f78f705ad6b) Reviewed-on: http://review.gluster.org/14900 Smoke: Gluster Build System <jenkins.org> CentOS-regression: Gluster Build System <jenkins.org> NetBSD-regression: NetBSD Build System <jenkins.org> Reviewed-by: Jeff Darcy <jdarcy>
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.14, please open a new bug report. glusterfs-3.7.14 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] https://www.gluster.org/pipermail/gluster-devel/2016-August/050319.html [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user