leesj8116 opened a new pull request, #7991: URL: https://github.com/apache/gravitino/pull/7991
### What changes were proposed in this pull request? Updated the PathBasedMetadataObject class to: - Compare the `recursive` flag in `equals()` and `hashCode()` methods. - Include the `recursive` flag in the `toString()` output. ### Why are the changes needed? Previously, the `recursive` flag was not considered in equality checks or hash code generation, which could lead to incorrect comparisons and inconsistent behavior in hash-based collections. Additionally, the `toString()` output did not reflect the `recursive` state, making debugging harder. Fix: #7958 ### Does this PR introduce _any_ user-facing change? No user-facing API changes. However, objects with different `recursive` flag values will now be treated as unequal. ### How was this patch tested? - Added `testRecursiveFlagAffectsEquality()` to the `TestPathBasedMetadataObject` class. - Added a case to `testToString()`. -- 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]
