[ https://issues.apache.org/jira/browse/HBASE-10855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13959298#comment-13959298 ]
stack commented on HBASE-10855: ------------------------------- FYI, here is what happens if you start a hbase-0.96.x over a directory written w/ hfile v3s: {code} Caused by: org.apache.hadoop.hbase.io.hfile.CorruptHFileException: Problem reading HFile Trailer from file file:/var/folders/cj/jgfy62h13vz019xgz681df_r0000gp/T/hbase-stack/hbase/data/hbase/meta/1588230740/info/38f517aa7abf40ffbc4f8fa7b170f4bc at org.apache.hadoop.hbase.io.hfile.HFile.pickReaderVersion(HFile.java:581) at org.apache.hadoop.hbase.io.hfile.HFile.createReader(HFile.java:607) at org.apache.hadoop.hbase.regionserver.StoreFile$Reader.<init>(StoreFile.java:1083) at org.apache.hadoop.hbase.regionserver.StoreFileInfo.open(StoreFileInfo.java:188) at org.apache.hadoop.hbase.regionserver.StoreFile.open(StoreFile.java:351) at org.apache.hadoop.hbase.regionserver.StoreFile.createReader(StoreFile.java:446) at org.apache.hadoop.hbase.regionserver.HStore.createStoreFileAndReader(HStore.java:478) at org.apache.hadoop.hbase.regionserver.HStore.access$000(HStore.java:109) at org.apache.hadoop.hbase.regionserver.HStore$1.call(HStore.java:431) at org.apache.hadoop.hbase.regionserver.HStore$1.call(HStore.java:428) ... 6 more Caused by: java.lang.IllegalArgumentException: Invalid HFile version: 3 (expected to be between 2 and 2) at org.apache.hadoop.hbase.io.hfile.HFile.checkFormatVersion(HFile.java:912) at org.apache.hadoop.hbase.io.hfile.FixedFileTrailer.readFromStream(FixedFileTrailer.java:429) at org.apache.hadoop.hbase.io.hfile.HFile.pickReaderVersion(HFile.java:567) ... 15 more ... 2014-04-03 14:53:28,114 INFO [RS_OPEN_META-172.21.8.204:50714-0] handler.OpenRegionHandler: Opening of region {ENCODED => 1588230740, NAME => 'hbase:meta,,1', STARTKEY => '', ENDKEY => ''} failed, transitioning from OPENING to FAILED_OPEN in ZK, expecting version 28 2014-04-03 14:53:28,114 DEBUG [RS_OPEN_META-172.21.8.204:50714-0] zookeeper.ZKAssign: regionserver:50714-0x1452994d1c50002, quorum=localhost:2181, baseZNode=/hbase Transitioning 1588230740 from RS_ZK_REGION_OPENING to RS_ZK_REGION_FAILED_OPEN 2014-04-03 14:53:28,116 DEBUG [RS_OPEN_META-172.21.8.204:50714-0] zookeeper.ZKAssign: regionserver:50714-0x1452994d1c50002, quorum=localhost:2181, baseZNode=/hbase Transitioned node 1588230740 from RS_ZK_REGION_OPENING to RS_ZK_REGION_FAILED_OPEN 2014-04-03 14:53:28,116 DEBUG [AM.ZK.Worker-pool2-t9] master.AssignmentManager: Handling RS_ZK_REGION_FAILED_OPEN, server=172.21.8.204,50714,1396561996130, region=1588230740, current_state={1588230740 state=OPENING, ts=1396562008105, server=172.21.8.204,50714,1396561996130} 2014-04-03 14:53:28,116 WARN [AM.ZK.Worker-pool2-t9] master.RegionStates: Failed to open/close 1588230740 on 172.21.8.204,50714,1396561996130, set to FAILED_OPEN 2014-04-03 14:53:28,116 INFO [AM.ZK.Worker-pool2-t9] master.RegionStates: Transitioned {1588230740 state=OPENING, ts=1396562008105, server=172.21.8.204,50714,1396561996130} to {1588230740 state=FAILED_OPEN, ts=1396562008116, server=172.21.8.204,50714,1396561996130} {code} We fail to open the region which is the right thing to do. > Enable hfilev3 by default > ------------------------- > > Key: HBASE-10855 > URL: https://issues.apache.org/jira/browse/HBASE-10855 > Project: HBase > Issue Type: Sub-task > Components: HFile > Reporter: stack > Assignee: stack > Fix For: 0.99.0 > > Attachments: 10855.txt, 10855.txt, 10855.txt, 10855.txt, 10855v2.txt, > 10855v2.txt, 10855v2.txt > > > Distributed log replay needs this. Should be on by default in 1.0/0.99. -- This message was sent by Atlassian JIRA (v6.2#6252)