pravega / pravega-client-rust

Rust based Pravega client.
Apache License 2.0
31 stars 25 forks source link

ReaderGroup does not expose StreamCut #466

Closed ShwethaSNayak closed 8 months ago

ShwethaSNayak commented 8 months ago

Problem description If Client application crashes and if user wants to continue read the stream from where it left then at present there is no way to get StreamCuts from ReaderGroup. StreamCuts are set of segment/offset pairs for a single stream that represent a consistent position in the stream.

Suggestions for an improvement Add API get_streamcut() which returns StreamCut object. User is expected to call reader_group.get_streamcut() api periodically to get current streamcuts and use them while creating ReaderGroup.