Menu

#1 Deleting a lot of data results in "beta warning #1" requeste

PFS 5.3 fix
closed-fixed
PFS (12)
9
2014-06-24
2011-04-13
No

Deleting a lot of data (IIRC about 1GB with current RTBF_CACHE_SIZE ) results in a "beta warning #1" requester and the filesystem ceasing to function until a reboot.

This appears to be related to RTBF_CACHE_SIZE in ResToBeFreed function. Raising the RTBF_CACHE_SIZE to a larger value works as a stop gap measure to avoid the issue. A proper fix for this would be desirable, however.

Discussion

  • Harry Sintonen

    Harry Sintonen - 2011-04-13
    • priority: 5 --> 9
     
  • Michiel Pelt

    Michiel Pelt - 2011-04-14

    Interesting: this bug had been fixed before. In the 5.1 release notes it says

    > 'Beta Warning 1 bug'. This error could occur when a large number
    of files was changed at once, e.g. setting the archive bit on all
    files of the disk.

     
  • Harry Sintonen

    Harry Sintonen - 2011-04-14

    It happens with the PFS 5.3 (18.5) version for me. It is reproducable every time.

     
  • Harry Sintonen

    Harry Sintonen - 2012-03-17

    This bug exists in the current version as well (tested 17.3.2012). it's easy to reproduce by deleting the required amount of files.

     
  • Harry Sintonen

    Harry Sintonen - 2012-03-17
    • labels: --> PFS
     
  • Harry Sintonen

    Harry Sintonen - 2012-03-17

    I looked into this. I believe UpdateDisk will fail if there are ton of blocks to be freed. The culprit likely are:
    RemoveEmptyDBlocks(volume, g);
    RemoveEmptyABlocks(volume, g);
    RemoveEmptyIBlocks(volume, g);
    RemoveEmptySBlocks(volume, g);

     
  • Harry Sintonen

    Harry Sintonen - 2012-03-20
    • assigned_to: nobody --> sintonen
    • status: open --> open-fixed
     
  • Harry Sintonen

    Harry Sintonen - 2012-03-20

    Fixed in svn (revision 132). Since the maximum number of freed blocks can vary greatly and I could not see any obvious way to make sure it can't overflow like it did, I decided to make the array grow dynamically as needed. Not the prettiest fix, but it's bulletproof now.

     
  • Michiel Pelt

    Michiel Pelt - 2014-06-24
    • status: open-fixed --> closed-fixed
    • Group: --> PFS 5.3 fix
     

Log in to post a comment.

MongoDB Logo MongoDB