[Bugs] [Bug 1257881] Quota list on a volume hangs after glusterd restart an a node.

bugzilla at redhat.com bugzilla at redhat.com
Mon Aug 31 15:04:31 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1257881



--- Comment #3 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/12038 committed in release-3.7 by Kaushal M
(kaushal at redhat.com) 
------
commit d90ed0b9b7160911c3fb8515f2947579d0fd197f
Author: vmallika <vmallika at redhat.com>
Date:   Mon Aug 24 08:07:14 2015 +0530

    cli: on error invoke cli_cmd_broadcast_response function in separate thread

    This is a backport of http://review.gluster.org/#/c/11990/

    There is a problem in current CLI framework
    CLI holds the lock when processing command.
    When processing quota list command, below sequence of steps executed in the
    same thread and causing deadlock

    1) CLI holds the lock
    2) Send rpc_clnt_submit request to quotad for quota usage
    3) If quotad is down, rpc_clnt_submit invokes cbk function with error
    4) cbk function cli_quotad_getlimit_cbk tries to hold lock to broadcast
       the results and hangs, because same thread has already holding the lock

    This patch fixes the problem by creating seperate thread for
    broadcasting the result

    > Change-Id: I53be006eadf6aaf348083d9168535530d70a8ab3
    > BUG: 1242819
    > Signed-off-by: vmallika <vmallika at redhat.com>

    Change-Id: Ic3c651c143e4143cfb4542d99b4856e582022e36
    BUG: 1257881
    Signed-off-by: vmallika <vmallika at redhat.com>
    Reviewed-on: http://review.gluster.org/12038
    Tested-by: NetBSD Build System <jenkins at build.gluster.org>
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Kaushal M <kaushal at redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=Nr25UgbWKw&a=cc_unsubscribe


More information about the Bugs mailing list