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/distributed/SchemaCoordinator.java
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,7 @@
52
52
importjava.io.ByteArrayOutputStream;
53
53
importjava.io.DataInputStream;
54
54
importjava.io.DataOutputStream;
55
+
importjava.io.IOException;
55
56
importjava.time.Duration;
56
57
importjava.util.ArrayList;
57
58
importjava.util.Collection;
@@ -131,6 +132,17 @@ public void start() throws Exception {
131
132
"Started SchemaRegistry for {}. Parallelism: {}", operatorName, currentParallelism);
132
133
}
133
134
135
+
@Override
136
+
publicvoidclose() throwsException {
137
+
super.close();
138
+
try {
139
+
metadataApplier.close();
140
+
} catch (Exceptione) {
141
+
LOG.error("Failed to close metadata applier.", e);
142
+
thrownewIOException("Failed to close metadata applier.", e);
Copy file name to clipboardExpand all lines: flink-cdc-runtime/src/main/java/org/apache/flink/cdc/runtime/operators/schema/regular/SchemaCoordinator.java
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,12 @@ public void close() throws Exception {
117
117
if (schemaChangeThreadPool != null && !schemaChangeThreadPool.isShutdown()) {
118
118
schemaChangeThreadPool.shutdownNow();
119
119
}
120
+
try {
121
+
metadataApplier.close();
122
+
} catch (Exceptione) {
123
+
LOG.error("Failed to close metadata applier.", e);
124
+
thrownewIOException("Failed to close metadata applier.", e);
0 commit comments