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

nuxeo-reindex-fulltext must not NPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: ADDONS_9.1
    • Component/s: Core

      Description

      nuxeo-reindex-fulltext may fail with:

      2017-01-06 22:35:46,787 WARN  [http-bio-127.0.0.1-8080-exec-6] [org.nuxeo.ecm.webengine.app.WebEngineExceptionMapper] Exception in JAX-RS processing java.lang.NullPointerException
              at org.nuxeo.ecm.core.ReindexFulltextRoot.runSyncBatch(ReindexFulltextRoot.java:263)
              at org.nuxeo.ecm.core.ReindexFulltextRoot.doBatch(ReindexFulltextRoot.java:231)
              at org.nuxeo.ecm.core.ReindexFulltextRoot.reindexFulltext(ReindexFulltextRoot.java:157)
              at org.nuxeo.ecm.core.ReindexFulltextRoot.get(ReindexFulltextRoot.java:98)
      

      Because the node ids are computed in a transaction and then the nodes fetched in another transaction, some ids may be invalid at the time of reindexing, and must be skipped.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fguillaume Florent Guillaume
                Reporter:
                fguillaume Florent Guillaume
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h