-
Notifications
You must be signed in to change notification settings - Fork 5
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
JetStream source not working as expected. #14
Comments
I am facing the same problem and can read successfully from a NATS source but not from a Jetstream source. I can see that the source is closed and wonders if it is treated as bounded.
|
@DylanNWatt @skyrocknroll This jetstream code is beta for a reason. It was provided by a 3rd party and seems to work on their very specific use case. I'm personally not satisfied with it's behavior, hence the beta tag and the v0 packaging. I'm in the process of rewriting the connector to make it consumer centric instead of subject centric. |
I sincerely apologize for any inconvenience or challenges this issue may have caused. Rest assured, I am actively working on a fix and will submit a PR shortly to address it. |
Hello @scottf can you please review the change once ? |
@scottf @DylanNWatt @mlornac @souravagrawal @skyrocknroll @somratdutta |
Observed behavior
NatsJetStreamSourceBuilder does not appear to process messages as expected.
I'm investigating this library to process bluesky firehose messages I'm ingesting to jetstream. I want to use flink to do real time analysis of those messages. I want to use jetstream to ensure that messages are all properly captured and processed durably. I then sink the messages to an iceberg table.
Using a "NatsSourceBuilder" works (messages sink to iceberg), but not jetstream. In the following, source1 works, but not source2.
**Note I'm able to reproduce the lack of processing in the examples recently checked into this repo, and the below "behavior" questions refer to it, as that's a more easily isolated behavior.
I'm happy to provide more information about the "real" setup if needed. My java's pretty rusty, so i wasn't able to step through and see what was breaking.
Expected behavior
When running
nats subscribe example-sink
while executing src/examples/java/io/synadia/flink/examples/SourceToSinkJsExample.java, I expect to see published messages, however there are none. Note thatnats subscribe example-source
does show the created messages.Server and client version
Nats server: 2.10.22
Nats client: 0.1.5
Host environment
Mac 15.0.1, running nats in Kubernetes via helm.
Steps to reproduce
Clone this repo and run src/examples/java/io/synadia/flink/examples/SourceToSinkJsExample.java while having
nats subscribe example-sink
in another tab, and see no messages emitted.The text was updated successfully, but these errors were encountered: