-
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
sentry: txn.go:781: deadline below read timestamp is nonsensical; txn has would have no chance to commit. Deadline: 1667084312.596627533,0. Read timestamp: 1667084452.539633676,2 Previous Deadline: <nil>. (1)... #90923
Closed
Comments
cockroach-teamcity
added
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-sentry
Originated from an in-the-wild panic report.
labels
Oct 29, 2022
Merged
1 task
craig bot
pushed a commit
that referenced
this issue
Nov 8, 2022
90964: streamingccl: avoid passing `evalCtx`, `txn` as parameters to ingestion & replication funcs r=ZhouXing19 a=ZhouXing19 This PR is part of the effort to eliminate usages of `eval.Context.Txn`. It moves 1. the definition of `StreamIngestionManager` and `ReplicationStreamManager` under eval; 2. the implementation of `StreamIngestionManager` and `ReplicationStreamManager` via `sql.planner`. The core changes are ``` // GetReplicationStreamManager returns a ReplicationStreamManager. func (p *planner) GetReplicationStreamManager( ctx context.Context, ) (eval.ReplicationStreamManager, error) { return streaming.GetReplicationStreamManager(ctx, p.EvalContext(), p.Txn()) } // GetStreamIngestManager returns a StreamIngestManager. func (p *planner) GetStreamIngestManager(ctx context.Context) (eval.StreamIngestManager, error) { return streaming.GetStreamIngestManager(ctx, p.EvalContext(), p.Txn()) } ``` so that the functions under these 2 interfaces run upon `eval.Context` and `kv.Txn` from the `sql.planner`. Follow-up: - [ ] Pass internal executor from planner too, rather than using `register.ex`. informs #90923 91249: acceptance: deflake `TestDockerCLI/test_txn_prompt` r=rafiss a=renatolabs That test would sometimes fail because of the semantics of `expect` and `send` when the expected string was previously written using `send`. When `expect` is called, the buffer looked at includes content previously sent using `send`. This means that if one runs `send "foo"; expect foo`, the `expect` call will match instataneously even if the program's output after the send does not contain `foo`. In the case of the test fixed here, we are supposed to expect for the new prompt to be printed after setting it with `\set prompt1`. In order to properly check whether the prompt changed, this PR changes the prompt `expect` call to use a regular expression that matches the new prompt only if it sits in the beginning of a line. Prior to this commit, since the `expect` call would return immediately, there was a chance the `send "SET DATABASE"` command could run before the cockroach CLI had the chance to print the new prompt, leading to the following error: ``` abcdefaultdbdef \set prompt1 woo SET database woo -> .221103 18:13:35.539667600 EXPECT TEST: TIMEOUT WAITING FOR " -> " non-zero exit code: 1 ``` Epic: None Release note: None 91401: spanconfigsqltranslator: add sqlutil.InternalExecutor to SQLTranslator r=arulajmani a=ZhouXing19 This commit is part of the effort of having an internal executor better bound to its outer txn if there's one. The next step after this commit is to replace the executor used in `s.ptsProvider.GetState()` in `SQLTranslator.Translate()` to the one hanging off `SQLTranslator`. Informs: #91004 Release note: None 91423: roachpb: fix bug when logging lease in NLE r=ajwerner a=ajwerner We were logging `lease holder unknown` when the deprecated field was not populated. Epic: None Release note: None 91436: multitenant: add admin function `RangeIterator failed to seek` test cases r=rafiss a=ecwall refs #91434 This change adds test cases for admin functions (see #91434) that fail because of a `RangeIterator failed to seek` error once the multitenant check is bypassed. This needs to be addressed before those admin functions can be supported for secondary tenants. Release note: None 91508: logictest: fix flake in fk due to sequence non-determinism r=ajwerner a=ajwerner See [here](https://teamcity.cockroachdb.com/buildConfiguration/Cockroach_BazelEssentialCi/7392167?showRootCauses=false&expandBuildChangesSection=true&expandBuildProblemsSection=true&expandBuildTestsSection=true). This patch stops showing the sequence column while still relying on its ordering properties. Epic: None Release note: None 91515: kvserver: return DeprecatedLeaseHolder field in NLHEs r=arulajmani a=arulajmani v22.1 binaries assume that the leaseholder is unknown when logging NLHE errors if the (Deprecated)LeaseHolder field is unset -- regardless of if the Lease is set or not. We broke this logging in 0402f47 (for mixed version clusters) when we stopped shipping back leaseholder information (in favour of only shipping lease information) on NLHEs. This patch fixes this by populating the (Deprecated)LeaseHolder field when constructing NLHEs. Release note: None Co-authored-by: Jane Xing <[email protected]> Co-authored-by: Renato Costa <[email protected]> Co-authored-by: Andrew Werner <[email protected]> Co-authored-by: Evan Wall <[email protected]> Co-authored-by: Arul Ajmani <[email protected]>
dup of #76727 |
exalate-issue-sync
bot
changed the title
sentry: txn.go:781: deadline below read timestamp is nonsensical; txn has would have no chance to commit. Deadline: 1667084312.596627533,0. Read timestamp: 1667084452.539633676,2 Previous Deadline: <nil>.
(1)...
sentry: txn.go:781: deadline below read timestamp is nonsensical; txn has would have no chance to commit. Deadline: 1667084312.596627533,0. Read timestamp: 1667084452.539633676,2 Previous Deadline: <nil>. (1)...
Nov 16, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue was autofiled by Sentry. It represents a crash or reported error on a live cluster with telemetry enabled.
Sentry link: https://sentry.io/organizations/cockroach-labs/issues/3705990803/?referrer=webhooks_plugin
Panic message:
Stacktrace (expand for inline code snippets):
cockroach/pkg/kv/txn.go
Lines 780 to 782 in 5c55010
cockroach/pkg/sql/catalog/descs/leased_descriptors.go
Lines 216 to 218 in 5c55010
cockroach/pkg/sql/catalog/descs/leased_descriptors.go
Lines 182 to 184 in 5c55010
cockroach/pkg/sql/catalog/descs/leased_descriptors.go
Lines 111 to 113 in 5c55010
cockroach/pkg/sql/catalog/descs/descriptor.go
Lines 199 to 201 in 5c55010
cockroach/pkg/sql/catalog/descs/database.go
Lines 62 to 64 in 5c55010
cockroach/pkg/sql/catalog/descs/database.go
Lines 44 to 46 in 5c55010
cockroach/pkg/sql/catalog/descs/object.go
Lines 130 to 132 in 5c55010
cockroach/pkg/sql/catalog/descs/object.go
Lines 60 to 62 in 5c55010
cockroach/pkg/sql/catalog/descs/object.go
Lines 35 to 37 in 5c55010
cockroach/pkg/sql/resolver.go
Lines 189 to 191 in 5c55010
cockroach/pkg/sql/catalog/resolver/resolver.go
Lines 417 to 419 in 5c55010
cockroach/pkg/sql/catalog/resolver/resolver.go
Lines 183 to 185 in 5c55010
cockroach/pkg/sql/catalog/resolver/resolver.go
Lines 120 to 122 in 5c55010
cockroach/pkg/sql/opt_catalog.go
Lines 205 to 207 in 5c55010
cockroach/pkg/sql/opt/optbuilder/util.go
Lines 617 to 619 in 5c55010
cockroach/pkg/sql/opt/optbuilder/util.go
Lines 582 to 584 in 5c55010
cockroach/pkg/sql/opt/optbuilder/util.go
Lines 542 to 544 in 5c55010
cockroach/pkg/sql/opt/optbuilder/update.go
Lines 76 to 78 in 5c55010
cockroach/pkg/sql/opt/optbuilder/builder.go
Lines 297 to 299 in 5c55010
cockroach/pkg/sql/opt/optbuilder/with.go
Lines 110 to 112 in 5c55010
cockroach/pkg/sql/opt/optbuilder/builder.go
Lines 296 to 298 in 5c55010
cockroach/pkg/sql/opt/optbuilder/builder.go
Lines 240 to 242 in 5c55010
cockroach/pkg/sql/opt/optbuilder/builder.go
Lines 214 to 216 in 5c55010
cockroach/pkg/sql/plan_opt.go
Lines 379 to 381 in 5c55010
cockroach/pkg/sql/plan_opt.go
Lines 122 to 124 in 5c55010
cockroach/pkg/sql/conn_executor_prepare.go
Lines 286 to 288 in 5c55010
cockroach/pkg/sql/conn_executor_prepare.go
Lines 219 to 221 in 5c55010
cockroach/pkg/sql/conn_executor_prepare.go
Lines 225 to 227 in 5c55010
cockroach/pkg/sql/conn_executor_prepare.go
Lines 110 to 112 in 5c55010
cockroach/pkg/sql/conn_executor_prepare.go
Lines 52 to 54 in 5c55010
cockroach/pkg/sql/conn_executor.go
Lines 1811 to 1813 in 5c55010
v21.2.16
Jira issue: CRDB-21013
The text was updated successfully, but these errors were encountered: