ydb-platform / ydb-java-sdk

YDB Java SDK
https://ydb.tech
Apache License 2.0
37 stars 21 forks source link

Fix unordered reading from a single partition in case of user errors #254

Closed Eistern closed 8 months ago

Eistern commented 8 months ago

After the merge of this PR, clients will wait until partition sessions are closed before completing DataReceivedEvent handling. This is crucial due to the possibility of not completing future provided by the shutdownImpl until we will start invocation of the callback declared at the tech/ydb/topic/read/impl/PartitionSessionImpl.java:313

And, as a second update we will also rethrow an exception, so it can be logged with the stacktrace at the tech/ydb/topic/read/impl/PartitionSessionImpl.java:314

See also: