Skip to content

Conversation

crepererum
Copy link
Collaborator

If we encounter OffsetOutOfRange this means that the start offset of
the stream lies outside of the range that Kafka knows. In this case we
should not hot-loop and try to poll new data forever, since this is very
likely NOT intended.

The only use case I could come up with is to start a stream at some "yet
to be produced" offset, but I fail to come up with a practical reasoning
behind this as well as a method to dermine the start offset for such a
use case.

So most users are likely interested to subscribe to data that already
exists within the system.

If we encounter `OffsetOutOfRange` this means that the start offset of
the stream lies outside of the range that Kafka knows. In this case we
should not hot-loop and try to poll new data forever, since this is very
likely NOT intended.

The only use case I could come up with is to start a stream at some "yet
to be produced" offset, but I fail to come up with a practical reasoning
behind this as well as a method to dermine the start offset for such a
use case.

So most users are likely interested to subscribe to data that already
exists within the system.
@crepererum
Copy link
Collaborator Author

arg, I need to fix redpanda

@crepererum crepererum added the automerge Instruct kodiak to merge the PR label Feb 9, 2022
@crepererum crepererum force-pushed the crepererum/consumer_stream_offset_out_of_range branch from 8515fd3 to 570b98e Compare February 9, 2022 14:49
@crepererum crepererum removed the automerge Instruct kodiak to merge the PR label Feb 9, 2022
@crepererum crepererum force-pushed the crepererum/consumer_stream_offset_out_of_range branch from 570b98e to 1a4e849 Compare February 9, 2022 14:53
@crepererum crepererum added the automerge Instruct kodiak to merge the PR label Feb 9, 2022
@kodiakhq kodiakhq bot merged commit 0f9cd4e into main Feb 9, 2022
@crepererum crepererum deleted the crepererum/consumer_stream_offset_out_of_range branch February 16, 2022 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Instruct kodiak to merge the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants