We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37e117c commit 41b3356Copy full SHA for 41b3356
ydb/_topic_reader/topic_reader_asyncio.py
@@ -470,8 +470,9 @@ def _on_start_partition_session(
470
def _on_partition_session_stop(
471
self, message: StreamReadMessage.StopPartitionSessionRequest
472
):
473
- partition = self._partition_sessions.get(message.partition_session_id)
474
- if partition is None:
+ try:
+ partition = self._partition_sessions.get(message.partition_session_id)
475
+ except KeyError:
476
# may if receive stop partition with graceful=false after response on stop partition
477
# with graceful=true and remove partition from internal dictionary
478
return
0 commit comments