-
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
cli/dump: error while dumping uuid columns #32409
Comments
cc @mjibson @rolandcrosby this is an extension of #28948 |
worth checking if |
Are there any temporary workarounds to this? We're going to need to have some way to backup data. |
Hi @markharding, I just tested this on CockroachDB 2.1.1 and it seemed to work fine. See below for my reproduction steps. I believe your client version may be from the 2.0 series, which may lead to issues when running client-side commands like
If the client and server aren't both from the 2.1 series, please try upgrading and let me know if you still run into this issue. Input files (in the node's external I/O directory)create.sqlCREATE TABLE notifications (
uuid UUID NOT NULL DEFAULT gen_random_uuid(),
to_guid INT NOT NULL,
from_guid INT NULL,
created_timestamp TIMESTAMP NULL DEFAULT now():::TIMESTAMP,
read_timestamp TIMESTAMP NULL,
notification_type STRING(20) NULL,
data JSONB NULL,
entity_guid STRING NULL,
CONSTRAINT "primary" PRIMARY KEY (uuid ASC),
INDEX to_guid_idx (to_guid ASC),
FAMILY "primary" (uuid, to_guid, from_guid, created_timestamp, read_timestamp, notification_type, data, entity_guid)
); input.tsv3905b4f0-8d91-4ffd-9067-6dd67bf55327 441939549992521728 100000000000000063 2018-11-15 14:48:26.911028+00:00 NULL comment {"description": "test comment here"} 887249682567274501 Attempted reproduction stepsFirst, I imported the data and schema you provided:
Then, I ran
|
Aha! You are correct, the cockroachdb-client-secure pod was not updated. Confirmed v2.1.1 resolves this. |
Hi, I still get this problem when running any version after v2.1.0 (where both the server and client use the same version). Environment To reproduce
|
@BenChand please file a new issue |
Describe the problem
SQL Dump fails when using UUIDs
To Reproduce
./cockroach dump minds notifications --certs-dir=/cockroach-certs --host=cockroachdb-public > dump.sql
outputs:
command terminated with exit code 1
Expected behavior
Dump should succeed as with other tables.
Additional data / screenshots
Environment:
Additional context
What was the impact?
Unable to do a dump of table
Nothing in the error logs besides the output paster above
Attempted to delete the row for
3905b4f0-8d91-4ffd-9067-6dd67bf55327
, issues persists. dump.sql output:The text was updated successfully, but these errors were encountered: