Skip to content

Conversation

@dkropachev
Copy link
Collaborator

When metadata is refreshed for the first time node version information is not available.
But get_schema_parser needs it to pick correct parser class.

We need to make driver pull that info from the system.local when it is absent.

Fixes: #640

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • I added relevant tests for new features and bug fixes.
  • All commits compile, pass static checks and pass test.
  • PR description sums up the changes and reasons why they should be introduced.
  • I have provided docstrings for the public items that I want to introduce.
  • I have adjusted the documentation in ./docs/source/.
  • I added appropriate Fixes: annotations to PR description.

if server_version is None and dse_version is None:
local_query = QueryMessage(
query=maybe_add_timeout_to_query(
"SELECT * FROM system.local WHERE key='local'",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: do we need '*' here? Unsure, but I'm unsure if it matters much, or at all.

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.

Metadata.refresh can throw exception when connection belongs to the node that is not in the metadata

2 participants