You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ujjawal Kumar (Jira)" <ji...@apache.org> on 2022/08/26 16:29:00 UTC

[jira] [Commented] (HBASE-25922) Disabled sanity checks ignored on snapshot restore

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

Ujjawal Kumar commented on HBASE-25922:
---------------------------------------

We also want this in branch-2.4, have created the cherrypick here https://github.com/apache/hbase/pull/4734

> Disabled sanity checks ignored on snapshot restore
> --------------------------------------------------
>
>                 Key: HBASE-25922
>                 URL: https://issues.apache.org/jira/browse/HBASE-25922
>             Project: HBase
>          Issue Type: Bug
>          Components: conf, snapshots
>    Affects Versions: 2.2.6, 2.4.2
>         Environment: This has been tested in
>  * Google Dataproc running HBase 2.2.6
>  * Local HBase 2.4.2
>            Reporter: Julian Nodorp
>            Assignee: Ujjawal Kumar
>            Priority: Minor
>             Fix For: 2.5.1, 3.0.0-alpha-4
>
>
> Disabling sanity checks on a table is ignored when restoring snapshots. If this is expected behavior at least the error message is misleading.
> h3. Steps *to Reproduce*
>  # Create a new table
> {{create 't', 'cf'}}
>  # Add a coprocessor to the newly created table
> {{alter 't', METHOD => 'table_att', 'coprocessor' => 'coprocessor.jar|com.example.MyCoprocessor|0'}}
>  # Create a snapshot
> {{snapshot 't', 'snapshot-t'}}
>  # Disable the table to prevent region servers from crashing in the next step
> {{disable 't'}}
>  # Delete the coprocessor JAR and restart HBase.
>  # Attempt to restore the snapshot leads to failing sanity check as expected
> {{restore_snapshot 'snapshot-t'}}
> {{ERROR: org.apache.hadoop.hbase.DoNotRetryIOException: coprocessor.jar Set hbase.table.sanity.checks to false at conf or table descriptor if you want to bypass sanity checks [...]}}
>  # Disable sanity checks (as described in the error message) and retry
> {{alter 't', CONFIGURATION => \{'hbase.table.sanity.checks' => 'false'}}}
> {{restore_snapshot 'snapshot-t'}}
> h3. Expected Behavior
> The snapshot is restored.
> h3. Actual Behavior
> The same error message as in step 6. is shown.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)