Skip to content

HDDS-5361. Suppress logging of ServerNotLeaderException.#2351

Merged
mukul1987 merged 3 commits intoapache:masterfrom
bharatviswa504:HDDS-5361
Jun 22, 2021
Merged

HDDS-5361. Suppress logging of ServerNotLeaderException.#2351
mukul1987 merged 3 commits intoapache:masterfrom
bharatviswa504:HDDS-5361

Conversation

@bharatviswa504
Copy link
Contributor

What changes were proposed in this pull request?

Use RpcServer addSuppressedLoggingExceptions to supress ServerNotLeaderException to reduce NotLeaderException on folower node logs.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-5361

How was this patch tested?

Manually verified it, now during startup made scm2 as primary SCM, I don't see any NotLeaderException logs logged on SCM1(As client contacts first SCM1 according to config)

Copy link
Contributor

@mukul1987 mukul1987 left a comment

Choose a reason for hiding this comment

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

LGTM

@mukul1987 mukul1987 merged commit bb4a5b2 into apache:master Jun 22, 2021
bharatviswa504 added a commit to bharatviswa504/hadoop-ozone that referenced this pull request Jul 25, 2021
(cherry picked from commit bb4a5b2)
Change-Id: I65c6c151d3f862183c2fa2db5df5bad16810fd57
(cherry picked from commit 16bf7b30aea83f8df66de344957f616499dd8b6f)
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.

2 participants