You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/04/04 12:30:48 UTC

[GitHub] [flink] XComp commented on a diff in pull request #19304: [FLINK-26957][runtime] Removes flush in FileSystemJobResultStore.createDirtyResultInternal

XComp commented on code in PR #19304:
URL: https://github.com/apache/flink/pull/19304#discussion_r841681923


##########
flink-core/src/test/java/org/apache/flink/core/fs/FileSystemBehaviorTestSuite.java:
##########
@@ -263,6 +266,21 @@ public void testMkdirsFailsWithExistingParentFile() throws Exception {
         }
     }
 
+    /**
+     * This test is added to make sure that each FileSystem's OutputStream implementation is
+     * repeatedly closable. This was necessary due to the fact that {@link
+     * ObjectMapper#writeValue(java.io.OutputStream, Object)} closes the {@link OutputStream}
+     * internally (see FLINK-26957 for more context).
+     */
+    @Test
+    public void testClosingOutputStreamTwice() throws Exception {

Review Comment:
   fair enough, I thought it would be still valuable. But I removed the commit...



-- 
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-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org