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
[FLINK-36455] Deprecate async parts of committable summary
Without async parts of committable summary, number of pending committables will always be 0.
Failed committables will also be 0 as they will throw an error if unexpected or not they are silently ignored. The previous behavior with them being >0 actually led to infinite loops in the global committer.
Copy file name to clipboardexpand all lines: flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/compactor/operator/CompactorOperatorStateHandler.java
Copy file name to clipboardexpand all lines: flink-connectors/flink-connector-files/src/test/java/org/apache/flink/connector/file/sink/compactor/CompactorOperatorTest.java
Copy file name to clipboardexpand all lines: flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/sink/committables/CheckpointCommittableManager.java
+19
Original file line number
Diff line number
Diff line change
@@ -66,5 +66,24 @@ public interface CheckpointCommittableManager<CommT> {
Copy file name to clipboardexpand all lines: flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/sink/committables/CheckpointCommittableManagerImpl.java
+7
Original file line number
Diff line number
Diff line change
@@ -166,6 +166,13 @@ public Collection<CommT> getSuccessfulCommittables() {
Copy file name to clipboardexpand all lines: flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/sink/committables/CommittableCollectorSerializer.java
+2-3
Original file line number
Diff line number
Diff line change
@@ -207,7 +207,7 @@ public SubtaskSimpleVersionedSerializer() {
207
207
208
208
@Override
209
209
publicintgetVersion() {
210
-
return1;
210
+
return2;
211
211
}
212
212
213
213
@Override
@@ -219,7 +219,6 @@ public byte[] serialize(SubtaskCommittableManager<CommT> subtask) throws IOExcep
219
219
newArrayList<>(subtask.getRequests()),
220
220
out);
221
221
out.writeInt(subtask.getNumCommittables());
222
-
out.writeInt(subtask.getNumDrained());
223
222
out.writeInt(subtask.getNumFailed());
224
223
returnout.getCopyOfBuffer();
225
224
}
@@ -236,7 +235,7 @@ public SubtaskCommittableManager<CommT> deserialize(int version, byte[] serializ
Copy file name to clipboardexpand all lines: flink-runtime/src/main/java/org/apache/flink/streaming/runtime/operators/sink/committables/SubtaskCommittableManager.java
Copy file name to clipboardexpand all lines: flink-runtime/src/test/java/org/apache/flink/streaming/api/connector/sink2/CommittableMessageSerializerTest.java
0 commit comments