Skip to content

HBASE-30217 Remove dead code getRegionId and isTemporaryDirectoryName…#8331

Open
liuxiaocs7 wants to merge 2 commits into
apache:masterfrom
liuxiaocs7:HBASE-30217
Open

HBASE-30217 Remove dead code getRegionId and isTemporaryDirectoryName…#8331
liuxiaocs7 wants to merge 2 commits into
apache:masterfrom
liuxiaocs7:HBASE-30217

Conversation

@liuxiaocs7

Copy link
Copy Markdown
Member

… in HRegionFileSystem

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Comment on lines 81 to 95
/**
* Temporary subdirectory of the region directory used for merges.
* @deprecated Since 3.0.0, will be removed in 4.0.0. Merges now write directly to the merged
* region directory under the table dir since HBASE-26187.
*/
@Deprecated
public static final String REGION_MERGES_DIR = ".merges";

/** Temporary subdirectory of the region directory used for splits. */
/**
* Temporary subdirectory of the region directory used for splits.
* @deprecated Since 3.0.0, will be removed in 4.0.0. Splits now write directly to the daughter
* region directory under the table dir since HBASE-26187.
*/
@Deprecated
public static final String REGION_SPLITS_DIR = ".splits";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we really need to deprecate those rather than simply remove it? HRegionFileSystem is marked as InterfaceAudience.Private, so isn't intended for public use.

@liuxiaocs7 liuxiaocs7 Jun 11, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks for the comments, agree with your points, I've removed the two constants directly. The only usage was in TestHdfsSnapshotHRegion, which I've updated to use string literals with a comment explaining they represent legacy directories from before HBASE-26187.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants