Discussion:
Does Dropping the Source HBase Table Affect Its Snapshots and Cloned Tables from Snapshots?
William Shen
2018-11-29 01:23:24 UTC
Permalink
Hi,

I understand that changes made to the tables cloned using snapshot will not
affect the snapshot nor the source data table the snapshot is based on.
However, I could not find information on whether or not a snapshot or a
cloned table will be affected by the source table getting dropped. Can
someone chime in on the HBase behavior in this case?

Thank you!
Anil Gupta
2018-11-29 03:21:41 UTC
Permalink
Cloned table and snapshots should not have any impact if you drop source table.

Sent from my iPhone
Post by William Shen
Hi,
I understand that changes made to the tables cloned using snapshot will not
affect the snapshot nor the source data table the snapshot is based on.
However, I could not find information on whether or not a snapshot or a
cloned table will be affected by the source table getting dropped. Can
someone chime in on the HBase behavior in this case?
Thank you!
Zach York
2018-11-29 04:26:29 UTC
Permalink
Anil is right. Dropping/modifying source tables should not affect
snapshots/cloned tables. If a source table is dropped, HBase will retain
the HFiles referenced by the snapshot in the archive directory. Any HFile
referred to by a table or snapshot will not be deleted by the
HFileCleaner. Only when that snapshot/cloned table is deleted/dropped will
the HFiles be eligible for deletion.
Post by Anil Gupta
Cloned table and snapshots should not have any impact if you drop source table.
Sent from my iPhone
Post by William Shen
Hi,
I understand that changes made to the tables cloned using snapshot will
not
Post by William Shen
affect the snapshot nor the source data table the snapshot is based on.
However, I could not find information on whether or not a snapshot or a
cloned table will be affected by the source table getting dropped. Can
someone chime in on the HBase behavior in this case?
Thank you!
William Shen
2018-11-29 04:41:59 UTC
Permalink
Thank you Anil and Zach!
Post by Zach York
Anil is right. Dropping/modifying source tables should not affect
snapshots/cloned tables. If a source table is dropped, HBase will retain
the HFiles referenced by the snapshot in the archive directory. Any HFile
referred to by a table or snapshot will not be deleted by the
HFileCleaner. Only when that snapshot/cloned table is deleted/dropped will
the HFiles be eligible for deletion.
Post by Anil Gupta
Cloned table and snapshots should not have any impact if you drop source table.
Sent from my iPhone
Post by William Shen
Hi,
I understand that changes made to the tables cloned using snapshot will
not
Post by William Shen
affect the snapshot nor the source data table the snapshot is based on.
However, I could not find information on whether or not a snapshot or a
cloned table will be affected by the source table getting dropped. Can
someone chime in on the HBase behavior in this case?
Thank you!
Loading...