[postgres] Fix Validator didn't implement Serializable

Co-authored-by: mao.man@rootcloud.com <mao.man@rootcloud.com>
pull/327/head
manmao 4 years ago committed by GitHub
parent bf9fb45b40
commit 23bdc7a95b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,8 +18,10 @@
package com.ververica.cdc.debezium; package com.ververica.cdc.debezium;
import java.io.Serializable;
/** Validator to validate the connected database satisfies the cdc connector's requirements. */ /** Validator to validate the connected database satisfies the cdc connector's requirements. */
public interface Validator { public interface Validator extends Serializable {
void validate(); void validate();

@ -28,7 +28,6 @@ import com.ververica.cdc.connectors.mysql.debezium.DebeziumUtils;
import com.ververica.cdc.debezium.Validator; import com.ververica.cdc.debezium.Validator;
import io.debezium.connector.mysql.MySqlConnection; import io.debezium.connector.mysql.MySqlConnection;
import java.io.Serializable;
import java.sql.SQLException; import java.sql.SQLException;
import java.util.Arrays; import java.util.Arrays;
import java.util.Properties; import java.util.Properties;
@ -37,7 +36,7 @@ import java.util.Properties;
* The validator for MySql: it only cares about the version of the database is larger than or equal * The validator for MySql: it only cares about the version of the database is larger than or equal
* to 5.7. It also requires the binlog format in the database is ROW and row image is FULL. * to 5.7. It also requires the binlog format in the database is ROW and row image is FULL.
*/ */
public class MySqlValidator implements Validator, Serializable { public class MySqlValidator implements Validator {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;

Loading…
Cancel
Save