Bug 812769

Summary: Remove excessive logging of "failed to perform truncate" messages in the rebalance logs
Product: [Community] GlusterFS Reporter: shylesh <shmohan>
Component: coreAssignee: shishir gowda <sgowda>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: pre-releaseCC: gluster-bugs, nsathyan
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.4.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-24 17:50:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: 3.3.0qa41 Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 817967    

Description shylesh 2012-04-16 07:55:35 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.create a distribute volume and fill with some files
2.add-brick and initiate rebalance 
3. now check the log
  
Actual results:
Excessive logs are present saying "failed to perform truncate"
 


=====================================================================
[2012-04-16 02:25:42.340607] W [client3_1-fops.c:708:client3_1_truncate_cbk] 0-test-client-2: remote operation failed: No such file or
 directory
[2012-04-16 02:25:42.340661] W [dht-rebalance.c:838:dht_migrate_file] 0-test-dht: /78: failed to perform truncate on test-client-2 (No
 such file or directory)
[2012-04-16 02:25:42.342119] W [dht-rebalance.c:853:dht_migrate_file] 0-test-dht: /78: failed to lookup the file on subvolumes (No suc
h file or directory)
[2012-04-16 02:25:42.342155] I [dht-rebalance.c:858:dht_migrate_file] 0-test-dht: completed migration of /78 from subvolume test-clien
t-2 to test-client-3
[2012-04-16 02:25:42.348807] I [dht-rebalance.c:647:dht_migrate_file] 0-test-dht: /82: attempting to move from test-client-2 to test-c
lient-3
[2012-04-16 02:25:42.682579] W [client3_1-fops.c:708:client3_1_truncate_cbk] 0-test-client-2: remote operation failed: No such file or directory
[2012-04-16 02:25:42.682645] W [dht-rebalance.c:838:dht_migrate_file] 0-test-dht: /82: failed to perform truncate on test-client-2 (No such file or directory)
[2012-04-16 02:25:42.684192] W [dht-rebalance.c:853:dht_migrate_file] 0-test-dht: /82: failed to lookup the file on subvolumes (No such file or directory)
[2012-04-16 02:25:42.684219] I [dht-rebalance.c:858:dht_migrate_file] 0-test-dht: completed migration of /82 from subvolume test-client-2 to test-client-3
[2012-04-16 02:25:42.698898] I [dht-rebalance.c:647:dht_migrate_file] 0-test-dht: /86: attempting to move from test-client-2 to test-client-3
[2012-04-16 02:25:43.044838] W [client3_1-fops.c:708:client3_1_truncate_cbk] 0-test-client-2: remote operation failed: No such file or directory
[2012-04-16 02:25:43.044883] W [dht-rebalance.c:838:dht_migrate_file] 0-test-dht: /86: failed to perform truncate on test-client-2 (No such file or directory)
[2012-04-16 02:25:43.046214] W [dht-rebalance.c:853:dht_migrate_file] 0-test-dht: /86: failed to lookup the file on subvolumes (No such file or directory)
[2012-04-16 02:25:43.046236] I [dht-rebalance.c:858:dht_migrate_file] 0-test-dht: completed migration of /86 from subvolume test-client-2 to test-client-3
[2012-04-16 02:25:43.065222] I [dht-rebalance.c:647:dht_migrate_file] 0-test-dht: /99: attempting to move from test-client-2 to test-client-3
[2012-04-16 02:25:43.078997] I [dht-rebalance.c:1594:gf_defrag_status_get] 0-glusterfs: Files migrated: 85, size: 1782579200, looku

Comment 1 Anand Avati 2012-04-16 18:19:25 UTC
CHANGE: http://review.gluster.com/3155 (cluster/dht: Revert to calling ftruncate) merged in master by Vijay Bellur (vijay)

Comment 2 shylesh 2012-05-18 10:40:44 UTC
No such logs are appearing now.