Skip to content

HBASE-30146 Upgrade hbase-server to use junit5 Part18#8247

Open
liuxiaocs7 wants to merge 1 commit into
apache:branch-2.5from
liuxiaocs7:HBASE-30146-branch-2.5
Open

HBASE-30146 Upgrade hbase-server to use junit5 Part18#8247
liuxiaocs7 wants to merge 1 commit into
apache:branch-2.5from
liuxiaocs7:HBASE-30146-branch-2.5

Conversation

@liuxiaocs7
Copy link
Copy Markdown
Member

@liuxiaocs7 liuxiaocs7 requested a review from Copilot May 17, 2026 09:14
@liuxiaocs7 liuxiaocs7 added the backport This PR is a back port of some issue or issues already committed to master label May 17, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Continues the migration of hbase-server tests from JUnit4 to JUnit5 (Part 18 of HBASE-30146, branch-2.5). Replaces JUnit4 idioms (@Category/@RunWith(Parameterized)/@ClassRule HBaseClassTestRule/@Rule TestName/Assert.*) with their JUnit5 equivalents (@Tag/@HBaseParameterizedTestTemplate/TestInfo/Assertions.*).

Changes:

  • Switch ~30 region-server tests from JUnit4 annotations and runners to JUnit5 (@Tag, @BeforeEach/@AfterEach, TestInfo, assertThrows).
  • Convert parameterized tests to use HBaseParameterizedTestTemplate with Stream<Arguments> parameters().
  • Drop HBaseClassTestRule CLASS_RULE fields and migrate assertion imports/message-argument ordering to JUnit5 style.

Reviewed changes

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

Show a summary per file
File Description
TestWideScanner.java Imports/annotations migrated to JUnit5.
TestWALMonotonicallyIncreasingSeqId.java Parameterized → template; added wals close in tearDown.
TestWalAndCompactingMemStoreFlush.java Assertion arg order/imports migrated.
TestTimestampFilterSeekHint.java Migrated to JUnit5.
TestTagsReverseScan.java Assertion import migration.
TestTags.java Assertion import migration.
TestSyncTimeRangeTracker.java JUnit5 migration; assertTrue→assertEquals.
TestSwitchToStreamRead.java JUnit5 migration including @disabled.
TestStripeStoreFileManager.java JUnit5 migration.
TestStripeStoreEngine.java JUnit5 migration.
TestStoreScannerClosure.java JUnit5 migration; message-arg reordering.
TestStoreScanner.java JUnit5 migration; many assertEquals(true/false,…)→assertTrue/False.
TestStoreFileWriter.java Parameterized → template.
TestStoreFileScannerWithTagCompression.java JUnit5 migration (uses fully-qualified @tag).
TestStoreFileRefresherChore.java JUnit5 migration; TestInfo for method name.
TestStoreFileInfo.java Assertion migration.
TestSplitWithBlockingFiles.java JUnit5 migration; removed unused LOG.
TestSplitWalDataLoss.java JUnit5 migration.
TestSplitTransactionOnCluster.java JUnit5 migration; TestInfo for method name.
TestSplitLogWorker.java JUnit5 migration.
TestSimpleTimeRangeTracker.java JUnit5 migration; classification changed Small→Medium.
TestShutdownWhileWALBroken.java Parameterized → template.
TestSettingTimeoutOnBlockingPoint.java JUnit5 migration.
TestServerNonceManager.java Assertion migration.
TestSeekOptimizations.java Parameterized → template.
TestSecureBulkLoadManager.java Parameterized → template; assertThrows.
TestSecureBulkloadListener.java JUnit5 migration; assertThrows.
TestSCVFWithMiniCluster.java JUnit5 migration (comment placement awkward).
TestScanWithBloomError.java Parameterized → template.
TestScannerWithCorruptHFile.java JUnit5 migration; assertThrows.
TestScannerWithBulkload.java JUnit5 migration; TestInfo for method name.
TestScannerTimeoutHandling.java JUnit5 migration.
TestScannerRPCScanMetrics.java JUnit5 migration.
TestScannerRetriableFailure.java JUnit5 migration.
TestScannerHeartbeatMessages.java JUnit5 migration.
TestScannerBlockSizeLimits.java JUnit5 migration.
TestScanner.java JUnit5 migration; TestInfo for method name.

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

Comment on lines +34 to +35
@Tag(RegionServerTests.TAG)
@Tag(MediumTests.TAG)
Comment on lines +50 to +51
@org.junit.jupiter.api.Tag(RegionServerTests.TAG)
@org.junit.jupiter.api.Tag(SmallTests.TAG)
Comment on lines 52 to 58
/*
* This test verifies that the scenarios illustrated by HBASE-10850 work w.r.t. essential column
* family optimization
*/
@Tag(RegionServerTests.TAG)
@Tag(MediumTests.TAG)
public class TestSCVFWithMiniCluster {
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