Gabriel39 commented on code in PR #70697:
URL: https://github.com/apache/doris/pull/70697#discussion_r4676475180


##########
fe/fe-core/src/main/java/org/apache/doris/datasource/split/SplitSource.java:
##########
@@ -166,7 +167,8 @@ public synchronized List<TScanRangeLocations> 
getNextBatch(int maxBatchSize) thr
         }
         // Lazy splits leave FE after initial dispatch; apply the same checks 
before each RPC response.
         try {
-            FileScanEncryptionGuard.checkBatch(scanRanges);
+            // Keys leave FE only while the target reader and both private 
transports remain available.
+            FileScanEncryptionGuard.checkBatch(scanRanges, () -> 
NativeFileEncryptionSupport.supported(backend));

Review Comment:
   Fixed in 22a97dab72. SplitSource now captures the original BRPC address and 
uses the shared dispatch validator against the current registry before 
returning an encrypted batch. Its new Backend-bound validation also requires 
the exact registration object, so even a replacement with the same ID and 
address cannot inherit the old source's lease. The current address and 
capability must still match; denial stops producers and remains terminal after 
the final batch is drained.
   
   Three new regressions first fetch successfully from a registered capable 
backend, then drop it, replace it with the same ID/address, or move its BRPC 
address. All three fail on the baseline by returning further encrypted ranges, 
and pass with the fix while checking producer stop and repeated failure. The 
update also fixes the External default-group regression with two real 
AllBackendComputeGroup tests.
   
   Final official FE selection: 181 tests across 11 suites, zero 
failures/errors/skips. FE Checkstyle and clang-format 16 are clean; this 
follow-up changes only Java. Local full-diff/call-chain review found no further 
substantiated issue. Buildall, review and a fresh External run have been 
requested; fresh native PME/TLS SQL remains unverified as disclosed.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to