hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-2026) NPE in StoreScanner on compaction
Date Thu, 03 Dec 2009 05:43:20 GMT

    [ https://issues.apache.org/jira/browse/HBASE-2026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12785189#action_12785189
] 

stack commented on HBASE-2026:
------------------------------

Here is updateReaders with line numbers from 0.20:

{code}
232   // Implementation of ChangedReadersObserver
233   public synchronized void updateReaders() throws IOException {
234     if (this.closing.get()) return;
235     KeyValue topKey = this.peek();
236     if (topKey == null) return;
237     List<KeyValueScanner> scanners = getScanners();
238 
239     // Seek all scanners to the initial key
240     for(KeyValueScanner scanner : scanners) {
241       scanner.seek(topKey);
242     }
243 
244     // Combine all seeked scanners with a heap
245     heap = new KeyValueHeap(
246         scanners.toArray(new KeyValueScanner[scanners.size()]), store.comparator);
247 
248     // Reset the state of the Query Matcher and set to top row
249     matcher.reset();
250     matcher.setRow(heap.peek().getRow());
251   }
{code}

heap.peek is returning null?



> NPE in StoreScanner on compaction
> ---------------------------------
>
>                 Key: HBASE-2026
>                 URL: https://issues.apache.org/jira/browse/HBASE-2026
>             Project: Hadoop HBase
>          Issue Type: Bug
>    Affects Versions: 0.20.2
>            Reporter: Jean-Daniel Cryans
>             Fix For: 0.20.3, 0.21.0
>
>
> From Zhenyu:
> {code}
> 2009-12-01 00:35:05,321 INFO org.apache.hadoop.hbase.regionserver.HRegion: Starting compaction
on region ip_info_238,41.214.148.221,1259132082707
> 2009-12-01 00:35:05,572 WARN org.apache.hadoop.hbase.regionserver.Store: Not in setorg.apache.hadoop.hbase.regionserver.StoreScanner@7f821a6c
> 2009-12-01 00:35:05,572 WARN org.apache.hadoop.hbase.regionserver.Store: Not in setorg.apache.hadoop.hbase.regionserver.StoreScanner@7f821a6c
> 2009-12-01 00:35:05,572 ERROR org.apache.hadoop.hbase.regionserver.CompactSplitThread:
Compaction failed for region ip_info_238,41.214.148.221,1259132082707
> java.lang.NullPointerException
> 	at org.apache.hadoop.hbase.regionserver.StoreScanner.updateReaders(StoreScanner.java:250)
> 	at org.apache.hadoop.hbase.regionserver.Store.notifyChangedReadersObservers(Store.java:628)
> ...
> {code}

-- 
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