[Gluster-devel] 回复: Glusterfs crash when enable quota on Arm aarch 64platform.

Xie Changlong zgrep at 139.com
Tue Dec 3 06:24:47 UTC 2019


It's my pleasure, CC devel to confirm this issue.

在 2019/12/3 14:13, PSC 写道:
>
> Thank you for your help!
> It seems that it is my fault, I didn't disable quota and enable it 
> again, so it seems work fine on commits before 2fb445ba, when you 
> write file to a volume which had already reached its usage limit, it 
> tells Disk quota exceeded. But actually, on former 
> commits(before 2fb445ba), if I disable quota and enable it again, the 
> volume is crash. You are right! 2fb445ba addressed the quota issue!
>
> Thank you very much!!
>
> ------------------ 原始邮件 ------------------
> *发件人:* "zgrep"<zgrep at 139.com>;
> *发送时间:* 2019年11月29日(星期五) 晚上6:35
> *收件人:* "Yaniv Kaul"<ykaul at redhat.com>;
> *抄送:* "PSC"<1173701037 at qq.com>;"Gluster 
> Devel"<gluster-devel at gluster.org>;
> *主题:* Re: [Gluster-devel] Glusterfs crash when enable quota on Arm 
> aarch 64platform.
>
> NO, this issue disappered since commit 2fb445ba.
>
> 在 2019/11/29 18:12, Yaniv Kaul 写道:
>> Does it happen on master?
>>
>> On Fri, 29 Nov 2019, 12:06 Xie Changlong <zgrep at 139.com 
>> <mailto:zgrep at 139.com>> wrote:
>>
>>     Hi, PSC
>>
>>     We encounter the same issue a few month ago, and git bisect says
>>     the first bad commit is 2fb445ba. This patch is not quota
>>     related, but it addressed the quota issue!
>>
>>     Maybe it's gcc issue??
>>
>>     commit 2fb445babdd621b71676e40804fe98e95fc9084d
>>     Author: Xavi Hernandez <xhernandez at redhat.com>
>>     <mailto:xhernandez at redhat.com>
>>     Date:   Thu Jan 31 08:13:58 2019 +0100
>>
>>         syncop: remove unnecessary call to gf_backtrace_save()
>>
>>         A call to gf_backtrace_save() was done on each context switch
>>     of a
>>         synctask. The backtrace is generated writing to the
>>     filesystem, so it
>>         can have an important impact on latency.
>>
>>         The generated backtrace was not used anywhere, so it's been
>>     removed.
>>
>>         Change-Id: I399a93b932c5b6e981c696c72c3e1ef44710ba52
>>         Updates: bz#1193929
>>         Signed-off-by: Xavi Hernandez <xhernandez at redhat.com>
>>     <mailto:xhernandez at redhat.com>
>>
>>     diff --git a/libglusterfs/src/glusterfs/syncop.h
>>     b/libglusterfs/src/glusterfs/syncop.h
>>     index 7a6167b..e0f1017 100644
>>     --- a/libglusterfs/src/glusterfs/syncop.h
>>     +++ b/libglusterfs/src/glusterfs/syncop.h
>>     @@ -73,7 +73,6 @@ struct synctask {
>>          int done;
>>
>>          struct list_head waitq; /* can wait only "once" at a time */
>>     -    char btbuf[GF_BACKTRACE_LEN];
>>      };
>>
>>      struct syncproc {
>>     diff --git a/libglusterfs/src/syncop.c b/libglusterfs/src/syncop.c
>>     index bf70daf..6206d4c 100644
>>     --- a/libglusterfs/src/syncop.c
>>     +++ b/libglusterfs/src/syncop.c
>>     @@ -327,7 +327,6 @@ synctask_yield(struct synctask *task)
>>
>>          if (task->state != SYNCTASK_DONE) {
>>              task->state = SYNCTASK_SUSPEND;
>>     -        (void)gf_backtrace_save(task->btbuf);
>>          }
>>          if (swapcontext(&task->ctx, &task->proc->sched) < 0) {
>>              gf_msg("syncop", GF_LOG_ERROR, errno,
>>     LG_MSG_SWAPCONTEXT_FAILED,
>>
>>
>>     在 2019/11/29 16:12, PSC 写道:
>>>     Hi, I am studying on port glusterfs to ARM platform. I compiled
>>>     and ran it. Most of its functions works fine, however, when I
>>>     enable quota on any kind of volume, and mount it, and try to
>>>     read or write anything to the volume. It will run into crash,
>>>     and tell me the "Transport endpoint is not connected".
>>>
>>>     The version of glusterfs I am using is GlusterFS 3.12.2.
>>>     And I test it from version 3.12.2 to 6.0. This problem was
>>>     solved on 6.0, but I didn't found any addressed Bugs relate to
>>>     quota.
>>>     I also do some test on x86 servers, quota works fine.
>>>
>>>     On both of x86 and ARM servers, I am using CentOS 7.6.
>>>
>>>     For stability reason, I had been told that I should use
>>>     GlusterFS 3.12.2, rather than new versions. So I need to find
>>>     out how to address this bug.
>>>
>>>     Please offer me some help. Thank you very much!!
>>>
>>>
>>>     _______________________________________________
>>>
>>>     Community Meeting Calendar:
>>>
>>>     APAC Schedule -
>>>     Every 2nd and 4th Tuesday at 11:30 AM IST
>>>     Bridge:https://bluejeans.com/441850968
>>>
>>>
>>>     NA/EMEA Schedule -
>>>     Every 1st and 3rd Tuesday at 01:00 PM EDT
>>>     Bridge:https://bluejeans.com/441850968
>>>
>>>     Gluster-devel mailing list
>>>     Gluster-devel at gluster.org  <mailto:Gluster-devel at gluster.org>
>>>     https://lists.gluster.org/mailman/listinfo/gluster-devel
>>>
>>     _______________________________________________
>>
>>     Community Meeting Calendar:
>>
>>     APAC Schedule -
>>     Every 2nd and 4th Tuesday at 11:30 AM IST
>>     Bridge: https://bluejeans.com/441850968
>>
>>
>>     NA/EMEA Schedule -
>>     Every 1st and 3rd Tuesday at 01:00 PM EDT
>>     Bridge: https://bluejeans.com/441850968
>>
>>     Gluster-devel mailing list
>>     Gluster-devel at gluster.org <mailto:Gluster-devel at gluster.org>
>>     https://lists.gluster.org/mailman/listinfo/gluster-devel
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-devel/attachments/20191203/4053f67d/attachment.html>


More information about the Gluster-devel mailing list