[ 
https://issues.apache.org/jira/browse/HDDS-9519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hemant Kumar updated HDDS-9519:
-------------------------------
    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

> NPE in OM background services during restart
> --------------------------------------------
>
>                 Key: HDDS-9519
>                 URL: https://issues.apache.org/jira/browse/HDDS-9519
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: OM
>            Reporter: Attila Doroszlai
>            Assignee: Attila Doroszlai
>            Priority: Minor
>              Labels: pull-request-available
>
> Various OM background services can encounter NPE after shutdown:
> {code}
> 2023-10-20 11:38:21,873 [omNode-3-KeyDeletingService#0] WARN  
> utils.BackgroundService (BackgroundService.java:lambda$run$0(145)) - 
> Background task execution failed
> java.lang.NullPointerException
>       at 
> org.apache.hadoop.ozone.om.OzoneManager.isLeaderReady(OzoneManager.java:4068)
>       at 
> org.apache.hadoop.ozone.om.service.DirectoryDeletingService.shouldRun(DirectoryDeletingService.java:110)
>       at 
> org.apache.hadoop.ozone.om.service.DirectoryDeletingService.access$0(DirectoryDeletingService.java:105)
>       at 
> org.apache.hadoop.ozone.om.service.DirectoryDeletingService$DirDeletingTask.call(DirectoryDeletingService.java:145)
>       at 
> org.apache.hadoop.hdds.utils.BackgroundService$PeriodicalTask.lambda$run$0(BackgroundService.java:140)
> {code}
> This happens mostly in integration tests that restart OM.
> * 
> https://github.com/adoroszlai/ozone-build-results/blob/master/2023/09/14/25374/it-om/hadoop-ozone/integration-test/org.apache.hadoop.ozone.om.TestSnapshotBackgroundServices-output.txt
> * 
> https://github.com/adoroszlai/ozone-build-results/blob/master/2023/10/09/25832/it-om/hadoop-ozone/integration-test/org.apache.hadoop.ozone.om.TestOzoneManagerHAMetadataOnly-output.txt
> * 
> https://github.com/adoroszlai/ozone-build-results/blob/master/2023/10/17/26083/it-om/hadoop-ozone/integration-test/org.apache.hadoop.ozone.om.TestOzoneManagerHAMetadataOnly-output.txt
> * 
> https://github.com/adoroszlai/ozone-build-results/blob/master/2023/10/20/26171/it-om/hadoop-ozone/integration-test/org.apache.hadoop.ozone.om.TestOzoneManagerHAMetadataOnly-output.txt



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to