adoroszlai commented on code in PR #10614:
URL: https://github.com/apache/ozone/pull/10614#discussion_r3481503412


##########
hadoop-ozone/cli-debug/src/main/java/org/apache/hadoop/ozone/debug/ldb/DBScanner.java:
##########
@@ -829,6 +836,20 @@ List<Object> 
getFieldsFilteredObjectCollection(Collection<?> valueObject, Map<St
     }
   }
 
+  private Object parseStatefulServiceConfig(Object key, Object value, 
DBColumnFamilyDefinition dbColumnFamily) {
+    if (dbColumnFamily.getName().equals(STATEFUL_SERVICE_CONFIG.getName()) && 
key.equals(SERVICE_NAME) &&
+        value instanceof ByteString) {
+      try {
+        return 
HddsProtos.DeletedBlocksTransactionSummary.parseFrom((ByteString) value);
+      } catch (InvalidProtocolBufferException e) {
+        LOG.error("Failed to parse {} for key {}", 
STATEFUL_SERVICE_CONFIG.getName(), SERVICE_NAME, e);
+      } catch (IOException e) {
+        LOG.error("Failed to parse {} for key {}", 
STATEFUL_SERVICE_CONFIG.getName(), SERVICE_NAME, e);

Review Comment:
   Duplicate `catch` blocks, please merge them.



-- 
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]

Reply via email to