Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-30817

Log4j Visualizer task repository.vulnerability.statistics task fails to run in HA-C

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.37.3
    • Fix Version/s: None
    • Component/s: HA, Log4j Visualizer
    • Labels:
    • Notability:
      3

      Description

      The repository.vulnerability.statistics task fails to run in HA-C with the following exception:

      2022-01-04 18:29:51,726+0000 ERROR [quartz-10-thread-2] *SYSTEM com.orientechnologies.orient.core.db.OPartitionedDatabasePool$DatabaseDocumentTxPooled - Error on transaction commit `51B6A152`2022-01-04 18:29:51,726+0000 ERROR [quartz-10-thread-2] *SYSTEM com.orientechnologies.orient.core.db.OPartitionedDatabasePool$DatabaseDocumentTxPooled - Error on transaction commit `51B6A152` com.orientechnologies.orient.core.exception.OTransactionException: No response received from distributed servers  DB name="component"  at com.orientechnologies.orient.server.distributed.impl.ODistributedTransactionManager.commit(ODistributedTransactionManager.java:189)  at com.orientechnologies.orient.server.distributed.impl.ODistributedStorage.commit(ODistributedStorage.java:1426)  at com.orientechnologies.orient.core.tx.OTransactionOptimistic.doCommit(OTransactionOptimistic.java:541)  at com.orientechnologies.orient.core.tx.OTransactionOptimistic.commit(OTransactionOptimistic.java:99)  at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:2908)  at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:2870)  at org.sonatype.nexus.orient.transaction.OrientTransaction.commit(OrientTransaction.java:74)  at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:69)  at org.sonatype.nexus.transaction.Operations.proceedWithTransaction(Operations.java:232)  at org.sonatype.nexus.transaction.Operations.transactional(Operations.java:223)  at org.sonatype.nexus.transaction.Operations.run(Operations.java:175)  at org.sonatype.nexus.orient.transaction.OrientOperations.run(OrientOperations.java:62)  at com.sonatype.nexus.vulnerability.internal.orient.OrientDownloadCountStore.purge(OrientDownloadCountStore.java:142)  at com.sonatype.nexus.vulnerability.internal.log.VulnerabilityRadarService.recalculateStatistics(VulnerabilityRadarService.java:70)  at com.sonatype.nexus.vulnerability.internal.log.VulnerabilityStatisticsTask.execute(VulnerabilityStatisticsTask.java:37)

      To reproduce:

      Set up a 3 node HA-C instance, enable the "Log4J Visualizer" capability and run the "Statistics - recalculate vulnerabilities statistics" task.

      Expected:
      The task should be implemented to run in HA-C or the "Log4J Visualizer" capability or the related task should be a no-op when HA-C is enabled (alongside the documentation being updated to state it is not supported for HA).
       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            hardeepn Hardeep Nagra
            Last Updated By:
            Grace Lee Grace Lee
            Team:
            NXRM - Mad Max
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title