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
When cancelling a job, we may interrupt the KafkaCommitter. This currently leads to ERROR log "Transaction ... encountered error and data has been potentially lost."
However, that exception is expected and not leading to any data loss beyond the normal inconsistencies because of cancellation. In many cases, the commit already succeeded. Further, a job restart will lead to data being eventually committed.
Copy file name to clipboardExpand all lines: flink-connector-kafka/src/test/java/org/apache/flink/connector/kafka/sink/internal/KafkaCommitterTest.java
+71-7Lines changed: 71 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,13 @@
1
1
/*
2
-
* Licensed to the Apache Software Foundation (ASF) under one or more
3
-
* contributor license agreements. See the NOTICE file distributed with
4
-
* this work for additional information regarding copyright ownership.
5
-
* The ASF licenses this file to You under the Apache License, Version 2.0
6
-
* (the "License"); you may not use this file except in compliance with
7
-
* the License. You may obtain a copy of the License at
2
+
* Licensed to the Apache Software Foundation (ASF) under one
3
+
* or more contributor license agreements. See the NOTICE file
4
+
* distributed with this work for additional information
5
+
* regarding copyright ownership. The ASF licenses this file
6
+
* to you under the Apache License, Version 2.0 (the
7
+
* "License"); you may not use this file except in compliance
8
+
* with the License. You may obtain a copy of the License at
8
9
*
9
-
* http://www.apache.org/licenses/LICENSE-2.0
10
+
* http://www.apache.org/licenses/LICENSE-2.0
10
11
*
11
12
* Unless required by applicable law or agreed to in writing, software
12
13
* distributed under the License is distributed on an "AS IS" BASIS,
0 commit comments