JHSUYU opened a new pull request, #8499: URL: https://github.com/apache/hadoop/pull/8499
### Description Follow up HDFS-17899 / HDFS-17897 by handling `InvalidEncryptionKeyException` in the remaining data-transfer connection setup paths: * DataXceiver `writeBlock` mirror pipeline connection * DataXceiver `replaceBlock` proxy copy connection * Erasure coding `StripedBlockWriter` target connection The exception is raised during SASL data-transfer handshake, before the downstream `writeBlock` / `copyBlock` request is sent. Retrying once is safe for these paths because no data-transfer operation has been issued yet. Before retrying, the socket is closed and the cached data encryption key is cleared so the next handshake obtains a fresh key. A second failure is propagated. ### Tests ``` JAVA_HOME=/Users/lizhenyu/Library/Java/JavaVirtualMachines/corretto-17.0.12/Contents/Home mvn -pl hadoop-hdfs-project/hadoop-hdfs -am -Dtest=TestDataXceiverEncryptionKey,TestStripedBlockWriterEncryptionKey,TestDataTransferEncryptionKey -DskipShade -DskipITs -Dspotbugs.skip -Denforcer.skip=true test ``` -- 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]
