-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: assign txn deadline from extended, not initial, lease #24041
Labels
A-schema-changes
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
Comments
tbg
added
the
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
label
Mar 19, 2018
m-schneider
pushed a commit
to m-schneider/cockroach
that referenced
this issue
Mar 20, 2018
Before the drop test would fail trying to delete a large number of rows in one transaction due to cockroachdb#24041. Now we split the deletes into multiple statements. We're also checking disk space to make sure it is cleared after all of the tpcc tables are dropped. Release note: None
Yeah, this is my understanding of the issue as well. |
m-schneider
pushed a commit
to m-schneider/cockroach
that referenced
this issue
Mar 22, 2018
Before the drop test would fail trying to delete a large number of rows in one transaction due to cockroachdb#24041. Now we split the deletes into multiple statements. We're also checking disk space to make sure it is cleared after all of the tpcc tables are dropped. Release note: None
m-schneider
pushed a commit
to m-schneider/cockroach
that referenced
this issue
Mar 22, 2018
Before the drop test would fail trying to delete a large number of rows in one transaction due to cockroachdb#24041. Now we split the deletes into multiple statements. We're also checking disk space to make sure it is cleared after all of the tpcc tables are dropped. Release note: None
m-schneider
pushed a commit
to m-schneider/cockroach
that referenced
this issue
Mar 26, 2018
Before the drop test would fail trying to delete a large number of rows in one transaction due to cockroachdb#24041. Now we split the deletes into multiple statements. We're also checking disk space to make sure it is cleared after all of the tpcc tables are dropped. Release note: None
vivekmenezes
added
A-schema-changes
and removed
A-schema-descriptors
Relating to SQL table/db descriptor handling.
A-bulkio-schema-changes
labels
Jul 24, 2018
Also see #18684 for a larger tracking bug for deadline issues. |
vivekmenezes
added a commit
to vivekmenezes/cockroach
that referenced
this issue
Aug 13, 2018
The change: 1. Sets the expiration of an epoch lease to a very large expiration of 20 years. This should really be hlc.MaxTimestamp but is set to a very high number because expiration is part of the primary key in the lease table, and there are various conditions under which two leases can be acquired for the same table simulatenously resulting in one of them failing because of a uniqueness constraint violation. 2. The lease expiration of an epoch based lease is the expiration of the epoch = the last time the epoch was seen + LeaseManager.leaseDuration. related to cockroachdb#23978 related to cockroachdb#18684 related to cockroachdb#24041 Release note: None
I'm going to close this in favor of #18684 which is the tracking bug for txn deadlines and improvements thereof. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-schema-changes
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
The drop roachtest currently sporadically fails on this line with a
As I understand, this is due to the following:
Either way, what should happen is that the sql subsystem realizes that there is a long-running transaction holding on to that lease, and extends the lease appropriately, while allowing the transaction to use the extended lease's deadline when it commits.
This is bound to be a relatively common issue with long-running transactions.
See also #23982 (comment)
cc @benesch for fact checking
The text was updated successfully, but these errors were encountered: