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

Find a way to trace the page provider name in case of query timeout

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Query & PageProvider

      Description

      We are always facing PP timeout without knowing the name of the PP.

      WARN Filter: {"$and": [{"ecm:parentId": "0b2ab568-2a97-44c9-b99b-14b127664d7c"},  ...Query timed out on client side after socketTimeout exceeded
      
      org.nuxeo.ecm.core.api.NuxeoException: Filter: {"$and": [{"ecm:parentId": "0b2ab568-2a97-44c9-b99b-14b127664d7c"},  .... Workspace"]}}]}, Query timed out on client side after socketTimeout exceeded
      	at org.nuxeo.ecm.core.storage.mongodb.MongoDBConnection.newQueryException(MongoDBConnection.java:566) ~[nuxeo-core-storage-mongodb-2021.45.8.jar:?]
      ...	at org.nuxeo.ecm.core.storage.dbs.DBSCachingConnection.queryAndFetch(DBSCachingConnection.java:347) ~[nuxeo-core-storage-dbs-2021.45.8.jar:?]
      ...	at org.nuxeo.ecm.core.storage.dbs.DBSSession.query(DBSSession.java:180) ~[nuxeo-core-storage-dbs-2021.45.8.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.tracedQuery(AbstractSession.java:1289) ~[nuxeo-core-2021.45.8.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.query(AbstractSession.java:1257) ~[nuxeo-core-2021.45.8.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.query(AbstractSession.java:1240) ~[nuxeo-core-2021.45.8.jar:?]
      	at org.nuxeo.ecm.platform.query.nxql.CoreQueryDocumentPageProvider.getCurrentPage(CoreQueryDocumentPageProvider.java:148) [nuxeo-platform-query-api-2021.45.8.jar:?]
      	at org.nuxeo.ecm.automation.core.util.PaginablePageProvider.<init>(PaginablePageProvider.java:43) [nuxeo-core-io-2021.45.8.jar:?]
      	at org.nuxeo.ecm.automation.jaxrs.io.documents.PaginableDocumentModelListImpl.<init>(PaginableDocumentModelListImpl.java:50) [nuxeo-core-io-2021.45.8.jar:?]
      	at 
      

      Use thread local, thread name or whatever, but an error trace should be actionable!

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bdelbosc Benoit Delbosc
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: