Skip to content

HDDS-5554. Option to disable checksum verification.#2522

Merged
vivekratnavel merged 7 commits intoapache:masterfrom
aswinshakil:HDDS-5554
Aug 24, 2021
Merged

HDDS-5554. Option to disable checksum verification.#2522
vivekratnavel merged 7 commits intoapache:masterfrom
aswinshakil:HDDS-5554

Conversation

@aswinshakil
Copy link
Member

What changes were proposed in this pull request?

To provide an option to disable checksum verification on container files on startup.

What is the link to the Apache JIRA

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

How was this patch tested?

This patch was tested using testDisabledChecksum Unit test and GitHub CI tests.

https://github.com/aswinshakil/ozone/actions/runs/1114468266

Copy link
Contributor

@vivekratnavel vivekratnavel left a comment

Choose a reason for hiding this comment

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

Overall LGTM. Minor comments inline.

Comment on lines 270 to 275
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we move this to a common method to get kvData since it is being used by the "testIncorrectChecksum" method as well?

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add "verification" to the config key?

Suggested change
"hdds.container.checksum.enabled";
"hdds.container.checksum.verification.enabled";

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
public static final String HDDS_CONTAINER_CHECKSUM_ENABLED =
public static final String HDDS_CONTAINER_CHECKSUM_VERIFICATION_ENABLED =

Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above.

@aswinshakil
Copy link
Member Author

Thank you for the review @vivekratnavel . I will look into it and make the changes

Copy link
Contributor

@avijayanhwx avijayanhwx left a comment

Choose a reason for hiding this comment

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

Thanks @aswinshakil. Approach looks good to me. One comment inline.

Copy link
Contributor

@avijayanhwx avijayanhwx left a comment

Choose a reason for hiding this comment

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

Thanks for working on this @aswinshakil. LGTM +1

Copy link
Contributor

Choose a reason for hiding this comment

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

nit. can we remove this printStackTrace?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure. I can remove it.

Comment on lines 272 to 279
Copy link
Member

Choose a reason for hiding this comment

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

why you need a try-catch?
You can remove the try catch and add throws to the method signature public void testDisabledChecksum() throws Exception {

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you for the input. I will fixed it.

Copy link
Member

Choose a reason for hiding this comment

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

nit: avoid this empty line

Copy link
Member

@ayushtkn ayushtkn left a comment

Choose a reason for hiding this comment

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

LGTM

@vivekratnavel vivekratnavel merged commit 6ce3036 into apache:master Aug 24, 2021
@vivekratnavel
Copy link
Contributor

@aswinshakil Thanks for the contribution! @avijayanhwx @ayushtkn Thanks for the reviews!

@aswinshakil aswinshakil deleted the HDDS-5554 branch January 27, 2022 05:46
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.

4 participants