Skip to content

HBASE-30267 Backport HBASE-30266 Do not drop visibility delete marker…#8454

Merged
liuxiaocs7 merged 3 commits into
apache:branch-2.6from
liuxiaocs7:HBASE-30267-branch-2.6
Jul 6, 2026
Merged

HBASE-30267 Backport HBASE-30266 Do not drop visibility delete marker…#8454
liuxiaocs7 merged 3 commits into
apache:branch-2.6from
liuxiaocs7:HBASE-30267-branch-2.6

Conversation

@liuxiaocs7

Copy link
Copy Markdown
Member

…s as redundant during minor compaction to branch-2 (#8448)

Signed-off-by: Junegunn Choi junegunn@apache.org

(cherry picked from commit 3d93aa2)

@liuxiaocs7 liuxiaocs7 added the backport This PR is a back port of some issue or issues already committed to master label Jul 5, 2026
@liuxiaocs7 liuxiaocs7 requested a review from Copilot July 5, 2026 15:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backports the fix for HBASE-30266/HBASE-30267 to ensure minor compaction on cell-visibility tables never drops visibility delete markers as “redundant,” preventing potential resurrection of data that should remain deleted.

Changes:

  • Override VisibilityScanDeleteTracker#isRedundantDelete to always return false for visibility tables.
  • Add focused unit tests asserting no delete marker is considered redundant under visibility tracking.
  • Add an end-to-end regression test covering minor-compaction behavior with differently-labeled DeleteColumn markers.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
hbase-server/src/main/java/org/apache/hadoop/hbase/security/visibility/VisibilityScanDeleteTracker.java Ensures delete markers are never treated as redundant under visibility semantics to avoid incorrect dropping during minor compaction.
hbase-server/src/test/java/org/apache/hadoop/hbase/security/visibility/TestVisibilityScanDeleteTracker.java Adds unit coverage for the conservative “never redundant” contract across label variants.
hbase-server/src/test/java/org/apache/hadoop/hbase/security/visibility/TestVisibilityLabelsWithDeletes.java Adds an end-to-end regression test verifying minor compaction does not drop differently-labeled delete markers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

liuxiaocs7 and others added 3 commits July 6, 2026 03:51
…s as redundant during minor compaction to branch-2 (apache#8448)

Signed-off-by: Junegunn Choi <junegunn@apache.org>

(cherry picked from commit 3d93aa2)
@liuxiaocs7 liuxiaocs7 force-pushed the HBASE-30267-branch-2.6 branch from b7c9dba to 507ff05 Compare July 5, 2026 19:51
@liuxiaocs7 liuxiaocs7 merged commit 4b4f854 into apache:branch-2.6 Jul 6, 2026
31 of 35 checks passed
liuxiaocs7 added a commit that referenced this pull request Jul 6, 2026
#8454)

Signed-off-by: Junegunn Choi <junegunn@apache.org>

(cherry picked from commit 3d93aa2)
(cherry picked from commit 9ffbae5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a back port of some issue or issues already committed to master

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants