officialasishkumar opened a new pull request, #18719: URL: https://github.com/apache/hudi/pull/18719
### Describe the issue this Pull Request addresses Closes #17985. ### Summary and Changelog HoodieCombineHiveInputFormat.getSplits now clears Hive's work map in a finally block so ThreadLocal work state is cleaned up even when split generation fails. Added a regression test that forces split classification to fail and verifies Utilities.clearWorkMapForConf is still invoked. Validation: `mvn -pl hudi-hadoop-mr -am -Dtest=TestHoodieCombineHiveInputFormat#clearWorkMapForConfOnGetSplitsFailure -Dsurefire.failIfNoSpecifiedTests=false -DfailIfNoTests=false -DskipITs=true -DskipFTs=true test` ### Impact Prevents stale Hive work-map state from leaking across reused threads after exceptional split generation. There is no public API change. ### Risk Level low. The change preserves the successful cleanup behavior and extends it to failure paths. ### Documentation Update none ### Contributor's checklist - [x] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute) - [x] Enough context is provided in the sections above - [x] Adequate tests were added if applicable -- 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]
