Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-92827

High number of archived Space cause 1024 clause exception from ArchivedSpacesQuery

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 8.5.4
    • 7.20.0, 8.5.2, 8.5.3
    • Search - Core
    • None

    Description

      Issue Summary

      If customer has more than 1024 archived spaces then ArchivedSpacesQuery will throw exception with said 1024 clause limit

      Steps to Reproduce

      1. Make sure we have more than 1024 archived Space
      2. Visit following place
        1. Confluence dashboard
        2. Space directory
        3. Adding "recently-updated-dashboard" macro in a page

      Expected Results

      No exception and Confluence functions as usual

      Actual Results

      The below exception is thrown in the xxxxxxx.log file:

      2023-09-07 01:45:49,932 ERROR [https-jsse-nio-8443-exec-43] [rest.api.model.ExceptionConverter] convertServiceException No status code found for exception, converting to internal server error : 
       -- url: /rest/api/content/search | userName: mrout | referer: https://sl73wikiapp004.visa.com:8443/index.action | traceId: 8ef89ccc8c4fcfe6
      org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is set to 1024
      	at org.apache.lucene.search.BooleanQuery.add(BooleanQuery.java:142)

      Note: the above exception caused by ArchivedSpacesQuery load all archived space and converted into Lucence Query

      Workaround

      Reduce number of Archived Space. Also note that with a fix from https://jira.atlassian.com/browse/CONFSERVER-59315 will prevent the exception to happen but we still need to have a proper fix for ArchivedSpacesQuery

      Attachments

        Issue Links

          Activity

            People

              mleizerovich Maxim Leizerovich
              dluong Duy Truong Luong
              Votes:
              1 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: