Bug 809847 - volume set cluster.background-self-heal-count can accept invalid values.
Summary: volume set cluster.background-self-heal-count can accept invalid values.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: core
Version: mainline
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Kaushal
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-04 13:59 UTC by Kaushal
Modified: 2013-07-24 17:26 UTC (History)
1 user (show)

Fixed In Version: glusterfs-3.4.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-24 17:26:25 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Kaushal 2012-04-04 13:59:58 UTC
cluster.background-self-heal-count can accept negative numbers even though min has been specified as 0.

For eg:
#gluster volume set test cluster.background-self-heal-count -9000
Set volume successful

#gluster volume info test

Volume Name: test
Type: Replicate
Volume ID: 1db29f5f-08c6-48d2-b3d4-7bd93c14d810
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: arch:/export/1
Brick2: arch:/export/2
Options Reconfigured:
cluster.background-self-heal-count: -9000

Comment 1 Kaushal 2012-07-11 05:27:31 UTC
Patch 81e7464a54165b5d8b40847355d3bb6fe7b6e9df (libglusterfs : Fix validation for integer volume options) in master (review @ http://review.gluster.com/3084) fixes this.


Note You need to log in before you can comment on or make changes to this bug.