Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-31163

Avoid transaction timeout during emails check

    XMLWordPrintable

    Details

    • Release Notes Summary:
      The property "org.nuxeo.mail.message.limit" can be used to limit the number of mails fetched per mailbox.
    • Upgrade notes:
      Hide

      To avoid transaction timeout there is a new limit in the number of mail that can be fetched per mailbox, the default limit is 2000 mails, this can be configured with nuxeo.conf option:

      org.nuxeo.mail.message.limit=2000
      

      Note that there is a warning in the log when the limit is reached.

      Show
      To avoid transaction timeout there is a new limit in the number of mail that can be fetched per mailbox, the default limit is 2000 mails, this can be configured with nuxeo.conf option: org.nuxeo.mail.message.limit=2000 Note that there is a warning in the log when the limit is reached.
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #68
    • Story Points:
      2

      Description

      The MailEventListener is fetching all the MailFolder documents to check new mails in the same transaction.

      This could be an issue if there is a huge number of MailFolder or a huge number of mails in a mailbox as we can exceed the transaction.

      In order to fix this several things needs to be improve:

      • add a limit to the number of mail that is fetched by mailbox
      • commit/start the transaction after each mailbox

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: