XuXcode opened a new pull request, #20310:
URL: https://github.com/apache/pinot/pull/20310

   Fixes #20133
   
   Problem
   
   When a segment upload future fails, "checkCompletedUploads()" observes the 
exception before removing that future from "_pendingUploads". The failed future 
remains in the writer's pending list, so Flink cleanup can wait on it again 
while closing the sink and rethrow the same failure during TaskExecutor 
shutdown.
   
   Change
   
   - Remove completed upload futures before propagating their failure.
   - Drain all pending upload futures during flush/close, retaining the first 
"IOException" and attaching later upload failures as suppressed exceptions.
   - Add a regression test that checks failure preservation, suppression of 
additional failures, and that a second cleanup drain is safe.
   
   Validation
   
   - "./mvnw -pl pinot-connectors/pinot-flink-connector -am 
'-Dtest=PinotSinkWriterTest' -Dsurefire.failIfNoSpecifiedTests=false 
-Dskip.npm=true test" — "BUILD SUCCESS"; 1 test passed, 0 
failures/errors/skips. "skip.npm" avoids the unrelated Controller frontend 
installation in this Maven reactor.
   - "./mvnw spotless:apply -pl pinot-connectors/pinot-flink-connector" — 
passed.
   - "./mvnw license:format -pl pinot-connectors/pinot-flink-connector" — 
passed; no license header changes.
   - "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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to