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

Avoid NPE on Stream scaling metric

    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

            Hide
            sbouzan Stephen Bouzan added a comment -

            Is this NPE associated with HF35?

            Show
            sbouzan Stephen Bouzan added a comment - Is this NPE associated with HF35?
            Hide
            hudson Jenkins added a comment -

            FAILURE: Integrated in nuxeo » lts » nuxeo » 2021 #636
            NXP-31813: Avoid NPE on scaling metric (bdelbosc: ce834c6cd962ba5e80fb11e2b362fb1a28a893ae)

            Show
            hudson Jenkins added a comment - FAILURE: Integrated in nuxeo » lts » nuxeo » 2021 #636 NXP-31813 : Avoid NPE on scaling metric (bdelbosc: ce834c6cd962ba5e80fb11e2b362fb1a28a893ae )
            Hide
            hudson Jenkins added a comment -

            SUCCESS: Integrated in nuxeo » lts » nuxeo » 2023 #396
            NXP-31813: Avoid NPE on scaling metric (bdelbosc: a78d646db8f873ae38548cf24cf9e4b65e678d90)

            Show
            hudson Jenkins added a comment - SUCCESS: Integrated in nuxeo » lts » nuxeo » 2023 #396 NXP-31813 : Avoid NPE on scaling metric (bdelbosc: a78d646db8f873ae38548cf24cf9e4b65e678d90 )

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: