bugMHonArc - Bugs: bug #25486, Resource FieldStore causes...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #25486: Resource FieldStore causes .mhonarc.db to grow over bounds.

Submitted by:  Andrej Mikus <amk>
Submitted on:  Wed 04 Feb 2009 12:58:17 PM UTC  
 
Category: DatabaseSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Undesired Behavior
Status: FixedPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Operating System: LinuxPerl Version: 5.8.8
Component Version: 2.6.16Fixed Release: 2.6.17

Fri 31 Dec 2010 09:39:23 PM UTC, comment #1:

Fixed committed into respository. Duplicates are
removed from @ExtraHFields in mhopt.pl. I also
removed dups from FieldOrder resource also, but dup
impact not significant there.

Deletion from %ExtraHFields hash done when message is
removed.

Earl Hood <ehood>
Project Administrator
Wed 04 Feb 2009 12:58:17 PM UTC, original submission:

Noticed that after time the .mhonarc.db files are growing too much, leading to archive operation taking unexpected long time.

Found that array @ExtraHFields contains duplicate entries and
hash %ExtraHFields includes also entries for messages removed from archive.

In file $Id: mhrcfile.pl,v 2.46 2005/07/08 06:34:04 ehood
the entries from rcfile are added to @ExtraHFields even when already present.

Workaround: used <FieldStore override> in the rcfile.

The information is also not removed from %ExtraHFields upon messge deletion. Applied following patch:

##---------------------------------------------------------------------------##
## File:
## $Id: mhamain.pl,v 2.93 2006/06/10 02:42:58 ehood Exp $
## Author:
## Earl Hood -unavailable-
## Description:
## Main library for MHonArc.
##---------------------------------------------------------------------------##

      • mhamain.pl.orig

--- mhamain.pl
***************

      • 1464,1469 ****

--- 1464,1470 ----
delete $IndexNum{$key};
delete $Refs{$key};
delete $Subject{$key};
+ delete $ExtraHFields{$key};
delete $MsgId{$Index2MsgId{$key}};

my $derived = $Derived{$key};

I am also using message preview based on mha-preview example,
but there appears no CB for message removal. I modified sub
db_save there to include

while (($key, undef) = each %X_MessagePreview ) {
next if exists ( $mhonarc::IndexNum{$key} );
delete $X_MessagePreview{$key};
}

Andrej Mikus <amk>

 

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 ehood (Posted a comment)
  • -unavailable- added by amk (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 09 Jan 2011 09:22:20 AM UTCehoodOpen/ClosedOpen=>Closed
    Sun 09 Jan 2011 08:35:00 AM UTCehoodStatusReady For Test=>Fixed
      Fixed Release=>2.6.17
    Fri 31 Dec 2010 09:39:23 PM UTCehoodStatusNone=>Ready For Test

    Back to the top


    Powered by Savane 3.1-cleanup1