cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

stability: OOM when adding a million rows via a single node

Open knz opened this issue 10 years ago • 4 comments

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?

knz avatar Mar 28 '16 09:03 knz

  • 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

yznming avatar Mar 28 '16 10:03 yznming

Thanks!

knz avatar Mar 28 '16 10:03 knz

@yznming have you tried this again since the original report?

tamird avatar Jul 02 '16 01:07 tamird

Closing due to inactivity; we've made a lot of improvements since 2016.

bdarnell avatar Apr 12 '18 22:04 bdarnell