Mithilbatra commented on PR #13392: URL: https://github.com/apache/seatunnel/pull/13392#issuecomment-7106907251
Thanks for the careful review, @DanielLeens. I kept the map test and added testConcurrentPipelineRestoresKeepEachPipelinesSlots to JobMasterMasterFailoverResourceTest. It uses a real fixed-slot server and a two-pipeline job. Both pipelines release their slots like SubPlan does on FAILED, then wait on a barrier so both call JobMaster.preApplyResources(subPlan) at the same time. Each one then consumes its futures through ResourceUtils.applyResourceForPipeline. The test checks that each pipeline gets back exactly its own task groups with active slots, that no slot is shared between them, and that the shared map is still a ConcurrentHashMap. Slots are released in a finally block, including any a failed restore left behind. It passed 5 runs in a row locally. One thing to be upfront about: on dev this test only fails on the map-type check. During a restore both pipelines overwrite keys that are already in the map, so I couldn't force the lost-entry race through this path in a test. The concurrent putAll test in PhysicalPlanTest still covers that part. I also added the setter contract comment you asked for. The failed check was rocketmq-connector-it, which hit HTTP 429 from Maven Central while downloading the Maven wrapper, before anything compiled. I'll rerun it after this push. -- 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]
