Bug: Source connector stop working after NATS reconnection
nassor opened this issue · comments
Bug description
After the NATS system recreates a connection, the connector ceases to function. This issue has been observed consistently following each instance of NATS connection recreation. Consequently, data transmission and communication processes stop working, leading to major operational setbacks.
Steps to reproduce
- Start the connector and NATS server.
- Create a pipeline file with NATS Jetstream as the source and
log
as the destination. - Use NATS benchmark to create some load:
nats bench test --js --pub 1 --size 16 --msgs 10
- Run conduit and observe logs of messages received working.
- Stop NATS server
- Stop NATS benchmark
- Start NATS server
- Start NATS benchmark
- Observe logs of messages received NOT working.
Version
0.3.1
Pipeline that I have been using for testing:
pipelines/test.yaml
version: 1.0
pipelines:
nats-to-log:
status: running
description: >
nats to log
connectors:
nats-source:
type: source
plugin: standalone:nats@latest
settings:
subject: test
urls: nats://127.0.0.1:4222
log-dest:
type: destination
plugin: builtin:log
settings:
Problem fixed: https://github.com/nassor/conduit-connector-nats-jetstream/tree/fix/jetstream-reconnection in this fork+branch
I still need to fix the tests to create a PR.