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

   @Rangsh thanks for restating these. Unfortunately the comment reached me cut 
off again: it ends partway through point 4 at "Still throws `TimeoutException` 
on expiry (no". Could you repost the rest of point 4 and all of point 5, 
ideally as a separate short comment?
   
   On what did arrive (HEAD `a370bdf6b3`, going by your description):
   
   1. **Mockito dependency**: if the module inherits test-scoped 
`mockito-junit-jupiter` and `mockito-inline` from the root `pom.xml`, no change 
to `imap-storage-file/pom.xml` is needed. I have not run the `dependency:tree` 
command myself, so could you paste its output here?
   
   2. **Worker survival**: thanks for describing the `try/catch (Exception)` 
around `executeResponse()` and `WALWorkHandlerSurvivabilityTest`. I have not 
yet checked this against the diff at `a370bdf6b3`, so I'm keeping it open until 
then. One related question: since `Error`/`Throwable` are not caught, what 
happens to a caller blocked in the untimed `get()` if the worker dies that way, 
or if the event is never dispatched? Does anything bound that wait or fail the 
outstanding futures?
   
   3. **Writer reuse after write failure**: the sticky 
`appendBlockedAfterWriteFailure` behaviour you describe (no further bytes 
written, `done(false)`, recovery by process restart) sounds like the right 
direction for the mid-file torn record concern. I'm keeping this open too until 
I have checked it against the diff at `a370bdf6b3`.
   
   4. **Timed `get(timeout, unit)`**: I only got that it still throws 
`TimeoutException` on expiry. Is that contract now documented on the method 
itself, rather than only at class level?
   
   These points from my earlier review are also still open, unless the cut-off 
part already covers them:
   
   - The untimed `get()` changed from a 1-second-capped wait to an unbounded 
block.
   - `batchQueryExecuteFailsStatus` waits the full write timeout for each entry 
sequentially, so a stuck WAL worker can block `storeAll`/`deleteAll` for far 
longer than before.
   - `queryExecuteStatus` logs a full `TimeoutException` stack trace at ERROR 
on every timed-out wait, where the old code returned false silently.
   
   A one-line status on each of those is enough.
   
   <!-- streview-comment:2554 -->


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