'SHOW TABLES' and similar commands results in error when run from in -console SQL Shell/SQL CLI #139512
Labels
branch-release-24.2
Used to mark GA and release blockers, technical advisories, and bugs for 24.2
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-support
Would prevent or help troubleshoot a customer escalation - bugs, missing observability/tooling, docs
P-1
Issues/test failures with a fix SLA of 1 month
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Describe the problem
Several reports of being unable to run
SHOW TABLES;
(and similar commands) across several clusters in the in-console SQL shell. We have observed this behavior in the SQL CLI as well. Testing so far has show that in-situ shell is not effected.Example error output:
Again, this doesn’t repro in the in-situ shell AFAICT.
To Reproduce
It seems like there are environmental aspects that need to be in place for the query to fail. Those are unknown as of yet, we do have live reproduction available internally per request.
On an affected cluster however:
SHOW DATABASES;
SHOW TABLES FROM <database>
*Note: Even on affected clusters, this won't always fail. Usually waiting at least 5 mins will cause it to start to fail.
Additional data / screenshots
The error seems to indicate that the batch timestamp is earlier than the GC threshold - given the timestamps provided that is true. However the anomaly is that the batch timestamp is also (in our testing's case) 2 days older than the current time. For example, in one test case, we were running the statement on the 18th, but the batch timestamp was from the 16th and the GC Replica Threshold was on the 18th.
If a node in your cluster encountered a fatal error, supply the contents of the
log directories (at minimum of the affected node(s), but preferably all nodes).
Environment:
known failures in:
Jira issue: CRDB-46693
The text was updated successfully, but these errors were encountered: