You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Tejaskriya Madhan (Jira)" <ji...@apache.org> on 2023/09/05 04:56:00 UTC
[jira] [Commented] (HDDS-6888) NPE raised by freon RandomKeys on ShutdownHook()
[ https://issues.apache.org/jira/browse/HDDS-6888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17761943#comment-17761943 ]
Tejaskriya Madhan commented on HDDS-6888:
-----------------------------------------
This is resolved in HDDS-7934
> NPE raised by freon RandomKeys on ShutdownHook()
> ------------------------------------------------
>
> Key: HDDS-6888
> URL: https://issues.apache.org/jira/browse/HDDS-6888
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Neil Joshi
> Assignee: Tejaskriya Madhan
> Priority: Major
>
> Freon load testing randomkeys throws a null pointer exception on ShutdownHook when RandomKeys.printStats is called.
> Issue can be reproduced on docker development cluster, in this case ozone-ha as follows:
> hadoop-ozone/dist/target/ozone-.../compose/ozone-ha$ docker-compose up {-}d -{-}scale datanode=3
> $ docker-compose exec scm1 bash
> bash-4.2$ _ozone freon randomkeys --numOfVolumes=1 --numOfBuckets=1 --numOfKeys=2 --keySize=1024000_
> {code:java}
> Status: Success
> Git Base Revision: a3b9c37a397ad4188041dd80621bdeefc46885f2
> Number of Volumes created: 1
> Number of Buckets created: 1
> Number of Keys added: 2
> 2022-06-14 23:57:38,841 [Thread-3] WARN util.ShutdownHookManager: ShutdownHook 'RandomKeyGenerator$$Lambda$124/0x0000000840276840' failed, java.util.concurrent.ExecutionException: java.lang.NullPointerException
> java.util.concurrent.ExecutionException: java.lang.NullPointerException
> at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
> at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:205)
> at org.apache.hadoop.ozone.util.ShutdownHookManager.executeShutdown(ShutdownHookManager.java:132)
> at org.apache.hadoop.ozone.util.ShutdownHookManager$1.run(ShutdownHookManager.java:103)
> Caused by: java.lang.NullPointerException
> at org.apache.hadoop.ozone.freon.RandomKeyGenerator.printStats(RandomKeyGenerator.java:487)
> at org.apache.hadoop.ozone.freon.RandomKeyGenerator.lambda$addShutdownHook$0(RandomKeyGenerator.java:399)
> at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
> at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
> at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> at java.base/java.lang.Thread.run(Thread.java:829){code}
>
>
--
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