Skip to content

HBASE-30069:Instead of generic DoNotRetryIOException send specific Exception#8049

Closed
sharmaar12 wants to merge 1 commit intoapache:HBASE-29081_rebasedfrom
sharmaar12:exception
Closed

HBASE-30069:Instead of generic DoNotRetryIOException send specific Exception#8049
sharmaar12 wants to merge 1 commit intoapache:HBASE-29081_rebasedfrom
sharmaar12:exception

Conversation

@sharmaar12
Copy link
Copy Markdown

No description provided.

}

@Test(expected = DoNotRetryIOException.class)
@Test(expected = WriteAttemptedOnReadOnlyClusterException.class)
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.

Hi @sharmaar12
Since we’ve migrated to JUnit 5, we should move away from the outdated expected parameter in the @test annotation. Please use assertThrows instead. Additionally, the current tests don't verify the exception message—using assertThrows will allow you to capture the exception and assert against the message. While the old pattern might work for legacy branches, we need to follow the new standard for any merges into master.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@vaijosh Noted. I will create another PR for HBASE-29081 branch and do the changes there.

@anmolnar
Copy link
Copy Markdown
Contributor

anmolnar commented Apr 9, 2026

@sharmaar12 Please use the original HBASE-29081 branch for pull requests going forward.

@sharmaar12 sharmaar12 closed this Apr 9, 2026
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