You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2023/10/07 05:29:00 UTC

[jira] [Created] (HDDS-9412) NPE in TestOzoneManagerHAKeyDeletion#testKeyDeletion

Attila Doroszlai created HDDS-9412:
--------------------------------------

             Summary: NPE in TestOzoneManagerHAKeyDeletion#testKeyDeletion
                 Key: HDDS-9412
                 URL: https://issues.apache.org/jira/browse/HDDS-9412
             Project: Apache Ozone
          Issue Type: Bug
          Components: test
    Affects Versions: 1.4.0
            Reporter: Attila Doroszlai
            Assignee: Attila Doroszlai


HDDS-9232 added a new test in {{TestOzoneManagerHAKeyDeletion}}, now the only previous started failing.

{code:title=https://github.com/adoroszlai/ozone-build-results/blob/master/2023/10/06/25816/it-om/hadoop-ozone/integration-test/org.apache.hadoop.ozone.om.TestOzoneManagerHAKeyDeletion.txt}
org.apache.hadoop.ozone.om.TestOzoneManagerHAKeyDeletion.testKeyDeletion  Time elapsed: 5.575 s  <<< ERROR!
java.lang.NullPointerException
	at org.apache.hadoop.ozone.om.TestOzoneManagerHAKeyDeletion.lambda$testKeyDeletion$0(TestOzoneManagerHAKeyDeletion.java:84)
	at org.apache.ozone.test.GenericTestUtils.waitFor(GenericTestUtils.java:221)
	at org.apache.hadoop.ozone.om.TestOzoneManagerHAKeyDeletion.testKeyDeletion(TestOzoneManagerHAKeyDeletion.java:83)
{code}

The root cause is that {{TestOzoneManagerHA}} "restarts" OMs after each test, but "restart" does not start {{KeyManager}}.  The latter creates {{KeyDeletingService}} only upon start.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org