Rangsh commented on PR #12081: URL: https://github.com/apache/seatunnel/pull/12081#issuecomment-7332961963
Hi @SEZ9 — direct answers first, then a short restatement of points 1–8. Batch wait: yes. storeAll and deleteAll are bounded by one overall deadline. They share one operationDeadlineNanos() for ring admission and for batchQueryExecuteFailsStatus. Each entry waits only the time remaining under that deadline. A later entry does not receive a fresh full write timeout. Newer head: yes. cde67b24e5..d93ef08031 changes only CheckpointPayloadMonitorFaultToleranceTest. There is no production diff in RequestFuture, IMapFileStorage, or WALWorkHandler. Points 1–8 still describe the behavior on 7c9e0f192c. Head d93ef08031 does not change that behavior. 1. Bounded waits. No-arg RequestFuture#get() calls get(untimedGetTimeoutMillis, MILLISECONDS) and wraps expiry in ExecutionException with TimeoutException as cause. Production IMapFileStorage uses only the timed overload. On TimeoutException the cache entry is removed in finally and the call returns a persistence failure. An Error from writer.write is not caught and can kill the worker, but the caller is already in that timed get, so expiry still returns failure instead of blocking past the deadline. 2. executeResponse survives. A missing cache entry is WARN and return. A failure from done() is caught as Exception and logged. Covered separately by WALWorkHandlerSurvivabilityTest.removedFutureShouldNotKillWorker and throwingDoneShouldNotKillWorker. 3. Default untimedGetTimeoutMillis is 60_000 ms. Timed get throws TimeoutException and does not return false. IMapFileStorage treats that exception as failure for the key. 4. After any APPEND write failure the handler sets sticky appendBlockedAfterWriteFailure. Later APPENDs do not write more bytes. Recovery is a process restart. 5. Done. Test-scoped Mockito comes from the root POM. HdfsWriterFlushSyncPathTest is not on this branch. Flush coverage is HdfsWriterFlushCallCountTest. 6. Same as the batch-wait answer above: one overall deadline, remaining budget per entry. 7–8. As in the previous comment: the method Javadoc states the TimeoutException contract, and an expected timeout is one WARN line with the stack at DEBUG only. -- 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]
