forked from yugabyte/yugabyte-db
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[yugabyte#7798] DocDB: Only the YB-Master Leader should refresh the t…
…ablespace info in memory Summary: Today the Catalog Manager spins up a background task that reads the PG sys catalog tables periodically and builds the table->tablespace and tablespace->replication_info maps in memory. This information is used during load balancing and to place the replicas of a table when it is created. Thus, only the master leader really needs to run this background task. This patch causes the tablespace refresh task to be started up by the CatalogManagerBackgroundTask that invokes the load balancer. This guarantees that the background task will run only on the leader. Additionally the TestTablespaceProperties was timing out on clang_asan, gcc-release, gcc-debug build types. Fixed the test by increasing timeouts for some build types. Added logs to the test to facilitate easy debugging. Test Plan: ybd --scb --sj --java-test org.yb.pgsql.TestTablespaceProperties Reviewers: rahuldesirazu Reviewed By: rahuldesirazu Subscribers: zyu, kannan, yql Differential Revision: https://phabricator.dev.yugabyte.com/D11133
- Loading branch information
Showing
5 changed files
with
116 additions
and
60 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