smaheshwar-pltr commented on code in PR #17404:
URL: https://github.com/apache/iceberg/pull/17404#discussion_r3670136069


##########
spark/v4.1/spark/src/test/java/org/apache/iceberg/spark/sql/TestTableEncryption.java:
##########
@@ -162,6 +162,29 @@ public void testConcurrentAppendTransactions() {
     assertThat(currentDataFiles(table)).hasSize(dataFiles.size() + 2);
   }
 
+  @TestTemplate
+  public void testSharedTableTransactionInterleavedWithDirectCommit() {
+    validationCatalog.initialize(catalogName, catalogConfig);
+    // A single shared Table (and its EncryptionManager) drives both a staged 
transaction and a
+    // direct commit. With a mutable shared manager, the direct commit's key 
could be dropped from
+    // metadata, leaving its snapshot undecryptable. The metadata-sourced 
manager keeps every key.

Review Comment:
   slop



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