|
19 | 19 |
|
20 | 20 | import static org.apache.hadoop.hdds.utils.HddsServerUtil.getScmSecurityClientWithMaxRetry; |
21 | 21 | 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; |
26 | 22 | import static org.apache.hadoop.security.UserGroupInformation.getCurrentUser; |
27 | 23 |
|
28 | 24 | import java.io.File; |
|
31 | 27 | import java.nio.file.Paths; |
32 | 28 | import java.util.List; |
33 | 29 | import java.util.concurrent.ExecutionException; |
34 | | -import java.util.concurrent.TimeUnit; |
35 | 30 | import java.util.concurrent.atomic.AtomicBoolean; |
36 | 31 | import javax.inject.Inject; |
37 | 32 | import javax.validation.constraints.NotNull; |
@@ -83,14 +78,6 @@ public StorageContainerServiceProviderImpl( |
83 | 78 | ReconStorageConfig reconStorage, |
84 | 79 | ReconContext reconContext) { |
85 | 80 |
|
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 | | - |
94 | 81 | scmSnapshotDBParentDir = ReconUtils.getReconScmDbDir(configuration); |
95 | 82 |
|
96 | 83 | this.reconUtils = reconUtils; |
|
0 commit comments