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

storage/engine: fix pebbleExportToSst behavior on empty sstables #42599

Conversation

petermattis
Copy link
Collaborator

Fix pebbleExportToSst to return a nil sstable if the no records were
added. The previous behavior was a minor behavioral difference from the
C++ version of ExportToSst which caused
TestRandomKeyAndTimestampExport to be flaky when run on Pebble.

Release note: None

Fix `pebbleExportToSst` to return a `nil` sstable if the no records were
added. The previous behavior was a minor behavioral difference from the
C++ version of `ExportToSst` which caused
`TestRandomKeyAndTimestampExport` to be flaky when run on Pebble.

Release note: None
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@itsbilal itsbilal left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @ajkr and @sumeerbhola)

@petermattis
Copy link
Collaborator Author

TFTR!

bors r+

craig bot pushed a commit that referenced this pull request Nov 20, 2019
42599: storage/engine: fix pebbleExportToSst behavior on empty sstables r=petermattis a=petermattis

Fix `pebbleExportToSst` to return a `nil` sstable if the no records were
added. The previous behavior was a minor behavioral difference from the
C++ version of `ExportToSst` which caused
`TestRandomKeyAndTimestampExport` to be flaky when run on Pebble.

Release note: None

Co-authored-by: Peter Mattis <petermattis@gmail.com>
@craig
Copy link
Contributor

craig bot commented Nov 20, 2019

Build succeeded

@craig craig bot merged commit 8686721 into cockroachdb:master Nov 20, 2019
@petermattis petermattis deleted the pmattis/deflake-test-random-key-and-timestamp-export branch November 20, 2019 17:30
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