From 74dedc441c2414de0bbfd12cf0eca366bd9b939d Mon Sep 17 00:00:00 2001 From: Manikandan Selvaganesh Date: Thu, 17 Dec 2015 10:55:37 +0530 Subject: quota : avoid "contribution node is empty" error logs In versions older than 3.7, "contribution node list is empty which is an error" gets logged numerous number of times. It is completely fixed in 3.7. Since the entire marker and quota code has almost been refactored, it is hard to backport the complete fix and also it could not be fixed with the older approach. As a temporary fix, to avoid numerous logs, the patch just supresses the log level. 3.5 fix: http://review.gluster.org/#/c/12990/ > Change-Id: Ie666ba99c7bb16b9ce249b581e09857734589f51 > BUG: 1288195 > Signed-off-by: Manikandan Selvaganesh Change-Id: Ie666ba99c7bb16b9ce249b581e09857734589f51 BUG: 1302310 Signed-off-by: Manikandan Selvaganesh Reviewed-on: http://review.gluster.org/13304 Smoke: Gluster Build System CentOS-regression: Gluster Build System Reviewed-by: Niels de Vos Reviewed-by: Vijaikumar Mallikarjuna NetBSD-regression: NetBSD Build System --- xlators/features/marker/src/marker-quota.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c index 0c4a3a713fc..5f674774a02 100644 --- a/xlators/features/marker/src/marker-quota.c +++ b/xlators/features/marker/src/marker-quota.c @@ -1330,8 +1330,9 @@ mq_get_parent_inode_local (xlator_t *this, quota_local_t *local) local->ctx = ctx; if (list_empty (&ctx->contribution_head)) { - gf_log_callingfn (this->name, GF_LOG_ERROR, - "contribution node list is empty"); + gf_log_callingfn (this->name, GF_LOG_TRACE, + "contribution node list is empty which " + "is an error"); ret = -1; goto out; } -- cgit