Rangsh commented on PR #12081:
URL: https://github.com/apache/seatunnel/pull/12081#issuecomment-7150553878

   Hi @SEZ9 — mapping your points 1–8 to head `7c9e0f192c`. For clarity, 
Daniel's "Issue 1/2/6/7" are separate test-acceptance items in his latest 
review, not the same numbering.
   
   **TL;DR:** I believe points 1–8 below are implemented at `7c9e0f192c` in 
source and/or tests. I've laid out where each point is addressed from my side; 
please treat your synced-head pass as the final check. If anything still 
blocks, point to the specific file/line. Fork Build for this commit: 
https://github.com/Rangsh/seatunnel/actions/runs/45302550317 (**success**).
   
   | Your # | Status | Where to verify |
   |--------|--------|-----------------|
   | 1 | Bounded by design (caller-side) | `RequestFuture`; `IMapFileStorage` 
query paths |
   | 2 | Consumer survives `Exception` (tested) | 
`WALWorkHandler#executeResponse`; `WALWorkHandlerSurvivabilityTest` |
   | 3 | Intentional contract; callers adjusted | `RequestFuture`; 
`IMapFileStorage` (timed `get` only in prod) |
   | 4 | Fail-close by design | `WALWorkHandler`; fail-close / torn-frame tests 
|
   | 5 | Mockito via parent POM; test migrated | Root `pom.xml`; 
`HdfsWriterFlushCallCountTest` |
   | 6 | One shared batch deadline (production) | 
`IMapFileStorage#batchQueryExecuteFailsStatus`; 
`IMapFileStorageBatchDeadlineTest` |
   | 7 | Documented on timed `get` | `RequestFuture#get(long, TimeUnit)` |
   | 8 | WARN + DEBUG on timeout | `queryExecuteStatusBeforeDeadline`; 
`batchQueryExecuteFailsStatus` |
   
   **Details (your numbering):**
   
   1. **Unbounded wait / `Error` / never dispatched:** Production 
`IMapFileStorage` uses only timed `get(remainingNanos, …)` under one 
`operationDeadlineNanos`. The required no-arg `get()` delegates to 
`get(untimedGetTimeoutMillis, MILLISECONDS)` and surfaces `ExecutionException` 
with `TimeoutException` cause after that cap (`RequestFuture`, commit 
`ef99d22d1a`). We do not catch `Error` on the WAL worker (JVM-level, 
intentional); caller waits remain bounded by the timed/no-arg caps above.
   
   2. **`executeResponse()` / worker vs timeout+eviction:** `executeResponse()` 
is wrapped in `try/catch (Exception)`; a missing/evicted future logs WARN and 
returns without rethrowing, so the sole disruptor consumer keeps processing. 
Covered by `WALWorkHandlerSurvivabilityTest`.
   
   3. **`get()` semantics:** Timed `get` throws `TimeoutException` on expiry 
(not `false`). No-arg `get()` is capped by `untimedGetTimeoutMillis` (not the 
old 1s cap and not unbounded). Production has no no-arg `get()` call sites on 
`RequestFuture`; `IMapFileStorage` already catches `TimeoutException`. Tests: 
`RequestFutureTest`, `WALWorkHandlerSurvivabilityTest`.
   
   4. **Writer after write failure:** The same `WALWriter` instance may remain 
open, but `appendBlockedAfterWriteFailure` is sticky: further APPEND does not 
write more bytes (`done(false)`). No in-process reopen/truncate of `wal.txt` 
(mid-file tear risk). See `WALWorkHandler` Javadoc and fail-close tests.
   
   5. **Mockito / `HdfsWriterFlushSyncPathTest`:** 
`HdfsWriterFlushSyncPathTest` is not on the branch; flush coverage is in 
`HdfsWriterFlushCallCountTest`. Mockito comes from test-scoped deps on the root 
`pom.xml` (not redeclared in `imap-storage-file/pom.xml`). Dependency tree: 
https://github.com/apache/seatunnel/pull/12081#issuecomment-7118546746 
(Appendix A).
   
   6. **Batch sequential wait:** `storeAll` / `deleteAll` share one 
`deadlineNanos` for admission and `batchQueryExecuteFailsStatus`; each entry 
uses `get(remainingNanos, …)`, not N × `writDataTimeoutMilliseconds` (field 
name as in `IMapFileStorage` source). `IMapFileStorageBatchDeadlineTest` 
exercises the public entry points with injected `nanoTime`.
   
   7. **Method-level Javadoc:** `RequestFuture#get(long, TimeUnit)` documents 
`TimeoutException` and that timeout does not cancel the in-flight append. 
No-arg `get()` is documented at class level (`Future` API requirement).
   
   8. **Timeout logging:** Timed-out waits log a one-line WARN; full 
`TimeoutException` stack is DEBUG only in `queryExecuteStatusBeforeDeadline` 
and `batchQueryExecuteFailsStatus`. Non-timeout failures remain ERROR.
   
   **Daniel's numbering (for clarity):** His remaining items on `7c9e0f192c` 
are test-acceptance follow-ups (e.g. outer watchdog on 
`IMapFileStorageRingAdmissionTest`, stronger restore oracle in 
`CheckpointPayloadMonitorFaultToleranceTest`). I plan to address those in a 
follow-up commit; they are not meant to reopen your product points 1–8 unless 
your pass finds a gap in source.
   
   Ready for your synced-head sign-off when you can. Thanks.


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