-
Notifications
You must be signed in to change notification settings - Fork 4k
roachtest: disable encryption on tests that can't handle it. #27087
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
roachtest: disable encryption on tests that can't handle it. #27087
Conversation
|
I tried one full run of This change fixes I retried a The end goal is to make sure |
28b06b6 to
50bf70e
Compare
|
ping? |
tbg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you not skip these tests when the encrypt flag is set? That seems better than running them without encryption, which is kind of the opposite of what the user wanted.
|
Not trivially. We debated for a while about how to use the |
|
Lgtm
On Wed, Jul 4, 2018, 7:01 PM marc ***@***.***> wrote:
Not trivially. We debated for a while about how to use the --encrypt flag
for roachtest. We ended up settling for passing the flag through to
roachprod unless it's overwritten in individual tests.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#27087 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE135Bvhvuy5E9QaqKTkwfuilzDjNVXlks5uDPT7gaJpZM4U98lL>
.
--
…-- Tobias
|
|
bors r+ |
|
👎 Rejected by code reviews |
Two cases make encryption always fail: - old versions (<= 2.0) - uses of debug commands that open the rocksdb instance (needs encryption flags) Release note: None
50bf70e to
51bed48
Compare
|
bors r+ |
27075: storage: use engine for os-level operations. r=mberhault a=mberhault This is important when encryption is enabled as we need to make sure we handle file metadata properly. While `os.Remove` will leave cruft behind, `os.Link` won't copy the file encryption settings from the original and will therefore make it unreadable. This fixes `RESTORE` which writes file to local disk using local encryption settings then ingests them. The link bypassed the rocksdb Env leaving the ingested file without any encryption settings attached (aka: plaintext). Release note: None 27087: roachtest: disable encryption on tests that can't handle it. r=mberhault a=mberhault Two cases make encryption always fail: - old versions (<= 2.0) - uses of debug commands that open the rocksdb instance (needs encryption flags) Release note: None Co-authored-by: marc <marc@cockroachlabs.com>
Build succeeded |
Two cases make encryption always fail:
encryption flags)
Release note: None