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 2020/04/17 19:05:46 UTC

[GitHub] [flink] rkhachatryan commented on a change in pull request #11802: [FLINK-17197][runtime] switch ContinuousFileReaderOperator state to FAILED on error

rkhachatryan commented on a change in pull request #11802: [FLINK-17197][runtime] switch ContinuousFileReaderOperator state to FAILED on error
URL: https://github.com/apache/flink/pull/11802#discussion_r410416494
 
 

 ##########
 File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/source/ContinuousFileReaderOperator.java
 ##########
 @@ -202,15 +212,15 @@ public void onNoMoreData(ContinuousFileReaderOperator<?> op) {
 	 * MUST only be changed via {@link #switchState(ReaderState) switchState}.
 	 */
 	private transient ReaderState state = ReaderState.IDLE;
-	private transient PriorityQueue<TimestampedFileInputSplit> splits;
+	private transient PriorityQueue<TimestampedFileInputSplit> splits = new PriorityQueue<>();
 
 Review comment:
   allows avoiding `initializeState()` which requires a lot of setup

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services