Copilot commented on code in PR #7047:
URL: https://github.com/apache/hbase/pull/7047#discussion_r2121741058


##########
hbase-server/src/main/jamon/org/apache/hadoop/hbase/tmpl/regionserver/BlockCacheViewTmpl.jamon:
##########
@@ -66,5 +66,15 @@ cbsbf = null;
 <%args>
     CachedBlocksByFile cbsbf;
 </%args>
-[<%for Map.Entry<String, NavigableSet<CachedBlock>> e: 
cbsbf.getCachedBlockStatsByFile().entrySet() %><% 
BlockCacheUtil.toJSON(e.getKey(), e.getValue()) %></%for>]
+<%java>
+    boolean firstEntry = true;

Review Comment:
   [nitpick] Consider abstracting the comma insertion logic into a helper 
function or method to simplify the template code and improve overall 
maintainability.



-- 
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: issues-unsubscr...@hbase.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to