SbloodyS commented on PR #18463:
URL: 
https://github.com/apache/dolphinscheduler/pull/18463#issuecomment-6228123859

   ### Detect file replacement across local log chunks
   
   [Source evidence] `LogServiceImpl.java:121–134`
   
   Each chunk reopens the log path, while the response identifies the file only 
by its current length. If the first chunk delivers 8 MiB from file A and the 
path is then replaced by file B whose length is equal to or greater than the 
pinned length, all length checks pass. The download completes successfully with 
A's prefix and B's suffix.
   
   Please bind the transfer to a stable file identity or snapshot and reject 
replacement. Add a regression that replaces the log with different content of 
the same size after the first chunk; the existing shrink tests cannot detect 
this corruption.
   
   ### Verify missing-method handling against the actual old-worker wire 
response
   
   [Source evidence] `SyncClientMethodInvoker.java:53–59`
   
   The upgrade-required branch depends on the newly added `methodNotFound` 
field. A genuinely old worker does not send that field: its handler returns 
`StandardRpcResponse.fail("Cannot find the ServerMethodInvoker of ...")`. 
Deserialization therefore leaves the flag false, and the client classifies the 
response as a generic invocation failure instead of an unsupported chunk RPC.
   
   `RollingUpgradeLogStreamingIntegrationTest` uses the new server 
implementation with an unregistered method, so it sends the new flag and misses 
this compatibility gap.
   
   Please recognize the legacy missing-method response without misclassifying 
ordinary invocation failures, and add a wire-level regression where the 
response omits `methodNotFound`.


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