Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-2555

Re-indexing big mailboxes fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0, master, 3.0.1, 3.1.0
    • 3.2.0
    • CLI, mailbox

    Description

      Reported internally:

      Doing a reindex via the CLI on a mailbox which contains ~24000 mails does not work.
      
       -  heap out of memory issue
      
      Heap increased, then:
      
       -  cassandra timeout when increasing heap
      
      Timeout increased, then:
      
       -  heap out of memory issue
      
      Heap increased, then:
      
       -  GC overhead limit exceeded
      

      In ReIndexerImpl instead of doing a FULL read to reindex the all mailbox (AND all of the related data) we should rather do a first metadata query to load uids then perform subsequent single reads.

      That is the root issue: trying to load 11 Go of mails in memory.

      Furthermore, a simple error should not trigger the end of a ReIndexing.

      Attachments

        Activity

          People

            Unassigned Unassigned
            btellier Benoit Tellier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: