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

Avoid NPE on Stream scaling metric

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2023.0, 2021.36
    • Component/s: Streams
    • Release Notes Summary:
      Scaling metric stream doesn't lead to NullPointerException.
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #84, nxplatform #85
    • Story Points:
      1

      Description

      Observed NPE

      nuxeo            | 2023-04-03T09:08:21,246 ERROR [AbstractComputation] Computation: stream/introspection fails last record: internal-metrics-00:+1011, after retries.
      nuxeo            | java.lang.NullPointerException: Cannot invoke "com.fasterxml.jackson.databind.node.ObjectNode.set(String, com.fasterxml.jackson.databind.JsonNode)" because "stream" is null
      nuxeo            |      at org.nuxeo.ecm.core.bulk.introspection.StreamIntrospectionConverter.getActiveComputations(StreamIntrospectionConverter.java:442) ~[nuxeo-core-bulk-2023.0-SNAPSHOT.jar:?]
      nuxeo            |      at org.nuxeo.ecm.core.bulk.introspection.StreamIntrospectionConverter.getActivity(StreamIntrospectionConverter.java:352) ~[nuxeo-core-bulk-2023.0-SNAPSHOT.jar:?]
      nuxeo            |      at org.nuxeo.ecm.core.bulk.introspection.StreamIntrospectionComputation.updateModel(StreamIntrospectionComputation.java:191) ~[nuxeo-core-bulk-2023.0-SNAPSHOT.jar:?]
      nuxeo            |      at org.nuxeo.ecm.core.bulk.introspection.StreamIntrospectionComputation.processRecord(StreamIntrospectionComputation.java:162) ~[nuxeo-core-bulk-2023.0-SNAPSHOT.jar:?]
      nuxeo            |      at org.nuxeo.lib.stream.computation.log.ComputationRunner.lambda$processRecordWithRetry$10(ComputationRunner.java:510) ~[nuxeo-stream-2023.0-SNAPSHOT.jar:?]
      
      ...
      nuxeo            | 2023-04-03T09:08:21,253 ERROR [ComputationRunner] stream/introspection: Terminate computation due to previous failure
      

      During the first start, It is possible that an active computation has not yet lag/end metrics associated.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: