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
First of all, thank you for this great tool.
I was able to do a successful replication in my test environment. There were some hick-ups though regarding checkpoints.
"checkpoint" is mounted into the container, to make it survive a container restart.
replicator.yml
...
checkpoint:
path: "/app/checkpoint"
At first I faced a "permission denied". It turned out that the application expected "checkpoint" to be a file, not a directory. This is mentioned in the docs under "Concepts". What is not mentioned, is that the application expects a StreamPosition, e.g. "0,0". I found that out after getting FormatExceptions because appearantly the constructor of EventStore.Replicator.FileCheckpointStore checks if the file exists, and if not, creates it with content "test" --> conversion to int fails.
The fix was to manually create a checkpoint file and put "0,0" into it.
I'm wondering how it works, if one doesn't manually create the file with proper content before starting the application, and I'm unsure whether this is a bug/feature request.
One thing to improve for sure though is to add replicator.checkpoint.path to the configuration section in the docs.
The text was updated successfully, but these errors were encountered:
First of all, thank you for this great tool.
I was able to do a successful replication in my test environment. There were some hick-ups though regarding checkpoints.
A simplified
docker-compose.yml
"checkpoint" is mounted into the container, to make it survive a container restart.
replicator.yml
At first I faced a "permission denied". It turned out that the application expected "checkpoint" to be a file, not a directory. This is mentioned in the docs under "Concepts". What is not mentioned, is that the application expects a StreamPosition, e.g. "0,0". I found that out after getting FormatExceptions because appearantly the constructor of
EventStore.Replicator.FileCheckpointStore
checks if the file exists, and if not, creates it with content "test" --> conversion to int fails.The fix was to manually create a checkpoint file and put "0,0" into it.
I'm wondering how it works, if one doesn't manually create the file with proper content before starting the application, and I'm unsure whether this is a bug/feature request.
One thing to improve for sure though is to add
replicator.checkpoint.path
to the configuration section in the docs.The text was updated successfully, but these errors were encountered: