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: flink-cdc-runtime/src/main/java/org/apache/flink/cdc/runtime/operators/schema/coordinator/SchemaRegistryRequestHandler.java
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,6 @@
45
45
importorg.slf4j.LoggerFactory;
46
46
47
47
importjava.io.Closeable;
48
-
importjava.io.IOException;
49
48
importjava.util.ArrayList;
50
49
importjava.util.Collections;
51
50
importjava.util.HashMap;
@@ -343,16 +342,21 @@ public void getSchemaChangeResult(CompletableFuture<CoordinationResponse> respon
343
342
}
344
343
}
345
344
345
+
/**
346
+
* As at Flink 1.20, the runtime (<code>
347
+
* DefaultOperatorCoordinatorHandler#disposeAllOperatorCoordinators</code>) will ignore the
348
+
* exception thrown by this method. Thus, it should report errors by logging them.
349
+
*/
346
350
@Override
347
-
publicvoidclose() throwsIOException{
351
+
publicvoidclose() {
348
352
if (schemaChangeThreadPool != null) {
349
353
schemaChangeThreadPool.shutdown();
350
354
}
351
355
352
356
try {
353
357
metadataApplier.close();
354
358
} catch (Exceptione) {
355
-
thrownewIOException("Failed to close metadata applier.", e);
359
+
LOG.error("Failed to close metadata applier.", e);
0 commit comments