Skip to content

RavenDB-27141 Catch NoLeaderException by type and release 7.2.6.post1 - #24

Merged
poissoncorp merged 1 commit into
ravendb:v7.2from
poissoncorp:RavenDB-27141-drop-noleader-fallback
Sep 17, 2026
Merged

poissoncorp merged 1 commit into
ravendb:v7.2from
poissoncorp:RavenDB-27141-drop-noleader-fallback

Conversation

@poissoncorp

Copy link
Copy Markdown
Contributor

Client 7.2.6.post1 types the server's NoLeaderException, so the string match that stood in for it is gone.

except (DatabaseDoesNotExistException, NoLeaderException):
    pass  # already gone, or the cluster has no leader right now

Before, the second except RavenException clause was the only branch that could ever fire, because the client mapped the exception under a name the server never sends.

The client pin moves to ravendb~=7.2.6.post1, which is what makes the typed catch reliable. Package version goes to 7.2.6.post1.

71 tests, all passing against client 7.2.6.post1.

Client 7.2.6.post1 maps the server's NoLeaderException correctly, so the text fallback that stood in for it can go.
@poissoncorp
poissoncorp merged commit 3233084 into ravendb:v7.2 Sep 17, 2026
7 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant