Skip to content

Conversation

@myskov
Copy link
Contributor

@myskov myskov commented Jul 6, 2024

What changes were proposed in this pull request?

Removed dead code:

  • org.apache.hadoop.hdds.scm.ScmUtils#preCheck
  • org.apache.hadoop.hdds.scm.ScmUtils#createSCMDir
  • org.apache.hadoop.hdds.scm.safemode.Precheck
  • org.apache.hadoop.hdds.scm.safemode.SafeModePrecheck

What is the link to the Apache JIRA

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

How was this patch tested?

existing test suite

@myskov myskov added the code-cleanup Changes that aim to make code better, without changing functionality. label Jul 6, 2024
Comment on lines -49 to -50
if (inSafeMode.get() && SafeModeRestrictedOps
.isRestrictedInSafeMode(op)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

SafeModeRestrictedOps is no longer used either, we can remove hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/safemode/SafeModeRestrictedOps.java

@adoroszlai adoroszlai changed the title HDDS-11113. Code cleanup: remove ScmUtils#preCheck and related code HDDS-11113. Remove unused ScmUtils#preCheck and related code Jul 8, 2024
@adoroszlai adoroszlai merged commit 197553e into apache:master Jul 9, 2024
@adoroszlai
Copy link
Contributor

Thanks @myskov for the patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-cleanup Changes that aim to make code better, without changing functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants