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.
This change updates Omicron from CockroachDB v21.1.10 to v21.2.9. Fixes #980, which should unblock #955. There are a few pieces:
has_omicron_schema
as mentioned here. From @mgartner's reply, I gather that we should always expect the undefined database error for this case now, and that does appear to be true.Is there anything else we need to do before updating CockroachDB used by Omicron?
Then there's this last bit. In #980 @bnaecker mentioned:
This makes me a little nervous. I did some cursory digging, didn't find an issue, and I'm still thinking about how best to go ahead with this.
First of all, I think
/tmp
here is probably specific to @bnaecker's system (and probably the default behavior). I don't see any omicron-related files in there at all on my system. That's probably because I setTMPDIR=/dangerzone/omicron_tmp
in my environment.As far as I know, what goes in there during a clean
cargo test
is:On success, I believe these should all be cleaned up -- there should normally be nothing left over. We've definitely had bugs where things forgot to clean up. On failures, this is all left around.
So I looked at the seed directory. After this change, mine is 2.71 MiB:
In other workspaces I have lying around (prior to this change), it's usually under 1 MiB. But that's small enough that I can't imagine it's filling up your
/tmp
.Another possibility is that CockroachDB itself is using more memory (which comes from the same pool as /tmp, and so I believe could shrink the total size of /tmp) -- but again, that should get cleaned up after a successful run.
My inclination is to proceed with this change provided it passes CI, then separately check that we're cleaning up $TMPDIR properly after test runs. @bnaecker, I'm also happy to help dig into the /tmp problem when you have time. Let me know if you think it should block this, though.