-
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.
Browse files
Browse the repository at this point in the history
Summary: - Use the relcache file to store relation cache data, add ysql catalog version to detect (and clean up) old (no longer valid) files. - No longer preload catcache (only relcache) for backend connections except during initdb which makes heavy use of various relations and builtins. - No longer increment catalog version for inserts, only for updates/deletes. Since we don't do negative caching, inserts (e.g. from CREATE TABLE) do not invalidate the cache, only updates/deletes (e.g. ALTER or DROP TABLE). - Fix a cache refrence leak bug and clean up the logic for retry and cache-refresh due to catalog version mismatches. Test Plan: jenkins, TestPgCacheConsistency, sample apps with high number of connections: java -jar ./target/yb-sample-apps.jar --workload SqlInserts --nodes 127.0.0.1:5433 --num_threads_write 99 --num_threads_read 0 --num_unique_keys 1000000000 Reviewers: mikhail, robert Reviewed By: robert Subscribers: yql, bogdan Differential Revision: https://phabricator.dev.yugabyte.com/D6412
- Loading branch information
Showing
20 changed files
with
541 additions
and
322 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
Oops, something went wrong.