Details
-
Test
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
This fails for me locally sporadically.
------------------------------------------------------------------------------- Test set: org.apache.hadoop.hbase.TestServerSideScanMetricsFromClientSide ------------------------------------------------------------------------------- Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.893 s <<< FAILURE! - in org.apache.hadoop.hbase.TestServerSideScanMetricsFromClientSide org.apache.hadoop.hbase.TestServerSideScanMetricsFromClientSide.testRowsSeenMetricWithAsync Time elapsed: 0.325 s <<< ERROR! java.lang.NullPointerException
Log pinpoints the problem a little better
Exception in thread "testTable.asyncPrefetcher" java.lang.NullPointerException at org.apache.hadoop.hbase.client.ClientAsyncPrefetchScanner$PrefetchRunnable.run(ClientAsyncPrefetchScanner.java:183) at java.lang.Thread.run(Thread.java:748) java.lang.NullPointerException at org.apache.hadoop.hbase.client.ClientAsyncPrefetchScanner$PrefetchRunnable.run(ClientAsyncPrefetchScanner.java:174) at java.lang.Thread.run(Thread.java:748) java.lang.NullPointerException at org.apache.hadoop.hbase.client.ClientAsyncPrefetchScanner$PrefetchRunnable.run(ClientAsyncPrefetchScanner.java:174) at java.lang.Thread.run(Thread.java:748) 2020-03-26 22:18:15,160 ERROR [Listener at localhost/53268] hbase.TestServerSideScanMetricsFromClientSide(202): FAIL java.lang.NullPointerException at org.apache.hadoop.hbase.client.ClientAsyncPrefetchScanner$PrefetchRunnable.run(ClientAsyncPrefetchScanner.java:174) at java.lang.Thread.run(Thread.java:748)
It didn't make sense to me since complaint was about a 'lock' that is created as a final data member. But then this issue happened for my compaƱero, ndimiduk... and he saw that the call is from a Thread inner class in this class's grandparent that is set running on construction; i.e. the lock could be null at the time of reference.
Attachments
Issue Links
- links to