Skip to content

Commit b8c93cc

Browse files
committed
HDDS-12376. (addendum: fix findbugs) Remove scmRatisEnabled from ScmInfo. (apache#7931)
1 parent 4005a10 commit b8c93cc

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/spi/impl/StorageContainerServiceProviderImpl.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919

2020
import static org.apache.hadoop.hdds.utils.HddsServerUtil.getScmSecurityClientWithMaxRetry;
2121
import static org.apache.hadoop.ozone.recon.ReconConstants.RECON_SCM_SNAPSHOT_DB;
22-
import static org.apache.hadoop.ozone.recon.ReconServerConfigKeys.OZONE_RECON_SCM_CONNECTION_REQUEST_TIMEOUT;
23-
import static org.apache.hadoop.ozone.recon.ReconServerConfigKeys.OZONE_RECON_SCM_CONNECTION_REQUEST_TIMEOUT_DEFAULT;
24-
import static org.apache.hadoop.ozone.recon.ReconServerConfigKeys.OZONE_RECON_SCM_CONNECTION_TIMEOUT;
25-
import static org.apache.hadoop.ozone.recon.ReconServerConfigKeys.OZONE_RECON_SCM_CONNECTION_TIMEOUT_DEFAULT;
2622
import static org.apache.hadoop.security.UserGroupInformation.getCurrentUser;
2723

2824
import java.io.File;
@@ -31,7 +27,6 @@
3127
import java.nio.file.Paths;
3228
import java.util.List;
3329
import java.util.concurrent.ExecutionException;
34-
import java.util.concurrent.TimeUnit;
3530
import java.util.concurrent.atomic.AtomicBoolean;
3631
import javax.inject.Inject;
3732
import javax.validation.constraints.NotNull;
@@ -83,14 +78,6 @@ public StorageContainerServiceProviderImpl(
8378
ReconStorageConfig reconStorage,
8479
ReconContext reconContext) {
8580

86-
int connectionTimeout = (int) configuration.getTimeDuration(
87-
OZONE_RECON_SCM_CONNECTION_TIMEOUT,
88-
OZONE_RECON_SCM_CONNECTION_TIMEOUT_DEFAULT, TimeUnit.MILLISECONDS);
89-
int connectionRequestTimeout = (int) configuration.getTimeDuration(
90-
OZONE_RECON_SCM_CONNECTION_REQUEST_TIMEOUT,
91-
OZONE_RECON_SCM_CONNECTION_REQUEST_TIMEOUT_DEFAULT,
92-
TimeUnit.MILLISECONDS);
93-
9481
scmSnapshotDBParentDir = ReconUtils.getReconScmDbDir(configuration);
9582

9683
this.reconUtils = reconUtils;

0 commit comments

Comments
 (0)