Bug 1258500

Summary: DHT: After removal of brick files are not fairly distributed across remaining bricks
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: RajeshReddy <rmekala>
Component: distributeAssignee: Sakshi <sabansal>
Status: CLOSED NOTABUG QA Contact: storage-qa-internal <storage-qa-internal>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: mzywusko, sabansal, smohan, spalai
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-24 07:28:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description RajeshReddy 2015-08-31 13:58:33 UTC
Document URL: 
=================
DHT: After removal of brick files are not fairly distributed across remaining bricks 

Steps:
=======
1. Create a distributed volume with three bricks from three different nodes
2. Mount it on client using nfs and create direcotry and 10k files on mount point
3. Remove any of the brick and after completion of removal brick one brick contains 2x files and one brick contains 1x files though both are of same size

Expected Result:
===============
After removal of brick files needs to be distributed fairly across the remaining bricks

Notes:
=======
I observed the layout of directory on brick has 1x range and another brick has 2x range

Comment 2 Susant Kumar Palai 2016-06-24 07:28:33 UTC
(In reply to RajeshReddy from comment #0)
> Document URL: 
> =================
> DHT: After removal of brick files are not fairly distributed across
> remaining bricks 
> 
> Steps:
> =======
> 1. Create a distributed volume with three bricks from three different nodes
> 2. Mount it on client using nfs and create direcotry and 10k files on mount
> point
> 3. Remove any of the brick and after completion of removal brick one brick
> contains 2x files and one brick contains 1x files though both are of same
> size
The destination of the files purely depends on their hash value and layout on the parent directory. And it does not guarantee that the files will be equally distributed among the bricks for a remove-brick operation.  And the comment below also suggests that the layout might have been generated from a weighted-brick algo.

> 
> Expected Result:
> ===============
> After removal of brick files needs to be distributed fairly across the
> remaining bricks
> 
> Notes:
> =======
> I observed the layout of directory on brick has 1x range and another brick
> has 2x range
This can be the effect of weighted-brick layout distribution.