bugGluster - Bugs: bug #21861, GLUSTERFS_VERSION maybe overflow

 
 

bug #21861: GLUSTERFS_VERSION maybe overflow

Submitted by:  LI Daobing <lidaobing>
Submitted on:  Fri 21 Dec 2007 02:58:40 AM UTC  
 
Category: GlusterFSSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Operating System: NoneReproducibility: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 03 Feb 2009 10:45:16 AM UTC, comment #1:

In the current codebase, GLUSTERFS_VERSION is not used anymore. hence marking it invalid.

Regards,

Amar Tumballi <amarts>
Project Member
Fri 21 Dec 2007 02:58:40 AM UTC, original submission:

Hello,

afr module use GLUSTERFS_VERSION to record a version and increase it by 1 when you close a changed file.

currently the type of GLUSTERFS_VERSION is unit32(in afr_selfheal_t.version), but I think it's not large enough.

consider a file is close 1000 times per second(a log file will require this). Then it will overflow in less than 100 days.

If one of child node is out of work, after it is up again in the 101st day, maybe the system will sync to the older version.

How about increase the type version to uint64?

Thanks.

LI Daobing <lidaobing>

 

(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 amarts (Posted a comment)
  • -unavailable- added by lidaobing (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 03 Feb 2009 10:45:16 AM UTCamartsStatusNone=>Invalid
      Originator Name=>
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1