You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2016/05/03 18:17:13 UTC

[jira] [Resolved] (HBASE-15657) Failed snapshot verification may not be detected by TakeSnapshotHandler

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

Ted Yu resolved HBASE-15657.
----------------------------
    Resolution: Later

The cause for the initially reported failure was out of date Protos file.

No change needed after bringing the Protos file up-to-date.

> Failed snapshot verification may not be detected by TakeSnapshotHandler
> -----------------------------------------------------------------------
>
>                 Key: HBASE-15657
>                 URL: https://issues.apache.org/jira/browse/HBASE-15657
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>         Attachments: 15657-master.log, 15657.v1.patch
>
>
> {code}
> 2016-04-13 07:41:09,572 INFO  [(10.0.0.75,16000,1460531913905)-proc-coordinator-pool1-thread-1] procedure.Procedure: Procedure 'snapshot_tb1_create' execution completed
> 2016-04-13 07:41:09,573 DEBUG [(10.0.0.75,16000,1460531913905)-proc-coordinator-pool1-thread-1] procedure.Procedure: Running finish phase.
> 2016-04-13 07:41:09,573 DEBUG [(10.0.0.75,16000,1460531913905)-proc-coordinator-pool1-thread-1] procedure.Procedure: Finished coordinator procedure - removing self from list of  running procedures
> 2016-04-13 07:41:09,573 DEBUG [(10.0.0.75,16000,1460531913905)-proc-coordinator-pool1-thread-1] procedure.ZKProcedureCoordinatorRpcs: Attempting to clean out zk node for op:     snapshot_tb1_create
> 2016-04-13 07:41:09,573 INFO  [(10.0.0.75,16000,1460531913905)-proc-coordinator-pool1-thread-1] procedure.ZKProcedureUtil: Clearing all znodes for procedure
> {code}
> Encountered a case where snapshot verification failed:
> {code}
> 2016-04-13 07:41:12,308 ERROR [MASTER_TABLE_OPERATIONS-10.0.0.75:16000-0] executor.EventHandler: Caught throwable while processing event C_M_SNAPSHOT_TABLE
> java.lang.NoClassDefFoundError: Could not initialize class org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos
>   at org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos$SnapshotDataManifest.internalGetFieldAccessorTable(SnapshotProtos.java:3883)
>   at com.google.protobuf.GeneratedMessage.getDescriptorForType(GeneratedMessage.java:98)
>   at com.google.protobuf.AbstractMessage$Builder.findMissingFields(AbstractMessage.java:789)
>   at com.google.protobuf.AbstractMessage$Builder.findMissingFields(AbstractMessage.java:780)
>   at com.google.protobuf.AbstractMessage$Builder.newUninitializedMessageException(AbstractMessage.java:770)
>   at com.google.protobuf.AbstractMessage.newUninitializedMessageException(AbstractMessage.java:237)
>   at com.google.protobuf.AbstractParser.newUninitializedMessageException(AbstractParser.java:57)
>   at com.google.protobuf.AbstractParser.checkMessageInitialized(AbstractParser.java:71)
>   at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:217)
>   at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:223)
>   at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:49)
>   at org.apache.hadoop.hbase.protobuf.generated.SnapshotProtos$SnapshotDataManifest.parseFrom(SnapshotProtos.java:4094)
>   at org.apache.hadoop.hbase.snapshot.SnapshotManifest.readDataManifest(SnapshotManifest.java:433)
>   at org.apache.hadoop.hbase.snapshot.SnapshotManifest.load(SnapshotManifest.java:273)
>   at org.apache.hadoop.hbase.snapshot.SnapshotManifest.open(SnapshotManifest.java:119)
>   at org.apache.hadoop.hbase.master.snapshot.MasterSnapshotVerifier.verifySnapshot(MasterSnapshotVerifier.java:108)
>   at org.apache.hadoop.hbase.master.snapshot.TakeSnapshotHandler.process(TakeSnapshotHandler.java:200)
>   at org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:128)
>   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:745)
> {code}
> Note NoClassDefFoundError is not Exception. So it was not caught by the following clause in TakeSnapshotHandler :
> {code}
>     } catch (Exception e) {
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)