szetszwo opened a new pull request, #12217:
URL: https://github.com/apache/ozone/pull/12217
Assisted by Claude Opus 5.5.
## What changes were proposed in this pull request?
- For multiple trailing '/' characters, NetUtils.normalize(..) should remove
all of them.
- Due to this bug, NetUtils.locationToDepth("///") will return 0 which is
incorrect since the correct value is 1.
- Implement NetUtils.locationToDepth(..) without String.split(..) since
String.split(..) is expensive and unnecessarily create an array just for the
length.
- locationToDepth(..) is a very basic operation which must be very
efficient.
## What is the link to the Apache JIRA
HDDS-17957
## How was this patch tested?
Added new tests.
--
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]