This is an automated email from the ASF dual-hosted git repository. wanghailin pushed a commit to branch dev in repository https://gitbox.apache.org/repos/asf/seatunnel.git
The following commit(s) were added to refs/heads/dev by this push: new 423a7b142b [Hotfix][connector-v2-rabbit] fix rabbit checkpoint exception in Flink mode (#7108) 423a7b142b is described below commit 423a7b142b5fd26c6eb6295a345d5cf555e396de Author: Jast <745925...@qq.com> AuthorDate: Fri Jul 5 20:55:43 2024 +0800 [Hotfix][connector-v2-rabbit] fix rabbit checkpoint exception in Flink mode (#7108) --- .../rabbitmq/source/RabbitmqSourceState.java | 22 ++++++++++++++++++++++ .../rabbitmq/source/RabbitmqSplitEnumerator.java | 4 ++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/seatunnel-connectors-v2/connector-rabbitmq/src/main/java/org/apache/seatunnel/connectors/seatunnel/rabbitmq/source/RabbitmqSourceState.java b/seatunnel-connectors-v2/connector-rabbitmq/src/main/java/org/apache/seatunnel/connectors/seatunnel/rabbitmq/source/RabbitmqSourceState.java new file mode 100644 index 0000000000..bcca15c4df --- /dev/null +++ b/seatunnel-connectors-v2/connector-rabbitmq/src/main/java/org/apache/seatunnel/connectors/seatunnel/rabbitmq/source/RabbitmqSourceState.java @@ -0,0 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.seatunnel.connectors.seatunnel.rabbitmq.source; + +import java.io.Serializable; + +public class RabbitmqSourceState implements Serializable {} diff --git a/seatunnel-connectors-v2/connector-rabbitmq/src/main/java/org/apache/seatunnel/connectors/seatunnel/rabbitmq/source/RabbitmqSplitEnumerator.java b/seatunnel-connectors-v2/connector-rabbitmq/src/main/java/org/apache/seatunnel/connectors/seatunnel/rabbitmq/source/RabbitmqSplitEnumerator.java index 6d4383185a..a61f16045b 100644 --- a/seatunnel-connectors-v2/connector-rabbitmq/src/main/java/org/apache/seatunnel/connectors/seatunnel/rabbitmq/source/RabbitmqSplitEnumerator.java +++ b/seatunnel-connectors-v2/connector-rabbitmq/src/main/java/org/apache/seatunnel/connectors/seatunnel/rabbitmq/source/RabbitmqSplitEnumerator.java @@ -60,8 +60,8 @@ public class RabbitmqSplitEnumerator implements SourceSplitEnumerator { } @Override - public Object snapshotState(long checkpointId) throws Exception { - return null; + public RabbitmqSourceState snapshotState(long checkpointId) throws Exception { + return new RabbitmqSourceState(); } @Override