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.

Submitter:  Andrej Mikus <amk>
Submitted:  Wed 04 Feb 2009 12:58:17 PM UTC
   
 
Category:  Database Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Undesired Behavior
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Operating System:  Linux Perl Version:  5.8.8
Component Version:  2.6.16 Fixed 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>
Group 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       -email is 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>

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ehood (Posted a comment)
  • -email is unavailable- added by amk (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-01-09 ehood Open/ClosedOpen Closed
    2011-01-09 ehood StatusReady For Test Fixed
        Fixed Release 2.6.17
    2010-12-31 ehood StatusNone Ready For Test

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code