This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new a791b4ae27 HDDS-9693. Set secretKeyClient in
MiniOzoneClusterImpl#restartHddsDatanode to enable token verififcation after
restart. (#5618)
a791b4ae27 is described below
commit a791b4ae27b2d736f39c952a77f3424020e2e9c9
Author: SaketaChalamchala <[email protected]>
AuthorDate: Fri Nov 17 23:33:19 2023 -0800
HDDS-9693. Set secretKeyClient in MiniOzoneClusterImpl#restartHddsDatanode
to enable token verififcation after restart. (#5618)
---
.../apache/hadoop/ozone/MiniOzoneClusterImpl.java | 23 ++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneClusterImpl.java
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneClusterImpl.java
index d904d1372d..e42e9081aa 100644
---
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneClusterImpl.java
+++
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneClusterImpl.java
@@ -414,8 +414,9 @@ public class MiniOzoneClusterImpl implements
MiniOzoneCluster {
}
String[] args = new String[] {};
HddsDatanodeService service = new HddsDatanodeService(args);
+ service.setConfiguration(config);
hddsDatanodes.add(i, service);
- service.start(config);
+ startHddsDatanode(service);
if (waitForDatanode) {
// wait for the node to be identified as a healthy node again.
waitForClusterToBeReady();
@@ -477,20 +478,22 @@ public class MiniOzoneClusterImpl implements
MiniOzoneCluster {
scm.start();
}
+ public void startHddsDatanode(HddsDatanodeService datanode) {
+ try {
+ datanode.setCertificateClient(getCAClient());
+ } catch (IOException e) {
+ LOG.error("Exception while setting certificate client to DataNode.", e);
+ }
+ datanode.setSecretKeyClient(secretKeyClient);
+ datanode.start();
+ }
+
/**
* Start DataNodes.
*/
@Override
public void startHddsDatanodes() {
- hddsDatanodes.forEach((datanode) -> {
- try {
- datanode.setCertificateClient(getCAClient());
- } catch (IOException e) {
- LOG.error("Exception while setting certificate client to DataNode.",
e);
- }
- datanode.setSecretKeyClient(secretKeyClient);
- datanode.start();
- });
+ hddsDatanodes.forEach(this::startHddsDatanode);
}
@Override
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]