hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pranav Khaitan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HBASE-2797) Another NPE in ReadWriteConsistencyControl
Date Tue, 06 Jul 2010 23:45:52 GMT

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

Pranav Khaitan updated HBASE-2797:
----------------------------------

    Attachment: testDebugNPE.diff

Got a similar NPE error while running a test for HBase-2265. Wrote a simple function which
always replicates the NPE error so that it is easy to detect the cause.

java.lang.NullPointerException
	at org.apache.hadoop.hbase.regionserver.ReadWriteConsistencyControl.getThreadReadPoint(ReadWriteConsistencyControl.java:45)
	at org.apache.hadoop.hbase.regionserver.MemStore$MemStoreScanner.getNext(MemStore.java:532)
	at org.apache.hadoop.hbase.regionserver.MemStore$MemStoreScanner.seek(MemStore.java:559)
	at org.apache.hadoop.hbase.regionserver.StoreScanner.<init>(StoreScanner.java:73)
	at org.apache.hadoop.hbase.regionserver.TestStore.testDebugNPE(TestStore.java:280)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at junit.framework.TestCase.runTest(TestCase.java:168)
	at junit.framework.TestCase.runBare(TestCase.java:134)
	at junit.framework.TestResult$1.protect(TestResult.java:110)
	at junit.framework.TestResult.runProtected(TestResult.java:128)
	at junit.framework.TestResult.run(TestResult.java:113)
	at junit.framework.TestCase.run(TestCase.java:124)
	at junit.framework.TestSuite.runTest(TestSuite.java:232)
	at junit.framework.TestSuite.run(TestSuite.java:227)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

 

> Another NPE in ReadWriteConsistencyControl
> ------------------------------------------
>
>                 Key: HBASE-2797
>                 URL: https://issues.apache.org/jira/browse/HBASE-2797
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.5
>            Reporter: Dave Latham
>            Assignee: ryan rawson
>            Priority: Blocker
>             Fix For: 0.20.6
>
>         Attachments: testDebugNPE.diff
>
>
> This occurred on a cluster with 46 slaves, running a couple MR jobs.  One doing heavy
writes copying everything from one table to a new table with a different schema.  After one
regionserver went down, about 40 of them died within an hour before it was caught and the
jobs stopped.  Let me know if any other piece of context would be particularly helpful.
> This exception appears in the .out file:
> Exception in thread "regionserver/192.168.41.2:60020" java.lang.NullPointerException
>         at org.apache.hadoop.hbase.regionserver.ReadWriteConsistencyControl.getThreadReadPoint(ReadWriteConsistencyControl.java:40)
>         at org.apache.hadoop.hbase.regionserver.MemStore$MemStoreScanner.getNext(MemStore.java:532)
>         at org.apache.hadoop.hbase.regionserver.MemStore$MemStoreScanner.seek(MemStore.java:558)
>         at org.apache.hadoop.hbase.regionserver.StoreScanner.reseek(StoreScanner.java:320)
>         at org.apache.hadoop.hbase.regionserver.StoreScanner.checkReseek(StoreScanner.java:306)
>         at org.apache.hadoop.hbase.regionserver.StoreScanner.peek(StoreScanner.java:143)
>         at org.apache.hadoop.hbase.regionserver.KeyValueHeap$KVScannerComparator.compare(KeyValueHeap.java:127)
>         at org.apache.hadoop.hbase.regionserver.KeyValueHeap$KVScannerComparator.compare(KeyValueHeap.java:117)
>         at java.util.PriorityQueue.siftDownUsingComparator(PriorityQueue.java:644)
>         at java.util.PriorityQueue.siftDown(PriorityQueue.java:612)
>         at java.util.PriorityQueue.poll(PriorityQueue.java:523)
>         at org.apache.hadoop.hbase.regionserver.KeyValueHeap.close(KeyValueHeap.java:151)
>         at org.apache.hadoop.hbase.regionserver.HRegion$RegionScanner.close(HRegion.java:1971)
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.closeAllRegions(HRegionServer.java:1610)
>         at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:621)
>         at java.lang.Thread.run(Thread.java:619)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message