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:
[email protected]
With regards,
Apache Git Services