Caideyipi opened a new pull request, #18756: URL: https://github.com/apache/iotdb/pull/18756
## Description Fixes a Pipe async TsFile transfer stall when the optional `.mods2` file is removed between event creation and file transfer. The change: - Rechecks TsFile and modification-file availability before opening files. - Downgrades to TsFile-only transfer when `.mods2` disappears, and consistently uses the effective mode for piece requests, seal requests, and conversion task IDs. - Limits retries for a genuinely missing TsFile to five and reports a `PipeRuntimeSinkCriticalException`, allowing the failure reason to appear in Pipe status. - Clears missing-file retry bookkeeping after successful transfer or event cleanup. ## Root cause `PipeTsFileInsertionEvent` snapshots the modification-file state, while TsFile and modification-file references can be released separately. The sidecar can therefore be deleted before the asynchronous handler opens it. The handler retained the WithMod protocol and retried `FileNotFoundException` indefinitely, blocking the queue head and subsequent events. ## Tests - `IoTDBDataRegionAsyncSinkTest` - `PipeTransferTsFileHandlerCleanupTest` - 9 tests passed with 0 failures and 0 errors after rebasing onto the current `origin/master`. - Checkstyle, Spotless, English and Chinese locale compilation, and `git diff --check` passed. -- 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]
