Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timestamp+incrementing Kafka Connect Neo4j Connector #522

Open
viveksaran71 opened this issue Jan 26, 2022 · 0 comments
Open

Add timestamp+incrementing Kafka Connect Neo4j Connector #522

viveksaran71 opened this issue Jan 26, 2022 · 0 comments

Comments

@viveksaran71
Copy link

Neo4j Source connector (a Kafka Connect plugin) uses timestamp parameter to figure out the new/updated entities. Every Neo4j entity must have this parameter. The Source connector retrieves based on the neo4j.streaming.from parameter. The default value is NOW, which means that all the Neo4j entities with a timestamp greater than NOW will be retrieved and sent to Kafka. This behavior happens every neo4j.streaming.poll.interval.msecs, causing the duplication.

It is my understanding that the Neo4j Source connector has been implemented similar to Confluent’s JDBC Source Connector. There was an option to retrieve Neo4j entities using either timestamp or incrementing or both (timestamp+incrementing) of these methods combined. However, only the timestamp option has been implemented, causing a situation that it is creating duplicates for some customers.

There could be a problem implementing the incrementing feature because of Neo4j's internal structure, as it can’t provide a real unique field. Creating this GH issue anyway, for possible internal discussion and for figuring out a solution.

Thanks for your help!

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

No branches or pull requests

1 participant