Xushaohong commented on code in PR #3615:
URL: https://github.com/apache/ozone/pull/3615#discussion_r934420550
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMClientProtocolServer.java:
##########
@@ -783,6 +783,27 @@ public ScmInfo getScmInfo() throws IOException {
}
}
+ @Override
+ public int resetDeletedBlockRetryCount(List<Long> txIDs) throws IOException {
+ Map<String, String> auditMap = Maps.newHashMap();
+ getScm().checkAdminAccess(getRemoteUser());
+ try {
+ int count = scm.getScmBlockManager().getDeletedBlockLog().
+ resetCount(txIDs);
+ scm.getScmHAManager().asSCMHADBTransactionBuffer().flush();
+
+ auditMap.put("txIDs", txIDs.stream().map(String::valueOf).
+ collect(Collectors.joining(",")));
Review Comment:
> What about simply `txIDs.toString()`?
Accepted.
--
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]