Skip to content

Commit

Permalink
Fix minor issues found during review
Browse files Browse the repository at this point in the history
  • Loading branch information
Galsza committed Aug 27, 2024
1 parent e272751 commit 9391c16
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ public class ECReconstructionCoordinator implements Closeable {
private final OzoneClientConfig ozoneClientConfig;

public ECReconstructionCoordinator(
ConfigurationSource conf, CertificateClient certClient,
ConfigurationSource conf, CertificateClient certificateClient,
SecretKeySignerClient secretKeyClient, StateContext context,
ECReconstructionMetrics metrics,
String threadNamePrefix) throws IOException {
this.context = context;
this.containerOperationClient = new ECContainerOperationClient(conf,
certClient);
certificateClient);
this.byteBufferPool = new ElasticByteBufferPool();
ozoneClientConfig = conf.getObject(OzoneClientConfig.class);
this.ecReconstructReadExecutor = createThreadPoolExecutor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import org.apache.hadoop.hdds.scm.proxy.SCMClientConfig;
import org.apache.hadoop.hdds.scm.proxy.SCMContainerLocationFailoverProxyProvider;
import org.apache.hadoop.hdds.security.exception.SCMSecurityException;
import org.apache.hadoop.hdds.security.x509.certificate.client.CertificateClient;
import org.apache.hadoop.hdds.tracing.TracingUtil;
import org.apache.hadoop.hdds.utils.db.DBDefinition;
import org.apache.hadoop.hdds.utils.db.DBColumnFamilyDefinition;
Expand Down Expand Up @@ -372,13 +371,6 @@ public static List<String> getExistingSstFiles(File db) throws IOException {
return sstList;
}

private static List<X509Certificate> generateCAList(CertificateClient certClient) {
List<X509Certificate> caCertPemList = new ArrayList<>(certClient.getAllRootCaCerts());
caCertPemList.addAll(certClient.getAllCaCerts());
return caCertPemList;
}


/**
* Retry forever until CA list matches expected count.
* @param task - task to get CA list.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1610,7 +1610,6 @@ private void persistSCMCertificates() throws IOException {
// TODO: see if we can avoid doing this during every restart.
if (primaryScmNodeId != null && !primaryScmNodeId.equals(
scmStorageConfig.getScmId())) {
getScmSecurityClientWithMaxRetry(configuration, getCurrentUser());
List<String> pemEncodedCerts =
getScmSecurityClientWithMaxRetry(configuration, getCurrentUser()).listCACertificate();
// Write the primary SCM CA and Root CA during startup.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -728,9 +728,9 @@ private void testECReconstructionCoordinator(List<Integer> missingIndexes,
Pipeline p = containerToDeletePipeline.get(j);
org.apache.hadoop.ozone.container.common.helpers.BlockData[]
blockData = ecContainerOperationClient.listBlock(
conID, p.getFirstNode(),
(ECReplicationConfig) p.getReplicationConfig(),
cToken);
conID, p.getFirstNode(),
(ECReplicationConfig) p.getReplicationConfig(),
cToken);
blockDataArrList.add(blockData);
// Delete the first index container
XceiverClientSpi client = xceiverClientManager.acquireClient(
Expand Down

0 comments on commit 9391c16

Please sign in to comment.