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

Enable ERROR logs checking on all functional tests modules

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 11.x
    • Component/s: CI/CD

      Description

      Follwoing NXP-29533, ERROR logs checking are only done for those functional tests modules (the ones containing actual tests):

      • nuxeo-jsf-to-web-ui-tests
      • nuxeo-server-cmis-tests
      • nuxeo-server-gatling-tests
      • nuxeo-server-hotreload-tests
      • nuxeo-server-tests

      We want to enable it on all other functional tests modules but there are some issues to be fixed before.

      Azure package when not configured may produce ERROR logs:

      2020-08-14T18:15:00,230 ERROR [Nuxeo-Work-default-1:33573404184334.1573403029] [org.nuxeo.ecm.core.work.AbstractWork] Exception during work: TransiantStorageGCWork(, Progress(?%, ?/0), null)
      java.lang.IllegalArgumentException: The argument must not be null or an empty string. Argument name: containerName.
      	at com.microsoft.azure.storage.core.Utility.assertNotNull(Utility.java:295) ~[azure-storage-3.1.0.jar:?]
      	at com.microsoft.azure.storage.blob.CloudBlobContainer.<init>(CloudBlobContainer.java:205) ~[azure-storage-3.1.0.jar:?]
      	at com.microsoft.azure.storage.blob.CloudBlobClient.getContainerReference(CloudBlobClient.java:134) ~[azure-storage-3.1.0.jar:?]
      	at org.nuxeo.ecm.blob.azure.AzureBinaryManager.setupCloudClient(AzureBinaryManager.java:103) ~[nuxeo-core-binarymanager-azure-11.3.6.jar:?]
      	at org.nuxeo.ecm.blob.AbstractCloudBinaryManager.initialize(AbstractCloudBinaryManager.java:122) ~[nuxeo-core-binarymanager-common-11.3.6.jar:?]
      	at org.nuxeo.ecm.core.blob.BlobManagerComponent.getBlobProvider(BlobManagerComponent.java:191) ~[nuxeo-core-api-11.3.6.jar:?]
      	at org.nuxeo.ecm.core.blob.BlobManagerComponent.getBlobProviderWithNamespace(BlobManagerComponent.java:218) ~[nuxeo-core-api-11.3.6.jar:?]
      	at org.nuxeo.ecm.core.transientstore.keyvalueblob.KeyValueBlobTransientStore.getBlobProvider(KeyValueBlobTransientStore.java:213) ~[nuxeo-core-cache-11.3.6.jar:?]
      	at org.nuxeo.ecm.core.transientstore.keyvalueblob.KeyValueBlobTransientStore.doGC(KeyValueBlobTransientStore.java:279) ~[nuxeo-core-cache-11.3.6.jar:?]
      	at java.util.HashMap$Values.forEach(HashMap.java:976) ~[?:?]
      	at org.nuxeo.ecm.core.transientstore.TransientStorageComponent.doGC(TransientStorageComponent.java:98) ~[nuxeo-core-cache-11.3.6.jar:?]
      	at org.nuxeo.ecm.core.transientstore.TransiantStorageGCWork.work(TransiantStorageGCWork.java:41) ~[nuxeo-core-cache-11.3.6.jar:?]
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:530) [nuxeo-core-event-11.3.6.jar:?]
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:385) [nuxeo-core-event-11.3.6.jar:?]
      	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) [nuxeo-core-event-11.3.6.jar:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
      	at java.lang.Thread.run(Thread.java:834) [?:?]
      2020-08-14T18:15:00,296 ERROR [Nuxeo-Work-default-1] [org.nuxeo.ecm.core.work.WorkManagerImpl] Uncaught error on thread: Nuxeo-Work-default-1, current work might be lost, WorkManager metrics might be corrupted.
      org.nuxeo.ecm.core.api.NuxeoException: Work failed after 0 retries, class=class org.nuxeo.ecm.core.transientstore.TransiantStorageGCWork id=33573404184334.1573403029 category=TransiantStorageGCWork title=Transient Store GC
      	at org.nuxeo.ecm.core.work.AbstractWork.workFailed(AbstractWork.java:476) ~[nuxeo-core-event-11.3.6.jar:?]
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:398) ~[nuxeo-core-event-11.3.6.jar:?]
      	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) ~[nuxeo-core-event-11.3.6.jar:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
      	at java.lang.Thread.run(Thread.java:834) [?:?]
      Caused by: java.lang.IllegalArgumentException: The argument must not be null or an empty string. Argument name: containerName.
      	at com.microsoft.azure.storage.core.Utility.assertNotNull(Utility.java:295) ~[azure-storage-3.1.0.jar:?]
      	at com.microsoft.azure.storage.blob.CloudBlobContainer.<init>(CloudBlobContainer.java:205) ~[azure-storage-3.1.0.jar:?]
      	at com.microsoft.azure.storage.blob.CloudBlobClient.getContainerReference(CloudBlobClient.java:134) ~[azure-storage-3.1.0.jar:?]
      	at org.nuxeo.ecm.blob.azure.AzureBinaryManager.setupCloudClient(AzureBinaryManager.java:103) ~[nuxeo-core-binarymanager-azure-11.3.6.jar:?]
      	at org.nuxeo.ecm.blob.AbstractCloudBinaryManager.initialize(AbstractCloudBinaryManager.java:122) ~[nuxeo-core-binarymanager-common-11.3.6.jar:?]
      	at org.nuxeo.ecm.core.blob.BlobManagerComponent.getBlobProvider(BlobManagerComponent.java:191) ~[nuxeo-core-api-11.3.6.jar:?]
      	at org.nuxeo.ecm.core.blob.BlobManagerComponent.getBlobProviderWithNamespace(BlobManagerComponent.java:218) ~[nuxeo-core-api-11.3.6.jar:?]
      	at org.nuxeo.ecm.core.transientstore.keyvalueblob.KeyValueBlobTransientStore.getBlobProvider(KeyValueBlobTransientStore.java:213) ~[nuxeo-core-cache-11.3.6.jar:?]
      	at org.nuxeo.ecm.core.transientstore.keyvalueblob.KeyValueBlobTransientStore.doGC(KeyValueBlobTransientStore.java:279) ~[nuxeo-core-cache-11.3.6.jar:?]
      	at java.util.HashMap$Values.forEach(HashMap.java:976) ~[?:?]
      	at org.nuxeo.ecm.core.transientstore.TransientStorageComponent.doGC(TransientStorageComponent.java:98) ~[nuxeo-core-cache-11.3.6.jar:?]
      	at org.nuxeo.ecm.core.transientstore.TransiantStorageGCWork.work(TransiantStorageGCWork.java:41) ~[nuxeo-core-cache-11.3.6.jar:?]
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:530) ~[nuxeo-core-event-11.3.6.jar:?]
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:385) ~[nuxeo-core-event-11.3.6.jar:?]
      	... 4 more
      

      Same for S3 package when not configured:

      2020-08-14T14:15:00,533 ERROR [Nuxeo-Work-default-3:18602793128272.948249659] [org.nuxeo.ecm.core.work.AbstractWork] Exception during work: TransiantStorageGCWork(, Progress(?%, ?/0), null)
      java.lang.RuntimeException: Missing conf: bucket
      	at org.nuxeo.ecm.core.storage.sql.S3BinaryManager.setupCloudClient(S3BinaryManager.java:269) ~[nuxeo-core-binarymanager-s3-PR-4258-11.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.blob.AbstractCloudBinaryManager.initialize(AbstractCloudBinaryManager.java:122) ~[nuxeo-core-binarymanager-common-PR-4258-11.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.blob.BlobManagerComponent.getBlobProvider(BlobManagerComponent.java:191) ~[nuxeo-core-api-PR-4258-11.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.blob.BlobManagerComponent.getBlobProviderWithNamespace(BlobManagerComponent.java:218) ~[nuxeo-core-api-PR-4258-11.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.transientstore.keyvalueblob.KeyValueBlobTransientStore.getBlobProvider(KeyValueBlobTransientStore.java:213) ~[nuxeo-core-cache-PR-4258-11.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.transientstore.keyvalueblob.KeyValueBlobTransientStore.doGC(KeyValueBlobTransientStore.java:279) ~[nuxeo-core-cache-PR-4258-11.3-SNAPSHOT.jar:?]
      	at java.util.HashMap$Values.forEach(HashMap.java:976) ~[?:?]
      	at org.nuxeo.ecm.core.transientstore.TransientStorageComponent.doGC(TransientStorageComponent.java:98) ~[nuxeo-core-cache-PR-4258-11.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.transientstore.TransiantStorageGCWork.work(TransiantStorageGCWork.java:41) ~[nuxeo-core-cache-PR-4258-11.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:530) [nuxeo-core-event-PR-4258-11.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:385) [nuxeo-core-event-PR-4258-11.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) [nuxeo-core-event-PR-4258-11.3-SNAPSHOT.jar:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
      	at java.lang.Thread.run(Thread.java:834) [?:?]
      2020-08-14T14:15:00,568 ERROR [Nuxeo-Work-default-3] [org.nuxeo.ecm.core.work.WorkManagerImpl] Uncaught error on thread: Nuxeo-Work-default-3, current work might be lost, WorkManager metrics might be corrupted.
      org.nuxeo.ecm.core.api.NuxeoException: Work failed after 0 retries, class=class org.nuxeo.ecm.core.transientstore.TransiantStorageGCWork id=18602793128272.948249659 category=TransiantStorageGCWork title=Transient Store GC
      	at org.nuxeo.ecm.core.work.AbstractWork.workFailed(AbstractWork.java:476) ~[nuxeo-core-event-PR-4258-11.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:398) ~[nuxeo-core-event-PR-4258-11.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) ~[nuxeo-core-event-PR-4258-11.3-SNAPSHOT.jar:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
      	at java.lang.Thread.run(Thread.java:834) [?:?]
      Caused by: java.lang.RuntimeException: Missing conf: bucket
      	at org.nuxeo.ecm.core.storage.sql.S3BinaryManager.setupCloudClient(S3BinaryManager.java:269) ~[nuxeo-core-binarymanager-s3-PR-4258-11.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.blob.AbstractCloudBinaryManager.initialize(AbstractCloudBinaryManager.java:122) ~[nuxeo-core-binarymanager-common-PR-4258-11.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.blob.BlobManagerComponent.getBlobProvider(BlobManagerComponent.java:191) ~[nuxeo-core-api-PR-4258-11.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.blob.BlobManagerComponent.getBlobProviderWithNamespace(BlobManagerComponent.java:218) ~[nuxeo-core-api-PR-4258-11.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.transientstore.keyvalueblob.KeyValueBlobTransientStore.getBlobProvider(KeyValueBlobTransientStore.java:213) ~[nuxeo-core-cache-PR-4258-11.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.transientstore.keyvalueblob.KeyValueBlobTransientStore.doGC(KeyValueBlobTransientStore.java:279) ~[nuxeo-core-cache-PR-4258-11.3-SNAPSHOT.jar:?]
      	at java.util.HashMap$Values.forEach(HashMap.java:976) ~[?:?]
      	at org.nuxeo.ecm.core.transientstore.TransientStorageComponent.doGC(TransientStorageComponent.java:98) ~[nuxeo-core-cache-PR-4258-11.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.transientstore.TransiantStorageGCWork.work(TransiantStorageGCWork.java:41) ~[nuxeo-core-cache-PR-4258-11.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:530) ~[nuxeo-core-event-PR-4258-11.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:385) ~[nuxeo-core-event-PR-4258-11.3-SNAPSHOT.jar:?]
      	... 4 more
      

      Other packages need also to be checked.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              troger Thomas Roger
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: