hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: What cause "Compaction is trying to add a bad range"
Date Tue, 26 Apr 2016 13:19:58 GMT
Can you pastebin region server log leading up to the exception below ?

Thanks

> On Apr 26, 2016, at 5:19 AM, 曾伟展 <zengweizhan@jd.com> wrote:
> 
> Hi, ALL
> 
>    I used PE to test HBase-1.1.2 ,and cause many regionserver died !
> 
> here is my log:
> 
> FATAL [MemStoreFlusher.1] regionserver.HRegionServer: ABORTING region server  MyIP  Replay
of WAL required. Forcing server shutdown
> org.apache.hadoop.hbase.DroppedSnapshotException: region: TestTable,00000000000000001394759025,1461590081858.a215be2647106a2a0fe8c4fad1430107.
>    at org.apache.hadoop.hbase.regionserver.HRegion.internalFlushCacheAndCommit(HRegion.java:2354)
>    at org.apache.hadoop.hbase.regionserver.HRegion.internalFlushcache(HRegion.java:2057)
>    at org.apache.hadoop.hbase.regionserver.HRegion.internalFlushcache(HRegion.java:2019)
>    at org.apache.hadoop.hbase.regionserver.HRegion.flushcache(HRegion.java:1911)
>    at org.apache.hadoop.hbase.regionserver.HRegion.flush(HRegion.java:1837)
>    at org.apache.hadoop.hbase.regionserver.MemStoreFlusher.flushRegion(MemStoreFlusher.java:510)
>    at org.apache.hadoop.hbase.regionserver.MemStoreFlusher.flushRegion(MemStoreFlusher.java:471)
>    at org.apache.hadoop.hbase.regionserver.MemStoreFlusher.access$800(MemStoreFlusher.java:75)
>    at org.apache.hadoop.hbase.regionserver.MemStoreFlusher$FlushHandler.run(MemStoreFlusher.java:259)
>    at java.lang.Thread.run(Thread.java:745)
> Caused by: java.io.IOException: Compaction is trying to add a bad range.
>    at org.apache.hadoop.hbase.regionserver.StripeStoreFileManager$CompactionOrFlushMergeCopy.processNewCandidateStripes(StripeStoreFileManager.java:837)
>    at org.apache.hadoop.hbase.regionserver.StripeStoreFileManager$CompactionOrFlushMergeCopy.mergeResults(StripeStoreFileManager.java:672)
>    at org.apache.hadoop.hbase.regionserver.StripeStoreFileManager.insertNewFiles(StripeStoreFileManager.java:144)
>    at org.apache.hadoop.hbase.regionserver.HStore.updateStorefiles(HStore.java:1052)
>    at org.apache.hadoop.hbase.regionserver.HStore.access$500(HStore.java:128)
>    at org.apache.hadoop.hbase.regionserver.HStore$StoreFlusherImpl.commit(HStore.java:2231)
>    at org.apache.hadoop.hbase.regionserver.HRegion.internalFlushCacheAndCommit(HRegion.java:2315)
>    ... 9 more
> 
> 
> and i don't know why  binarySearch return < 1
> 
> 
> private final int findStripeIndexByEndRow(byte[] endRow) {
>  assert !isInvalid(endRow);
>  if (isOpen(endRow)) return state.stripeEndRows.length;
>  return Arrays.binarySearch(state.stripeEndRows, endRow, Bytes.BYTES_COMPARATOR);
> }
> 
> 

Mime
View raw message