-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
61484: lease: deal with race when concurrent acquisition races with purge r=postamar a=ajwerner We had a race that used to be mitigated by the fact that we would always mark dropped descriptors as taken offline. In general this saved us in the case the descriptor was being dropped. If the descriptor was not being dropped then generally schema changes would proceed because they would avoid leasing and then subsequent updates to the descriptor would not hit the race. This simple mechanism allows us to ensure that we drop versions of a descriptor we know not to be the newest. The behavior from #59375 exposed this bug. Prior to that change, we would have marked the table as offline and thus always would have released it. Release justification: bug fixes and low-risk updates to new functionality Release note (bug fix): Fixed a bug where sometimes when a descriptor is dropped and there is concurrent use, that descriptor's lease is not released. 61579: sql: only qualify sequences with database names if sequence is in a different database r=the-ericwang35 a=the-ericwang35 Fixes #58783. Previously, when we were converting sequence IDs back into names, we were fully qualifying them with their database and schema. This differs from Postgres, which does not include database qualification since cross database references are disallowed. This resulted in `pk_and_sequence_for` calls in the ruby/rails `activerecord-cockroachdb-adapter` being unable to grab the correct sequence, causing roachtests to fail (see [here](https://apidock.com/rails/v6.0.0/ActiveRecord/ConnectionAdapters/PostgreSQL/SchemaStatements/pk_and_sequence_for)). This patch changes the sequence decoding to only include the database name if the sequence does not live in the current database. Ran the failing tests locally using roachprod to verify that they no longer fail. Release justification: bug fix for new functionality Release note: None 61622: nightly build: add missing license files r=jlinder a=rail In #60007 we included the `licenses` directory to the release docker images, but forgot to reflect the change to the nightly docker builds. This patch fixes the missing directory issue by copying all needed files under the `build/deploy` directory. Release justification: non-production code changes Release note: None Co-authored-by: Andrew Werner <[email protected]> Co-authored-by: Eric Wang <[email protected]> Co-authored-by: Rail Aliiev <[email protected]>
- Loading branch information
Showing
13 changed files
with
195 additions
and
58 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.