mirror of https://github.com/citusdata/citus.git
Fix flakyness by setting citus.next_shard_id
parent
a718ab0db4
commit
9257a27628
|
@ -313,9 +313,10 @@ INSERT INTO color(color_name) VALUES ('Blue');
|
||||||
\c - postgres - :master_port
|
\c - postgres - :master_port
|
||||||
SET search_path TO generated_identities;
|
SET search_path TO generated_identities;
|
||||||
SET client_min_messages to ERROR;
|
SET client_min_messages to ERROR;
|
||||||
|
SET citus.next_shard_id TO 1270000;
|
||||||
DROP TABLE Color;
|
DROP TABLE Color;
|
||||||
CREATE TABLE color (
|
CREATE TABLE color (
|
||||||
color_id BIGINT GENERATED ALWAYS AS IDENTITY UNIQUE,
|
color_id BIGINT GENERATED ALWAYS AS IDENTITY,
|
||||||
color_name VARCHAR NOT NULL
|
color_name VARCHAR NOT NULL
|
||||||
) USING columnar;
|
) USING columnar;
|
||||||
SELECT create_distributed_table('color', 'color_id');
|
SELECT create_distributed_table('color', 'color_id');
|
||||||
|
|
|
@ -313,6 +313,7 @@ INSERT INTO color(color_name) VALUES ('Blue');
|
||||||
\c - postgres - :master_port
|
\c - postgres - :master_port
|
||||||
SET search_path TO generated_identities;
|
SET search_path TO generated_identities;
|
||||||
SET client_min_messages to ERROR;
|
SET client_min_messages to ERROR;
|
||||||
|
SET citus.next_shard_id TO 12400000;
|
||||||
DROP TABLE Color;
|
DROP TABLE Color;
|
||||||
CREATE TABLE color (
|
CREATE TABLE color (
|
||||||
color_id BIGINT GENERATED ALWAYS AS IDENTITY UNIQUE,
|
color_id BIGINT GENERATED ALWAYS AS IDENTITY UNIQUE,
|
||||||
|
@ -359,7 +360,7 @@ ERROR: cannot insert a non-DEFAULT value into column "color_id"
|
||||||
DETAIL: Column "color_id" is an identity column defined as GENERATED ALWAYS.
|
DETAIL: Column "color_id" is an identity column defined as GENERATED ALWAYS.
|
||||||
HINT: Use OVERRIDING SYSTEM VALUE to override.
|
HINT: Use OVERRIDING SYSTEM VALUE to override.
|
||||||
INSERT INTO color(color_id, color_name) OVERRIDING SYSTEM VALUE VALUES (1, 'Red');
|
INSERT INTO color(color_id, color_name) OVERRIDING SYSTEM VALUE VALUES (1, 'Red');
|
||||||
ERROR: duplicate key value violates unique constraint "color_color_id_key_xxxxxx"
|
ERROR: duplicate key value violates unique constraint "color_color_id_key_12400000"
|
||||||
DETAIL: Key (color_id)=(1) already exists.
|
DETAIL: Key (color_id)=(1) already exists.
|
||||||
CONTEXT: while executing command on localhost:xxxxx
|
CONTEXT: while executing command on localhost:xxxxx
|
||||||
-- update null or custom value
|
-- update null or custom value
|
||||||
|
@ -388,7 +389,7 @@ ERROR: cannot insert a non-DEFAULT value into column "color_id"
|
||||||
DETAIL: Column "color_id" is an identity column defined as GENERATED ALWAYS.
|
DETAIL: Column "color_id" is an identity column defined as GENERATED ALWAYS.
|
||||||
HINT: Use OVERRIDING SYSTEM VALUE to override.
|
HINT: Use OVERRIDING SYSTEM VALUE to override.
|
||||||
INSERT INTO color(color_id, color_name) OVERRIDING SYSTEM VALUE VALUES (1, 'Red');
|
INSERT INTO color(color_id, color_name) OVERRIDING SYSTEM VALUE VALUES (1, 'Red');
|
||||||
ERROR: duplicate key value violates unique constraint "color_color_id_key_xxxxxx"
|
ERROR: duplicate key value violates unique constraint "color_color_id_key_12400000"
|
||||||
DETAIL: Key (color_id)=(1) already exists.
|
DETAIL: Key (color_id)=(1) already exists.
|
||||||
CONTEXT: while executing command on localhost:xxxxx
|
CONTEXT: while executing command on localhost:xxxxx
|
||||||
-- update null or custom value
|
-- update null or custom value
|
||||||
|
|
|
@ -179,6 +179,7 @@ INSERT INTO color(color_name) VALUES ('Blue');
|
||||||
\c - postgres - :master_port
|
\c - postgres - :master_port
|
||||||
SET search_path TO generated_identities;
|
SET search_path TO generated_identities;
|
||||||
SET client_min_messages to ERROR;
|
SET client_min_messages to ERROR;
|
||||||
|
SET citus.next_shard_id TO 12400000;
|
||||||
|
|
||||||
DROP TABLE Color;
|
DROP TABLE Color;
|
||||||
CREATE TABLE color (
|
CREATE TABLE color (
|
||||||
|
|
Loading…
Reference in New Issue