Julian Nodorp created HBASE-25922:
-------------------------------------
Summary: 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.4.2, 2.2.6
Environment: This has been tested in
* Google Dataproc running HBase 2.2.6
* Local HBase 2.4.2
Reporter: Julian Nodorp
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.3.4#803005)