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

   Hi @SEZ9 — follow-up because 
([#7256829001](https://github.com/apache/seatunnel/pull/12081#issuecomment-7256829001))
 clipped on your side mid–item 3. Plain bullets. WAL baseline: 
**`7c9e0f192c`**. Head **`cde67b24e5`** = Issue-2 FT tests only (see bottom).
   
   **Point 1 (untimed `get()` / bounded waits)** — unchanged since 
`7c9e0f192c`; please confirm on diff. I can paste a short diff snippet for 
`RequestFuture` / `IMapFileStorage` waits if that helps.
   - No-arg `RequestFuture#get()` → `get(untimedGetTimeoutMillis, 
MILLISECONDS)`; expiry → `ExecutionException` with `TimeoutException` cause 
(`RequestFuture` ~L98–106).
   - No production caller in `imap-storage-file` uses no-arg `get()`; waits use 
timed `get(remainingNanos, NANOSECONDS)` only.
   - On expiry: catch `TimeoutException`, 
**`RequestFutureCache.remove(requestId)` in `finally`**, return persistence 
failure (`false` / batch `failures`).
   - WAL write path still does not catch `Error`.
   
   **Point 2 (`executeResponse` after caller timeout)** — **Handler survives.**
   - Missing cache entry → **WARN + return** (no throw). `done()` failure → 
**catch (Exception)**, log, thread continues.
   - Tests: `WALWorkHandlerSurvivabilityTest.removedFutureShouldNotKillWorker`, 
`throwingDoneShouldNotKillWorker`.
   
   **Point 3 (completion)**
   - **`untimedGetTimeoutMillis` default:** `RequestFuture()` → 
`IMapFileStorage.DEFAULT_WRITE_DATA_TIMEOUT_MILLISECONDS` = **60_000 ms** 
(aligned with default `writDataTimeoutMilliseconds` unless storage init 
overrides).
   - Timed `get(long, TimeUnit)` throws **`TimeoutException`** on expiry (not 
`false`).
   - `IMapFileStorage` callers catch **`TimeoutException`** as failure; no 
production path depends on timed `get` returning `false` on timeout.
   
   **Point 4 (writer after write failure)** — **No further durable APPEND on 
that handler** (fail-close; sticky `appendBlockedAfterWriteFailure`). No 
in-process reopen/truncate; restart required per `WALWorkHandler` Javadoc.
   
   **Point 5 (Mockito / flush test)** — **Done.** Root POM test-scoped Mockito. 
**`HdfsWriterFlushSyncPathTest` does not exist.** 
`HdfsWriterFlushCallCountTest` (hsync dispatch branches); 
`WALWorkHandlerSurvivabilityTest` (injected real flush/hsync failure + 
fail-close).
   
   **Point 6 (batch deadline)** — **Done / yes:** one 
`operationDeadlineNanos()` for admission + whole batch; each key waits 
**remaining** budget only (`batchQueryExecuteFailsStatus`, ~L449–451).
   
   **Point 7 (timed `get` Javadoc)** — **Done.** `@throws TimeoutException`; 
timeout does not cancel in-flight append.
   
   **Point 8 (timeout logging)** — **Done (intentional, not 
ERROR-per-timeout).** Expected wait timeout: **WARN** summary + stack at 
**DEBUG** (batch path avoids an ERROR stack per key when many entries time out 
together). Unexpected wait failures: **ERROR** with stack.
   
   **Head:** `7c9e0f192c..cde67b24e5` — test/conf only; no `RequestFuture` / 
`IMapFileStorage` / `WALWorkHandler` production diff in that range.
   
   Tell me if any point still clips; I can repost one point per comment.


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