amogh-jahagirdar commented on code in PR #9183: URL: https://github.com/apache/iceberg/pull/9183#discussion_r1410012734
########## core/src/test/java/org/apache/iceberg/TestSequenceNumberForV2Table.java: ########## @@ -319,12 +321,18 @@ public void testExpirationInTransaction() { V2Assert.assertEquals("Snapshot sequence number should be 2", 2, snap2.sequenceNumber()); V2Assert.assertEquals( "Last sequence number should be 2", 2, readMetadata().lastSequenceNumber()); + V2Assert.assertEquals( + "Should be 2 snapshot files", listSnapshotFiles(table.location()).size(), 2); Transaction txn = table.newTransaction(); txn.expireSnapshots().expireSnapshotId(commitId1).commit(); txn.commitTransaction(); V2Assert.assertEquals( "Last sequence number should be 2", 2, readMetadata().lastSequenceNumber()); + V2Assert.assertEquals( + "Should be 1 snapshot file as 1 was deleted", Review Comment: Nit: Typically we use the term "manifest list" instead of "snapshot file" could we call it that? -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org