dombizita commented on PR #8902:
URL: https://github.com/apache/ozone/pull/8902#issuecomment-3248677956

   > > It shows that the `GenericRatisLogParser.java` was renamed to 
`package-info.java`, which can be misleading as the goal is to delete 
`GenericRatisLogParser` and add a new `package-info` file. The other 
renames/deletes make sense to me too. Could you update the patch to reflect 
this? It'd make backports and future readability easier.
   > 
   > I tried splitting this into two separate commits (one for the delete, one 
for the add), but GitHub UI still interprets it as a rename. If there is an 
alternate way to do it, please let me know @dombizita.
   
   It's interesting, if I check the two separate commits, it shows it correctly:
   
   ```
   zitadombi@zitadombi-MBP16 ozone % git log -2 --stat
   commit b5fa10f2ff17c6d302819bf67b686480981eecc4 (HEAD -> HDDS-13518-ratis)
   Author: sarvekshayr <[email protected]>
   Date:   Wed Sep 3 08:24:54 2025 +0530
   
       Added ratis package-info
   
    
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/ratis/package-info.java
 | 21 +++++++++++++++++++++
    1 file changed, 21 insertions(+)
   
   commit 1e5fa4dceb5e201e676cd24fdb4ff8543ac8d22d
   Author: sarvekshayr <[email protected]>
   Date:   Wed Sep 3 08:23:52 2025 +0530
   
       HDDS-13518. Move ozone debug ratislogparser to ozone debug ratis parse
   
    hadoop-hdds/docs/content/tools/debug/RatisLogParser.md                      
                                                                  | 24 
+++++++++++-------------
    hadoop-hdds/docs/content/tools/debug/_index.md                              
                                                                  |  4 ++--
    
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/dn/ratis/TestDnRatisLogParser.java
                                        |  8 ++++----
    
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/parser/TestOzoneHARatisLogParser.java
                                     |  7 +++----
    
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/{segmentparser/RatisLogParser.java
 => ratis/RatisDebug.java}                   | 22 +++++++++-------------
    
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/{segmentparser 
=> ratis/parse}/BaseLogParser.java                              |  6 +++---
    
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/{segmentparser/DatanodeRatisLogParser.java
 => ratis/parse/RatisLogParser.java} | 52 
++++++++++++++++++++++++++++++++++++----------------
    
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/{segmentparser 
=> ratis/parse}/package-info.java                               |  2 +-
    
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/segmentparser/GenericRatisLogParser.java
                                       | 42 
------------------------------------------
    
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/segmentparser/OMRatisLogParser.java
                                            | 43 
-------------------------------------------
    
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/segmentparser/SCMRatisLogParser.java
                                           | 42 
------------------------------------------
    11 files changed, 69 insertions(+), 183 deletions(-)
   ```
   
   But with a `git diff` of the two commits it shows it like in the Github UI:
   ```
   zitadombi@zitadombi-MBP16 ozone % git diff --stat HEAD~2 HEAD
    hadoop-hdds/docs/content/tools/debug/RatisLogParser.md                      
                                                                  | 24 
+++++++++++-------------
    hadoop-hdds/docs/content/tools/debug/_index.md                              
                                                                  |  4 ++--
    
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/dn/ratis/TestDnRatisLogParser.java
                                        |  8 ++++----
    
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/parser/TestOzoneHARatisLogParser.java
                                     |  7 +++----
    
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/{segmentparser/RatisLogParser.java
 => ratis/RatisDebug.java}                   | 22 +++++++++-------------
    
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/{segmentparser/GenericRatisLogParser.java
 => ratis/package-info.java}          | 25 ++-----------------------
    
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/{segmentparser 
=> ratis/parse}/BaseLogParser.java                              |  6 +++---
    
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/{segmentparser/DatanodeRatisLogParser.java
 => ratis/parse/RatisLogParser.java} | 52 
++++++++++++++++++++++++++++++++++++----------------
    
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/{segmentparser 
=> ratis/parse}/package-info.java                               |  2 +-
    
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/segmentparser/OMRatisLogParser.java
                                            | 43 
-------------------------------------------
    
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/segmentparser/SCMRatisLogParser.java
                                           | 42 
------------------------------------------
    11 files changed, 71 insertions(+), 164 deletions(-)
   ```
   
   I couldn't find a solution, it looks like git is "smart" enough to do this, 
as the `GenericRatisLogParser` was a short class and the header matches with 
`package-info`. So it's fine by me to merge it like this, I don't have a better 
idea either, but thanks for checking it!! 


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