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

Cleanup task stops processing all repositories if an error is thrown processing a single repository

    XMLWordPrintable

    Details

    • Notability:
      3

      Description

      If an error occurs while running cleanup task in a repository it causes the entire cleanup task to fail. 

      Expected: The error should be caught and logged. The cleanup task should then move on to processing the next repository.

      2020-02-24 17:31:30,818-0500 WARN [quartz-3-thread-13] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskJob - Task 0b3d8bb2-e852-4850-81c9-aaaca53dec62 : 'Cleanup service' [repository.cleanup] execution failure
      org.elasticsearch.action.search.SearchPhaseExecutionException: all shards failed
      at org.elasticsearch.action.search.SearchScrollQueryAndFetchAsyncAction.onPhaseFailure(SearchScrollQueryAndFetchAsyncAction.java:155)
      at org.elasticsearch.action.search.SearchScrollQueryAndFetchAsyncAction.access$300(SearchScrollQueryAndFetchAsyncAction.java:41)
      at org.elasticsearch.action.search.SearchScrollQueryAndFetchAsyncAction$1.onFailure(SearchScrollQueryAndFetchAsyncAction.java:142)
      at org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:46)
      at org.elasticsearch.transport.TransportService$DirectResponseChannel.processException(TransportService.java:874)
      at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:852)
      at org.elasticsearch.transport.TransportService$4.onFailure(TransportService.java:389)
      at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:39)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: org.elasticsearch.transport.RemoteTransportException: [0ACADDEF-558108CA-57530157-84BF626E-9654F0BF][local[1]][indices:data/read/search[phase/query+fetch/scroll]]
      Caused by: org.elasticsearch.search.SearchContextMissingException: No search context found for id [39729]
      at org.elasticsearch.search.SearchService.findContext(SearchService.java:626)
      at org.elasticsearch.search.SearchService.executeFetchPhase(SearchService.java:553)
      at org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryFetchScrollTransportHandler.messageReceived(SearchServiceTransportAction.java:416)
      at org.elasticsearch.search.action.SearchServiceTransportAction$SearchQueryFetchScrollTransportHandler.messageReceived(SearchServiceTransportAction.java:413)
      at org.elasticsearch.transport.TransportRequestHandler.messageReceived(TransportRequestHandler.java:33)
      at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:77)
      at org.elasticsearch.transport.TransportService$4.doRun(TransportService.java:378)
      at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      2020-02-24 17:31:30,820-0500 INFO [quartz-3-thread-13] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Cleanup service' [repository.cleanup] state change RUNNING -> WAITING (FAILED)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mallen Mick Allen
              Reporter:
              rseddon Rich Seddon
              Last Updated By:
              Wes Wannemacher
              Team:
              NXRM - Operations/Groot
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title