justinmclean opened a new issue, #51:
URL: https://github.com/apache/iggy-website/issues/51
The Node snippets do not work against a fresh server.
`docs/sdk/node/intro.mdx`:
- the producer sends to `streamId: 1, topicId: 1` and never creates either,
so it
fails with `Stream with ID: {0} was not found`
- the consumer uses `partitionId: 1`, but partitions are zero-based, so it
fails
with `Partition with ID: {0} ... was not found`. `examples.mdx` has 0.
- the consumer polls `Offset(BigInt(0))` with `autocommit: false`, so every
run
returns the same ten messages
- neither snippet calls `client.destroy()`
`docs/sdk/node/examples.mdx` creates the stream and topic unconditionally,
so a
second run fails, and its consumer polls hardcoded `streamId: 1, topicId: 1`,
which only match if the server has nothing else on it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]