cockroach
cockroach copied to clipboard
stability: OOM when adding a million rows via a single node
Reported by @yznming on Gitter. Setup:
- 9 node cluster
- 100 client threads attempting to add a combined(?) 1000000 rows to a table
Open questions:
- what is the schema of the table?
- are the rows added via transactions?
- can you provide full server logs?
- Schema
CREATE TABLE core_result_0 (
id bigint,
core_hashcode bigint NOT NULL ,
statistics_id bigint NOT NULL ,
result_count bigint NOT NULL DEFAULT 0 ,
result_sum decimal(20,4) NOT NULL DEFAULT 0.0000::decimal,
result_min decimal(20,4) NOT NULL DEFAULT 0.0000::decimal,
result_max decimal(20,4) NOT NULL DEFAULT 0.0000::decimal,
create_time timestamp NOT NULL,
update_time timestamp NOT NULL,
PRIMARY KEY (id),
UNIQUE INDEX uk_core_hashcode (core_hashcode),
INDEX idx_count (result_count)
);
- The row is insert without BEGIN/END transaction block.
- Here is the logs log.tar.gz
Thanks!
@yznming have you tried this again since the original report?
Closing due to inactivity; we've made a lot of improvements since 2016.