bugGluster - Bugs: bug #25207, an rm of a file should not cause...

 
 

bug #25207: an rm of a file should not cause that file to be replicated with afr self-heal.

Submitted by:  swankier <swankier>
Submitted on:  Mon 29 Dec 2008 09:44:00 PM UTC  
 
Category: GlusterFSSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Improper behaviour
Status: Wont FixPrivacy: Public
Assigned to: NoneOriginator Name: swankier
Open/Closed: ClosedRelease: 
Operating System: GNU/LinuxReproducibility: Every Time

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 23 Jun 2009 06:27:22 PM UTC, comment #5:

Self-heal happens in lookup(). And the current frame-work does not notify the glusterfs about the intent of doing lookup(), meaning glusterfs would not know during lookup() that the file will deleted. So, self-heal is done.

--
Gowda

Basavanagowda Kanur <gowda>
Project Member
Mon 05 Jan 2009 09:39:47 AM UTC, comment #4:

Krishna, leave it as is. Once self-heal ensures that the volumes are intact, rm will remove both the copies anyways. It is inefficient, but optimizing it the current framework will be hacky.

Swaniker, We are ditching the current self-healing framework with an active healing tool. We can take care of it then.

Anand Babu <ab>
Project Administrator
Mon 05 Jan 2009 09:20:36 AM UTC, comment #3:

this begs the question,

if the file is removed from the brick on the "lookup" afr...

will the file remain on the other bricks indefinitely?

swankier <swankier>
Mon 05 Jan 2009 06:49:49 AM UTC, comment #2:

I am:

1) delete file from posix system beneath afr on one side
2) run rm on gluster file system

file is then replicated followed by deletion

swankier <swankier>
Wed 31 Dec 2008 06:09:27 AM UTC, comment #1:

Hi,

How are you trying to self-heal? currently self-heal relies on lookup being sent on the parent directory to properly heal.

proper way to heal would be something like,

# rm -f file
# cd ../
# cd -
# ls

This procedure should not cause the deleted files to reappear.

Raghavendra <raghavendra>
Project Member
Mon 29 Dec 2008 09:44:00 PM UTC, original submission:

it currently does.

it's silly to replicate the file only to delete it.

swankier <swankier>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gowda (Posted a comment)
  • -unavailable- added by ab (Posted a comment)
  • -unavailable- added by raghavendra (Posted a comment)
  • -unavailable- added by swankier (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 23 Jun 2009 06:27:22 PM UTCgowdaStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed
    Wed 31 Dec 2008 06:09:27 AM UTCraghavendraOriginator Name=>swankier

    Back to the top


    Powered by Savane 3.1-cleanup1