Uploaded image for project: 'Nuxeo AI Core'
  1. Nuxeo AI Core
  2. AICORE-534

Don't store GCP Metrics in variable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.1.2-2021
    • Fix Version/s: 3.3.0-2021
    • Component/s: AI Cloud Services

      Description

      Service may not be available when the enricher init method is executed depending on deployment order.

      nuxeo_1          | 2021-08-15T07:50:26,295 WARN  [EnrichingStreamProcessor] Enrichment error (gcp.imageCropHints) for record: Record{watermark=213518096595288064, wmDate=2021-08-15 07:49:58.487, flags=[DEFAULT], key='b58ed764-4c18-4369-aa63-fa79c37c940c', data.length=470, data="{"blobTypes":{"picture:views/3/content":"img"},"blobs":{"picture:views/3/content":{"mimeType":"image/jpeg","encoding":null,"dig"}
      nuxeo_1          | java.lang.NullPointerException: null
      nuxeo_1          |      at org.nuxeo.ai.gcp.provider.AbstractTagProvider.registerMetrics(AbstractTagProvider.java:134) ~[nuxeo-ai-gcp-core-3.1.2-2021.jar:?]
      nuxeo_1          |      at org.nuxeo.ai.gcp.provider.AbstractTagProvider.enrich(AbstractTagProvider.java:121) ~[nuxeo-ai-gcp-core-3.1.2-2021.jar:?]
      nuxeo_1          |      at org.nuxeo.ai.enrichment.EnrichingStreamProcessor$EnrichmentComputation.getAiMetadata(EnrichingStreamProcessor.java:247) ~[nuxeo-ai-core-3.1.2-2021.jar:?]
      nuxeo_1          |      at org.nuxeo.ai.enrichment.EnrichingStreamProcessor$EnrichmentComputation.lambda$getProvider$5(EnrichingStreamProcessor.java:235) ~[nuxeo-ai-core-3.1.2-2021.jar:?]
      

      ==> Get the service when needed

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: