jackye1995 commented on code in PR #9722:
URL: https://github.com/apache/iceberg/pull/9722#discussion_r1491698706
##########
core/src/test/java/org/apache/iceberg/inmemory/TestInMemoryFileIO.java:
##########
@@ -108,4 +111,18 @@ public void testOverwriteBeforeAndAfterClose() throws
IOException {
inputStream.close();
Assertions.assertThat(new String(buf)).isEqualTo("new data");
}
+
+ @Test
+ public void testFilesAreSharedAcrossMultipleInstances() {
+ String location = getRandomLocation();
+ InMemoryFileIO fileIO = new InMemoryFileIO();
+ fileIO.addFile(location, "hello world".getBytes());
+
+ InMemoryFileIO fileIO2 = new InMemoryFileIO();
+ Assertions.assertThat(fileIO2.fileExists(location)).isTrue();
+ }
+
+ private String getRandomLocation() {
Review Comment:
we don't use get in method names in Iceberg :)
--
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]