SaketaChalamchala commented on code in PR #5618:
URL: https://github.com/apache/ozone/pull/5618#discussion_r1397993651
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneClusterImpl.java:
##########
@@ -477,19 +478,23 @@ public void startScm() throws IOException {
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();
+ startHddsDatanode(datanode);
});
Review Comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]