Skip to content

Conversation

@swamirishi
Copy link
Contributor

What changes were proposed in this pull request?

Exception stacktrace put in debug level instead of warn or error level.

What is the link to the Apache JIRA

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

How was this patch tested?

Logging Changes, no change in logic.

@JyotinderSingh JyotinderSingh changed the title HDDS-6899: Fix Logging HDDS-6899. [EC] Remove warnings and errors from console while reconstructing data. Jun 16, 2022
@JyotinderSingh
Copy link
Contributor

Hi @swamirishi, the title of the pull request should be the same as that of the Jira ticket. I have modified it to fit the requirement.

@JyotinderSingh JyotinderSingh changed the title HDDS-6899. [EC] Remove warnings and errors from console while reconstructing data. HDDS-6899. [EC] Remove warnings and errors from console during online reconstruction of data. Jun 16, 2022
@umamaheswararao
Copy link
Contributor

I have just re triggered the CI. Did you get chance to check how these messages appearing in this he console with these changes?

Copy link
Contributor

Choose a reason for hiding this comment

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

How about "if isDebugEnabled, we can log debug one, otherwise error?"
in that case, debug logging also should have some details.

@umamaheswararao
Copy link
Contributor

@swamirishi you may want to run the checkstyle locally first to know if any checkstyle warnings.
cd hadoop-ozone/dev-support/checks
./checkstyle.sh

String message = "Failed to execute command {}.";
if (LOG.isDebugEnabled()) {
LOG.debug(message, processForDebug(request), e);
} else {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: You need to give space before "Exception Class".

" to an error in ECBlockReader.";
if(LOG.isDebugEnabled()) {
LOG.debug(message, e);
} else {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Give space after {}

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, I see, please ignore this one. comma is out side of string. Thanks

@umamaheswararao
Copy link
Contributor

Please run the local checkstyle before posting the PR.

Copy link
Contributor

@umamaheswararao umamaheswararao left a comment

Choose a reason for hiding this comment

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

LGTM

@umamaheswararao umamaheswararao merged commit bf71b54 into apache:master Jun 21, 2022
@umamaheswararao
Copy link
Contributor

Congratulations @swamirishi for your first commit :-)
Thanks for your contribution.

errose28 added a commit to errose28/ozone that referenced this pull request Jun 23, 2022
* master: (34 commits)
  HDDS-6868 Add S3Auth information to thread local (apache#3527)
  HDDS-6877. Keep replication port unchanged when restarting datanode in MiniOzoneCluster (apache#3510)
  HDDS-6907. OFS should create buckets with FILE_SYSTEM_OPTIMIZED layout. (apache#3528)
  HDDS-6875. Migrate parameterized tests in hdds-common to JUnit5 (apache#3513)
  HDDS-6924. OBJECT_STORE isn't flat namespaced (apache#3533)
  HDDS-6899. [EC] Remove warnings and errors from console during online reconstruction of data. (apache#3522)
  HDDS-6695. Enable SCM Ratis by default for new clusters only (apache#3499)
  HDDS-4123. Integrate OM Open Key Cleanup Service Into Existing Code (apache#3319)
  HDDS-6882. Correct exit code for invalid arguments passed to command-line tools. (apache#3517)
  HDDS-6890. EC: Fix potential wrong replica read with over-replicated container. (apache#3523)
  HDDS-6902. Duplicate mockito-core entries in pom.xml (apache#3525)
  HDDS-6752. Migrate tests with rules in hdds-server-scm to JUnit5 (apache#3442)
  HDDS-6806. EC: Implement the EC Reconstruction coordinator. (apache#3504)
  HDDS-6829. Limit the no of inflight replication tasks in SCM. (apache#3482)
  HDDS-6898. [SCM HA finalization] Modify acceptance test configuration to speed up test finalization (apache#3521)
  HDDS-6577. Configurations to reserve HDDS volume space. (apache#3484)
  HDDS-6870 Clean up isTenantAdmin to use UGI (apache#3503)
  HDDS-6872. TestAuthorizationV4QueryParser should pass offline (apache#3506)
  HDDS-6840. Add MetaData volume information to the SCM and OM - UI (apache#3488)
  HDDS-6697. EC: ReplicationManager - create class to detect EC container health issues (apache#3512)
  ...
duongkame pushed a commit to duongkame/ozone that referenced this pull request Aug 16, 2022
…uring online reconstruction of data. (apache#3522)

(cherry picked from commit bf71b54)
Change-Id: Id5fe0ee371985d166a1a1147dab01aad659023a3
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