roachtest: fix copy/bank for new range sizes#45451
Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom Feb 26, 2020
Merged
roachtest: fix copy/bank for new range sizes#45451craig[bot] merged 1 commit intocockroachdb:masterfrom
craig[bot] merged 1 commit intocockroachdb:masterfrom
Conversation
Member
9c947a4 to
78ad2eb
Compare
…e size In cockroachdb#45209 we increased the default range size. The test used hard-codes values. This commit looks up the expected values from the database. Fixes cockroachdb#37822. Release note: None
78ad2eb to
03c3a7c
Compare
nvb
approved these changes
Feb 26, 2020
Contributor
Author
|
TFTR! bors r=nvanbenschoten |
Contributor
Build succeeded |
ajwerner
pushed a commit
to ajwerner/cockroach
that referenced
this pull request
Mar 2, 2020
In cockroachdb#45451 we made the expected number of ranges reflect the current zone config. The problem with this change is that it used a factor of 2x the minimum range size to estimate the upper bound on number of ranges. There was no principled reason to make this assumption. We should instead just assert that the ranges are larger than the minimum range size on average. Release note: None
craig bot
pushed a commit
that referenced
this pull request
Mar 2, 2020
45253: storage: fix bug in calcRangeCounter r=andreimatei a=tbg Found by @andreimatei in #39936 (review) Release note (bug fix): a bug in the range metrics collection could fail to correctly identify a range that had lost quorum, causing it to not be reported via the "unavailable ranges" metric. This is now fixed. 45534: coldata: change Batch interface to operate with int length r=yuzefovich a=yuzefovich This commit changes Batch interface to operate with `int` length because it unifies the way we store batches - now we will have a single implementation `MemBatch` (with an exception for `coldata.ZeroBatch`). This allows us to remove `bufferedBatch`. Release note: None 45554: kv: add a comment r=andreimatei a=andreimatei Explain the surprising fact that we're telling then inflight-writes btree to not reuse its nodes. Release note: None 45580: storage: improve "range unavailable" log message r=nvanbenschoten a=tbg I've had to look at this message on users clusters recently and I found that it could be more actionable: - adjusted the wording to steer enterprise users towards enterprise support - print the range descriptor - print which replicas we think are live - log this message as an error instead of a warning (this message is always a serious problem that demands immediate attention). Release note (general change): Improved a debug message that is printed when a range is unavailable (i.e. unable to accept writes). 45585: roachtest: fix copy/bank roachtest to deal with smaller ranges r=ajwerner a=ajwerner In #45451 we made the expected number of ranges reflect the current zone config. The problem with this change is that it used a factor of 2x the minimum range size to estimate the upper bound on number of ranges. There was no principled reason to make this assumption. We should instead just assert that the ranges are larger than the minimum range size on average. Release note: None Co-authored-by: Tobias Schottdorf <tobias.schottdorf@gmail.com> Co-authored-by: Yahor Yuzefovich <yahor@cockroachlabs.com> Co-authored-by: Andrei Matei <andrei@cockroachlabs.com> Co-authored-by: Andrew Werner <ajwerner@cockroachlabs.com>
ajwerner
pushed a commit
to ajwerner/cockroach
that referenced
this pull request
Mar 5, 2020
In 19.2 we changed the name of the column from SHOW ZONE CONFIGURATION from `config_sql` to `raw_config_sql`. I relied on this column name in cockroachdb#45451. This change updates the test to fall back to the old defaults if the column does not exist. Fixes cockroachdb#45489. Release note: None
craig bot
pushed a commit
that referenced
this pull request
Mar 5, 2020
45712: sql: prevent arbitrary writes to system.comments r=RichardJCai a=knz Fixes #45707. Previously, the GRANT, UPDATE, DELETE and INSERT privileges were granted to `public`, i.e. everyone, on `system.comments`. This was unintended - only users with permissions on an object should be able to modify that object's comments. This patch fixes it. Release note (security update): Any user could previously modify any database/table/view/index comment via direct SQL updates to `system.comments`. This was unintended and a form of privilege escalation, and is now prevented. The privileges required for the COMMENT statement and `pg_description`, `col_description()`, `obj_description()` and `shobj_description()` are operating as in PostgreSQL and unaffected by this change: all users can *view* any comments on any object (bypassing other privileges), but modifying comments require write privilege on the target object. 45729: roachtest: fix copy/bank roachtest on 19.1 r=nvanbenschoten a=ajwerner In 19.2 we changed the name of the column from SHOW ZONE CONFIGURATION from `config_sql` to `raw_config_sql`. I relied on this column name in #45451. This change updates the test to fall back to the old defaults if the column does not exist. Fixes #45489. Release note: None Co-authored-by: Raphael 'kena' Poss <knz@thaumogen.net> Co-authored-by: Andrew Werner <ajwerner@cockroachlabs.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In #45209 we increased the default range size. The test used hard-codes values.
This commit looks up the expected values from the database.
Fixes #37822.
Release note: None