morrySnow opened a new pull request, #61669: URL: https://github.com/apache/doris/pull/61669
Cherry-pick of #61366 to branch-4.1.\n\nThis PR optimizes lock granularity in CatalogRecycleBin by replacing coarse-grained synchronized methods with fine-grained read/write locks, and introduces microbatch erase to reduce lock hold time.\n\n## Changes\n- Replace synchronized methods with ReadWriteLock-based locking\n- Add microbatch erase pattern to reduce lock contention\n- Handle DdlException in cascade erase for concurrent operations\n- Add 3 new concurrency tests\n\n## Testing\n- All 27 unit tests pass (including 3 new concurrency tests)\n- Checkstyle passes\n- Compilation passes -- 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]
