You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: connect-file-pulse-plugin/src/main/java/io/streamthoughts/kafka/connect/filepulse/reader/RowFileInputIterator.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,7 @@ public RecordsIterable<FileRecord<TypedStruct>> next() {
143
143
initializeIfNeeded();
144
144
mayWaitForLinesToBeAvailable();
145
145
List<FileRecord<TypedStruct>> records = newLinkedList<>();
Copy file name to clipboardExpand all lines: connect-file-pulse-plugin/src/main/java/io/streamthoughts/kafka/connect/filepulse/reader/internal/NonBlockingBufferReader.java
+49-18Lines changed: 49 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ public class NonBlockingBufferReader implements AutoCloseable {
64
64
// Number of bytes read during last iteration.
65
65
privateintnread = -1;
66
66
67
-
privatebooleanautoFlush = true;
67
+
privatebooleanisAutoFlushOnEOF = true;
68
68
69
69
/**
70
70
* Creates a new {@link NonBlockingBufferReader} instance.
@@ -113,35 +113,30 @@ public long position() {
113
113
* flush all remaining buffered bytes as a single line when EOF is reached.
114
114
*/
115
115
publicvoidenableAutoFlush() {
116
-
this.autoFlush = true;
116
+
this.isAutoFlushOnEOF = true;
117
117
}
118
118
119
119
/**
120
120
* Disable auto-flush; Reader will not automatically
121
121
* flush all remaining buffered bytes when EOF is reached.
Copy file name to clipboardExpand all lines: connect-file-pulse-plugin/src/test/java/io/streamthoughts/kafka/connect/filepulse/reader/internal/NonBlockingBufferReaderTest.java
0 commit comments