Skip to content

Conversation

@hemantk-12
Copy link
Contributor

What changes were proposed in this pull request?

Currently, SnapshotDeletingService calls KeyManagerImpl#isSstFilteringSvcEnabled() for each snapshot while iterating over snapshotInfoTable. It reads the config every time which is a redundant call. Since the config can not be changed after the service's startup dynamically, we can change the code to read the config once and reuse it.

What is the link to the Apache JIRA

HDDS-11084

How was this patch tested?

Unit tests.

Copy link
Contributor

@sadanand48 sadanand48 left a comment

Choose a reason for hiding this comment

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

Thanks @hemantk-12 for the patch, LGTM.

Copy link
Contributor

@swamirishi swamirishi 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 the patch @hemantk-12 LGTM

@adoroszlai adoroszlai merged commit 950a4b5 into apache:master Jun 30, 2024
@adoroszlai
Copy link
Contributor

Thanks @hemantk-12 for the patch, @sadanand48, @swamirishi for the review.

xichen01 pushed a commit to xichen01/ozone that referenced this pull request Oct 1, 2024
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