ndimiduk commented on a change in pull request #754: HBASE-22978 : Online slow 
response log
URL: https://github.com/apache/hbase/pull/754#discussion_r377230115
 
 

 ##########
 File path: 
hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java
 ##########
 @@ -3368,4 +3429,56 @@ public static RegionStatesCount 
toTableRegionStatesCount(
       .build();
   }
 
+  /**
+   * Convert Protobuf class
+   * {@link 
org.apache.hadoop.hbase.shaded.protobuf.generated.TooSlowLog.SlowLogPayload}
+   * To client SlowLog Payload class {@link SlowLogPayload}
+   *
+   * @param slowLogPayload SlowLog Payload protobuf instance
+   * @return SlowLog Payload for client usecase
+   */
+  private static SlowLogPayload getSlowLogPayload(
+      final TooSlowLog.SlowLogPayload slowLogPayload) {
+    SlowLogPayload clientSlowLogPayload = new 
SlowLogPayload.SlowLogPayloadBuilder()
+      .setStartTime(slowLogPayload.getStartTime())
 
 Review comment:
   nit: maybe order these alphabetically so it's easier to spot a missing field.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to