-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 2.6] [#9898] docdb: Fix queries on system.partitions when u…
…nable to resolve some addresses Summary: Fixing two issues: 1. YQL system.partitions vtable performs host name resolution to determine the replica addresses. If this resolution fails, then we fail to create the vtable and return the dns resolution error. Fixing this by only including hosts that we are able to resolve in the `replica_addresses` column of `system.partitions`, and logging a warning in case we cannot. 2. Fixing issue where IsMultiMaster would incorrectly return false due to being unable to resolve one of the master addresses in `full_master_server_addrs[0]`. Fixed by parsing `full_master_addrs[0]` earlier and returning true if we have multiple addresses there, and only fallback to resolving if there is only one address and it may resolve to multiple endpoints. Original commit / diff : e796408 / D13254 Test Plan: ``` ybd --cxx_test cql-test --gtest_filter CqlThreeMastersTest.HostnameResolutionFailureInYqlPartitionsTable ybd --cxx_test client-test --gtest_filter ClientTestWithThreeMasters.IsMultiMasterWithFailingHostnameResolution ``` Reviewers: bogdan, sergei Reviewed By: sergei Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D13350
- Loading branch information
Showing
7 changed files
with
166 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters