Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blobs: Reduce file size of benchmark tests #43208

Merged
merged 1 commit into from
Dec 17, 2019

Conversation

g3orgia
Copy link
Contributor

@g3orgia g3orgia commented Dec 16, 2019

As titled.

Release note: None

@g3orgia g3orgia requested a review from ajwerner December 16, 2019 22:10
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@ajwerner ajwerner left a comment

Choose a reason for hiding this comment

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

129k is a little 🤔 but sure.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @ajwerner)


pkg/blobs/bench_test.go, line 71 at r1 (raw file):

		remoteExternalDir: remoteExternalDir,
		blobClient:        blobClient,
		fileSize:          1 << 30, // 1 GB

How about put these both into a const and comment that to test on actually large files change the const and that it was made small for CI? I’m also cool with just skipping the test. The benchmark is less interesting when run in small files. With this change we’ll keep running it. Still running it is good too because it prevents rot

Copy link
Contributor Author

@g3orgia g3orgia left a comment

Choose a reason for hiding this comment

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

Haha I wanted to have at least 2 chunks and one chunk is 128K.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained


pkg/blobs/bench_test.go, line 71 at r1 (raw file):

Previously, ajwerner wrote…

How about put these both into a const and comment that to test on actually large files change the const and that it was made small for CI? I’m also cool with just skipping the test. The benchmark is less interesting when run in small files. With this change we’ll keep running it. Still running it is good too because it prevents rot

Okiee, will extract it out into a constant and add a comment.

@g3orgia
Copy link
Contributor Author

g3orgia commented Dec 17, 2019

bors r+

craig bot pushed a commit that referenced this pull request Dec 17, 2019
43023: sql: acceptance test and test cleanup for TimeTZ r=otan a=otan

Resolves #26097.

This PR completes the TimeTZ saga!

* Added Java unit tests
* Removed some tests from the test whitelist
* Added postgres regress suite.

Fix parse error to use New instead of Wrap, as the Wrap actually
confuses the error message more.

Release note (sql change): This PR (along with a string of past PRs)
allows the usage of TimeTZ throughout cockroach.

43208: blobs: Reduce file size of benchmark tests r=g3orgia a=g3orgia

As titled.

Release note: None

43221: backupccl: change the error code for "file already exists" errors r=andreimatei a=andreimatei

The backup code used to use a class 58 error code ("system error") for
situations where a backup target already exists - DuplicateFile. Class
58 is the wrong one, particularly since we've started using 58 errors to
represent errors about the state of the cluster (range unavailable,
dropped connections). So clients should treat 58 errors as retriable
(and for example the scaledata tests do).  This patch switches to a new
code in "Class 42 - Syntax or Access Rule Violation".

It's hard to imagine that Postgres returns the 58 code for anything
related to user input.

Release note (sql change): The error code for backups which would
overwrite files changed from class 58 ("system") to class 42 ("Syntax or
Access Rule Violation").

43240: storage/engine: small logging fixes r=petermattis a=petermattis

Change `Pebble.GetCompactionStats` to be prefixed with a newline to
match the formatting of RocksDB. This ensures that the compaction stats
display will not contain the log prefix which was misaligning the table
header.

Adding a missing sort to `Pebble.GetSSTables`. This was causing the
sstable summary log message to be much busier than for RocksDB because
`SSTableInfos.String` expects the infos to be sorted.

Move the formatting of `estimated_pending_compaction_bytes: x` into
`RocksDB.GetCompactionStats`. The Pebble compaction stats already
included this and it is useful to see the estimated pending compaction
bytes whenever the compaction stats are output.

Release note: None

Co-authored-by: Oliver Tan <[email protected]>
Co-authored-by: Georgia Hong <[email protected]>
Co-authored-by: Andrei Matei <[email protected]>
Co-authored-by: Peter Mattis <[email protected]>
@craig
Copy link
Contributor

craig bot commented Dec 17, 2019

Build succeeded

@craig craig bot merged commit 710fa23 into cockroachdb:master Dec 17, 2019
@g3orgia g3orgia deleted the skip-blob-bench branch December 17, 2019 17:55
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.

3 participants