azagrebin commented on a change in pull request #7351: [FLINK-11008][State 
Backends, Checkpointing]SpeedUp upload state files using multithread
URL: https://github.com/apache/flink/pull/7351#discussion_r246337062
 
 

 ##########
 File path: 
flink-state-backends/flink-statebackend-rocksdb/src/test/java/org/apache/flink/contrib/streaming/state/RocksDBStateDataTransferTest.java
 ##########
 @@ -138,6 +148,157 @@ public void testMultiThreadRestoreCorrectly() throws 
Exception {
                }
        }
 
+       /**
+        * Test that the exception arose in the thread pool will rethrow to the 
main thread.
+        */
+       @Test
+       public void testMultiThreadUploadThreadPoolExceptionRethrow() throws 
IOException {
+               SpecifiedException expectedException = new 
SpecifiedException("throw exception while multi thread upload states.");
+
+               CheckpointStreamFactory.CheckpointStateOutputStream 
outputStream = new CheckpointStreamFactory.CheckpointStateOutputStream() {
 
 Review comment:
   Maybe, move creation code for `outputStream` into a separate 
`createFailingCheckpointStateOutputStream(failureException)` function?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to