andyhuangdev opened a new pull request, #11532:
URL: https://github.com/apache/ozone/pull/11532

   ## What changes were proposed in this pull request?
   
   This patch replaces enum compareTo checks with 
ComponentVersion#isSupportedBy in RpcClient's get, put, and delete bucket 
tagging methods.
   
   The change follows the component version comparison contract and matches the 
existing object tagging checks. Current behavior remains unchanged, while 
feature support checks no longer depend on enum declaration order.
   
   Parameterized tests cover older, minimum supported, newer, and unknown OM 
versions, verifying that unsupported versions are rejected without sending 
tagging RPCs.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-16995
   
   ## How was this patch tested?
   
   - TestRpcClient: all 44 tests passed.
   - Temporarily disabled the bucket tagging version checks and confirmed the 
older-version test failed.
   - ./hadoop-ozone/dev-support/checks/checkstyle.sh: passed.
   - git diff --check: passed.


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