Caideyipi opened a new pull request, #19040:
URL: https://github.com/apache/iotdb/pull/19040

   A disconnected TsFile consumer can receive FILE_PIECE or FILE_SEAL as the 
first response of a new transfer because releasing in-flight events preserves 
the previous response state. V2 polling also leaves a window between removing a 
queued tail event and registering it in flight, allowing a snapshot to complete 
while that delivery is still unacknowledged.
   
   Rewind connection-released deliveries to their initial response without 
incrementing poison-message retry counts. Preserve response-size requeue 
behavior, serialize the V2 poll transition with snapshot completion, and check 
in-flight events before queued events when testing for completion.
   
   Validation on Apache master `8cdc9681d01`, Linux, JDK 17.0.9 and Maven 
3.9.12, with the required 28-module source closure rebuilt cleanly:
   
   - Both new regression tests fail on the unmodified implementation: the file 
restarts with FILE_SEAL, and the snapshot completes during a controlled poll 
transition.
   - Both regressions and the two existing recycle-interval tests pass with 
this change: 4 tests, 0 failures, 0 errors, 0 skipped.
   - `mvn spotless:apply -P with-integration-tests -pl iotdb-core/datanode` and 
`git diff --check` pass.


-- 
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]

Reply via email to