Space query when using OpenSearch as the search platform, requests all stored fields

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Issue Summary

      When using Confluence with OpenSearch, the Page copy or move operation fails because the OpenSearch query requests all fields as part of the Space search.  This can lead to large query results, especially on large instances, exceeding the default 100MB buffer limit.

      Steps to Reproduce

      1. Configure OpenSearch for Confluence.
      2. Perform a Page Copy or Move operation on any page where the target spaces search fails due to the large underlying data received as part of the OpenSearch query response.

      Expected Results

      Page Copy or Move operations on the Confluence pages are completed successfully.

      Actual Results

      During the Page Copy/Move operation, "socket timeout" and/or "content too long" errors are observed in the atlassian-confluence.log

      2025-06-24 09:53:46,211 ERROR [http-nio2-8090-exec-186 url: /confluence/rest/quicknav/1/search; user: admin] [v2.api.model.ExceptionConverter] convertServiceException No status code found for exception, converting to internal server error : 
       -- url: /confluence/rest/quicknav/1/search | userName: admin | referer: https://confluence-test.com/confluence/SPACES/test/pages/123244/Test+Page | traceId: 3bf853bfa08a41 com.atlassian.confluence.search.v2.SearchIndexAccessException: Unexpected IOException while requesting search to OpenSearch
          .
          .
          .
      Caused by: org.apache.hc.core5.http.ContentTooLongException: entity content is too long [8192] for the configured buffer limit [104857600]
      
      
      
      2025-06-24 09:52:37,341 ERROR [http-nio2-8090-exec-253 url: /confluence/rest/quicknav/1/search; user: admin] [v2.api.model.ExceptionConverter] convertServiceException No status code found for exception, converting to internal server error : 
       -- url: /confluence/rest/quicknav/1/search | userName: admin | referer: https://confluence-test.com/confluence/SPACES/test/pages/123244/Test+Page | traceId: 3bf853bfa08a44
      com.atlassian.confluence.search.v2.SearchIndexAccessException: Unexpected IOException while requesting search to OpenSearch
      .
      .
      .
      Caused by: java.net.SocketTimeoutException: 10000 MILLISECONDS
      	at org.apache.hc.core5.io.SocketTimeoutExceptionFactory.create(SocketTimeoutExceptionFactory.java:50)
      
      

      Workaround

      Use the opensearch.max.result.buffer property to increase the buffer limit from the default 100MB. This might result in a frontend timeout which can be resolved by changing the quicksearch.request.timeout property, increasing it from the default 5 seconds.

            Assignee:
            Unassigned
            Reporter:
            Will Yasvoin
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: