Skip to content

Conversation

@sagarkapare
Copy link
Contributor

@sagarkapare sagarkapare commented Mar 17, 2021

…der the appname key.

cherry-pick #153 to develop.

String rowStr = originalConfig.get(ROW);
String eventStr = originalConfig.get(EVENT);
String gtidSetStr = originalConfig.get(GTID_SET);
String replicationConnectorName = originalConfig.get(REPLICATION_CONNECTOR_NAME);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

Collectors.toMap(t -> config.getDatabase() + "." + t.getTable(), t -> t));
Map<String, String> state = offset.get(); // state map is always not null
String isSnapshot = state.getOrDefault(MySqlConstantOffsetBackingStore.SNAPSHOT, "");
String replicationConnectorName = "delta" + context.getInstanceId();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit : "delta-" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since its internal name it is ok to keep it like the way we have. Also some properties from debezium don't accept special chars like -.

Map<String, String> state = offset.get(); // this will never be null
// offset config
String isSnapshotCompleted = state.getOrDefault(SqlServerConstantOffsetBackingStore.SNAPSHOT_COMPLETED, "");
String replicationConnectorName = "delta" + context.getInstanceId();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: "delta-" ?

@sagarkapare sagarkapare merged commit b6875a3 into develop Mar 17, 2021
@sagarkapare sagarkapare deleted the fix/cherry-pick-instance-id branch March 17, 2021 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants