Skip to content

Commit

Permalink
removed precheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksim Myskov committed Mar 23, 2024
1 parent f16b1af commit 69bf71f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 123 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.apache.hadoop.hdds.protocol.proto.HddsProtos.ScmOps;
import org.apache.hadoop.hdds.scm.events.SCMEvents;
import org.apache.hadoop.hdds.scm.exceptions.SCMException;
import org.apache.hadoop.hdds.scm.safemode.Precheck;

import org.apache.hadoop.hdds.scm.security.RootCARotationManager;
import org.apache.hadoop.hdds.scm.server.ContainerReportQueue;
Expand Down Expand Up @@ -75,30 +74,6 @@ public final class ScmUtils {
private ScmUtils() {
}

/**
* Perform all prechecks for given scm operation.
*
* @param operation
* @param preChecks prechecks to be performed
*/
public static void preCheck(ScmOps operation, Precheck... preChecks)
throws SCMException {
for (Precheck preCheck : preChecks) {
preCheck.check(operation);
}
}

/**
* Create SCM directory file based on given path.
*/
public static File createSCMDir(String dirPath) {
File dirFile = new File(dirPath);
if (!dirFile.mkdirs() && !dirFile.exists()) {
throw new IllegalArgumentException("Unable to create path: " + dirFile);
}
return dirFile;
}

public static InetSocketAddress getScmBlockProtocolServerAddress(
OzoneConfiguration conf, String localScmServiceId, String nodeId) {
String bindHostKey = ConfUtils.addKeySuffixes(
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 69bf71f

Please sign in to comment.