Bug 762487 (GLUSTER-755) - Fuse loc error when files are created and deleted simultaneously
Summary: Fuse loc error when files are created and deleted simultaneously
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-755
Product: GlusterFS
Classification: Community
Component: core
Version: 3.0.3
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: Amar Tumballi
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-24 08:51 UTC by Sachidananda Urs
Modified: 2015-12-01 16:45 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: RTP
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)
Logs and volume file to reproduce the bug (28.82 KB, application/x-bzip)
2010-03-24 05:52 UTC, Sachidananda Urs
no flags Details

Description Sachidananda Urs 2010-03-24 05:52:33 UTC
Created attachment 164 [details]
a fix to SIGBUS in control-panel

Comment 1 Sachidananda Urs 2010-03-24 08:51:27 UTC
I encounter lot of warnings while creating and deleting files simultaneously.

Brief error message:

[2010-03-23 08:19:31] W [fuse-bridge.c:1025:fuse_setattr] glusterfs-fuse: 1984066: SETATTR (null) (fuse_loc_fill() failed)
[2010-03-23 07:34:34] W [fuse-bridge.c:585:fuse_lookup] glusterfs-fuse: 36983: LOOKUP 46912585627456/NMI-RCU.txt (fuse_loc_fill() failed)

Reproducing error:

1. Extract and delete linux source tar ball.

e.g:

for i in `seq 10`; do rm -rfv linux-2.6.33.1 & tar jxvf linux-2.6.33.1.tar.bz2 & done

Logs, server and client volume files attached.

Comment 2 Csaba Henk 2010-03-24 19:23:03 UTC
This seems completely normal to me.

With your test it's OK that particular code point is hit. If there is any problem, it is that we can't really tell away such "legitimate" cases from the ones when loc filling fails because of a bug, therefore we get annoyingly many false positive warnings.

Comment 3 Sachidananda Urs 2010-03-25 00:11:40 UTC
Yes, but the applications that are being run are hung. They become irresponsive. I will create a screen session on amazon AWS and send you the logon details.

Comment 4 Csaba Henk 2010-03-25 08:06:21 UTC
(In reply to comment #3)
> Yes, but the applications that are being run are hung. They become
> irresponsive. I will create a screen session on amazon AWS and send you the
> logon details.

I have already reproduced the configuration you gave, so if running those apps in a way that they exhibit the errant behavior is neither a rocket science, I could maybe do it by myself. (But if setting up the AWS node is easier for you/us, that's of course fine with me too.)

Comment 5 Sachidananda Urs 2010-03-31 03:08:24 UTC
Any updates on this?

Comment 6 Csaba Henk 2010-03-31 23:06:09 UTC
(In reply to comment #5)
> Any updates on this?

Given that the last thing planned was put up by you... are you asking yourself? ;)

I told that I reproduced the situation as it's written in the report, and what I see/reported is regular behavior.

You told that some apps hang which _is_ a problem.

So you either should give info how to reproduce the hangs as well, or set up that AWS node, hangs included.

Comment 7 Sachidananda Urs 2010-04-01 01:49:43 UTC
> Given that the last thing planned was put up by you... are you asking yourself?
> ;)
>

;-) Nah, asking you :-P.
 
> So you either should give info how to reproduce the hangs as well, or set up
> that AWS node, hangs included.

If I recall correctly, I have sent a mail to you. I will forward the same again. :-).

Comment 8 Amar Tumballi 2010-04-01 06:38:44 UTC
Sacchi,

Can you check if 3.0.4rc3 fixes the bug??

Because we could reproduce rm -rf hang with 3.0.3rc1 (when you showed us the bug).. But with patch http://patches.gluster.com/patch/3029/ we could solve the hang issue. It should not be technically related to fuse_loc_fill error.

afr_readdirp_cbk (), failover code had a missing frame issue without this patch.

Please let us know.

-Amar

Comment 9 Anand Avati 2010-04-13 14:01:48 UTC
PATCH: http://patches.gluster.com/patch/3135 in master (fuse: fix too early freeing)

Comment 10 Anand Avati 2010-04-27 06:38:22 UTC
PATCH: http://patches.gluster.com/patch/3135 in release-3.0 (fuse: fix too early freeing)


Note You need to log in before you can comment on or make changes to this bug.