You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yx9o (via GitHub)" <gi...@apache.org> on 2025/01/23 13:54:56 UTC

[PR] [ISSUE #9156] Refactor AclUtils#getAclRPCHook [rocketmq]

yx9o opened a new pull request, #9157:
URL: https://github.com/apache/rocketmq/pull/9157

   
   Fixes #9156. 
   


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [PR] [ISSUE #9156] Refactor AclUtils#getAclRPCHook [rocketmq]

Posted by "yx9o (via GitHub)" <gi...@apache.org>.
yx9o commented on code in PR #9157:
URL: https://github.com/apache/rocketmq/pull/9157#discussion_r1928010862


##########
acl/src/test/java/org/apache/rocketmq/acl/common/AclUtilsTest.java:
##########
@@ -47,7 +54,7 @@ public void testGetAddresses() {
         addressList.add("1.1.1.2");
         addressList.add("1.1.1.3");
         addressList.add("1.1.1.4");
-        Assert.assertEquals(newAddressList, addressList);
+        assertEquals(newAddressList, addressList);

Review Comment:
   Okay, I will return to 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: commits-unsubscribe@rocketmq.apache.org

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


Re: [PR] [ISSUE #9156] Refactor AclUtils#getAclRPCHook [rocketmq]

Posted by "qianye1001 (via GitHub)" <gi...@apache.org>.
qianye1001 commented on PR #9157:
URL: https://github.com/apache/rocketmq/pull/9157#issuecomment-2646791581

   LGTM


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [PR] [ISSUE #9156] Refactor AclUtils#getAclRPCHook [rocketmq]

Posted by "qianye1001 (via GitHub)" <gi...@apache.org>.
qianye1001 commented on code in PR #9157:
URL: https://github.com/apache/rocketmq/pull/9157#discussion_r1928008890


##########
acl/src/test/java/org/apache/rocketmq/acl/common/AclUtilsTest.java:
##########
@@ -47,7 +54,7 @@ public void testGetAddresses() {
         addressList.add("1.1.1.2");
         addressList.add("1.1.1.3");
         addressList.add("1.1.1.4");
-        Assert.assertEquals(newAddressList, addressList);
+        assertEquals(newAddressList, addressList);

Review Comment:
   They are both one line of code. Changing it will lose the git blame.



-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [PR] [ISSUE #9156] Use fastjson2 in AclUtils#getAclRPCHook [rocketmq]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins merged PR #9157:
URL: https://github.com/apache/rocketmq/pull/9157


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [PR] [ISSUE #9156] Refactor AclUtils#getAclRPCHook [rocketmq]

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #9157:
URL: https://github.com/apache/rocketmq/pull/9157#issuecomment-2610223581

   ## [Codecov](https://app.codecov.io/gh/apache/rocketmq/pull/9157?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   All modified and coverable lines are covered by tests :white_check_mark:
   > Project coverage is 48.05%. Comparing base [(`de4e48d`)](https://app.codecov.io/gh/apache/rocketmq/commit/de4e48d28acf549c0d83fed8c0b39e13e9fa82fa?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`2ed4f77`)](https://app.codecov.io/gh/apache/rocketmq/commit/2ed4f777e5838abebfc4414475273e6ecefb8f16?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   
   <details><summary>Additional details and impacted files</summary>
   
   
   ```diff
   @@              Coverage Diff              @@
   ##             develop    #9157      +/-   ##
   =============================================
   - Coverage      48.11%   48.05%   -0.06%     
   + Complexity     12091    12076      -15     
   =============================================
     Files           1321     1321              
     Lines          93024    93024              
     Branches       11926    11926              
   =============================================
   - Hits           44755    44701      -54     
   - Misses         42754    42794      +40     
   - Partials        5515     5529      +14     
   ```
   
   </details>
   
   [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/rocketmq/pull/9157?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   


-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [PR] [ISSUE #9156] Refactor AclUtils#getAclRPCHook [rocketmq]

Posted by "yx9o (via GitHub)" <gi...@apache.org>.
yx9o commented on code in PR #9157:
URL: https://github.com/apache/rocketmq/pull/9157#discussion_r1928002775


##########
acl/src/test/java/org/apache/rocketmq/acl/common/AclUtilsTest.java:
##########
@@ -47,7 +54,7 @@ public void testGetAddresses() {
         addressList.add("1.1.1.2");
         addressList.add("1.1.1.3");
         addressList.add("1.1.1.4");
-        Assert.assertEquals(newAddressList, addressList);
+        assertEquals(newAddressList, addressList);

Review Comment:
   Use static import to reduce redundant code.



-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [PR] [ISSUE #9156] Refactor AclUtils#getAclRPCHook [rocketmq]

Posted by "yx9o (via GitHub)" <gi...@apache.org>.
yx9o commented on code in PR #9157:
URL: https://github.com/apache/rocketmq/pull/9157#discussion_r1928195090


##########
acl/src/test/java/org/apache/rocketmq/acl/common/AclUtilsTest.java:
##########
@@ -47,7 +54,7 @@ public void testGetAddresses() {
         addressList.add("1.1.1.2");
         addressList.add("1.1.1.3");
         addressList.add("1.1.1.4");
-        Assert.assertEquals(newAddressList, addressList);
+        assertEquals(newAddressList, addressList);

Review Comment:
   It has been adjusted. Please review it again. Thank you.



-- 
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: commits-unsubscribe@rocketmq.apache.org

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


Re: [PR] [ISSUE #9156] Refactor AclUtils#getAclRPCHook [rocketmq]

Posted by "qianye1001 (via GitHub)" <gi...@apache.org>.
qianye1001 commented on code in PR #9157:
URL: https://github.com/apache/rocketmq/pull/9157#discussion_r1927995230


##########
acl/src/test/java/org/apache/rocketmq/acl/common/AclUtilsTest.java:
##########
@@ -47,7 +54,7 @@ public void testGetAddresses() {
         addressList.add("1.1.1.2");
         addressList.add("1.1.1.3");
         addressList.add("1.1.1.4");
-        Assert.assertEquals(newAddressList, addressList);
+        assertEquals(newAddressList, addressList);

Review Comment:
   Are there any benefits to this modification?



-- 
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: commits-unsubscribe@rocketmq.apache.org

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