Uploaded image for project: 'WebTop'
  1. WebTop
  2. WT-1038

Advanced Search may block on heavy search

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Medium
    • Resolution: Done
    • Mail
    • None
    • release
    • 5.12.6
    • wt-5.14.0
    • 0462

    Description

      Running an advanced search on a very large mailbox (e.g. 100.000 mails) using a heavy pattern (such as a single word in message content), may block window during run, because of contemption between the running imap search thread and the status polling thread during a call to "getInternationalFolderName" to update the percentage and foldername status.

      This does not happen on interactive search, and the main diffeence is that the polling thread of interactive search does not make any call to "getInternationalFolderName", because it just updates percentage in result window.

      Looks like this call is trying to reuse the same imap thread that is running the long search, causing a blocking situation.

      The solution should be in the advanced search thread, where it may call "getInternationalFolderName" during its folders loop and store it as the current folder description, so that the polling thread doesn't need to do it but just retrieve the stored description.

      Attachments

        Activity

          People

            gabriele.bulfon Gabriele Bulfon
            gabriele.bulfon Gabriele Bulfon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package