cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

stability:most nodes died after running two days

Open a6802739 opened this issue 10 years ago • 1 comments

I'm running a insert test on my cockroachdb cluster.

here is my test case. binary version beta-20160728

table schema

CREATE TABLE IF NOT EXISTS bank (
id int primary key,
name varchar(32),
weight float, 
height DECIMAL(20,8), 
deleted bool, 
create_time timestamp, 
delete_time timestamp, 
description varchar(300), 
content varchar(300))

insert statement one insert statement only insert one row.

600 golang goroutine to insert into different 25 nodes of my cluster.

here is my cluster info. total 25 nodes. on machine has 5 nodes and each node occupy one SSD. the network bandwidth is about 1GB/s. every machine has 96G physical memory.

here is cluster status info. 7f9f62a6ce2401a32a4311175a5b0a1b

a few problems:

  1. each node's replica number is not rebalanced.
  2. some node's memory usage is too high.

I put some error log from szwg-dba-sz-cr01.szwg01:26660:

E160812 16:19:10.743942 util/log/clog.go:1002  [config] file created at: 2016/08/12 16:19:10
E160812 16:19:10.743942 util/log/clog.go:1002  [config] running on machine: szwg-dba-sz-cr00
E160812 16:19:10.743942 util/log/clog.go:1002  [config] binary: CockroachDB beta-20160728 (linux amd64, built 2016/07/28 17:02:34, go1.6.3)
E160812 16:19:10.743942 util/log/clog.go:1002  [config] arguments: [/root/setup-cockroachdb//bin/cockroach start --insecure --port=26660 --store=/home/data1,attrs=ssd --join=10.199.138.45:26660,10.199.138.44:26660 --cache=5GB]
E160812 16:19:10.743942 util/log/clog.go:1002  line format: [IWEF]yymmdd hh:mm:ss.uuuuuu file:line msg
E160812 16:19:10.743942 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc8203a29c0 sqlTimestamp:{sec:63606586746 nsec:410351796 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1470989946.410349914,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160812 16:19:10.745939 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc82090e840 sqlTimestamp:{sec:63606586746 nsec:413894148 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1470989946.413892016,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160812 16:19:10.772135 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc82092e000 sqlTimestamp:{sec:63606586746 nsec:410648419 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1470989946.410646369,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160812 16:19:10.775157 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc8202240c0 sqlTimestamp:{sec:63606586746 nsec:409758284 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1470989946.409756518,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160812 16:19:10.788148 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc8203a2600 sqlTimestamp:{sec:63606586746 nsec:506915929 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1470989946.506913226,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160812 16:19:10.808435 storage/queue.go:594  [verify] range 4 no longer exists on store: range 4 was not found
E160812 16:19:10.809810 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc8203a26c0 sqlTimestamp:{sec:63606586746 nsec:509838190 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1470989946.509835739,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160812 16:19:10.809928 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc8206dee40 sqlTimestamp:{sec:63606586746 nsec:405695799 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1470989946.405692896,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160812 16:19:10.817695 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc82090f200 sqlTimestamp:{sec:63606586746 nsec:502054397 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1470989946.502052542,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160812 16:19:10.818086 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc8206dea80 sqlTimestamp:{sec:63606586746 nsec:537989340 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1470989946.537987190,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160812 16:19:10.834428 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc82090f440 sqlTimestamp:{sec:63606586746 nsec:406164255 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1470989946.406162068,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160812 16:19:10.835435 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schema...skipping...
Changers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc8206dea80 sqlTimestamp:{sec:63606623259 nsec:810831867 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1471026459.810830652,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160813 02:28:27.827203 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc8206de9c0 sqlTimestamp:{sec:63606623303 nsec:361873793 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1471026503.362105013,2}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160813 02:28:29.378315 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc8203a2840 sqlTimestamp:{sec:63606623259 nsec:805697489 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1471026459.805681968,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160813 02:28:35.617844 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc82090f200 sqlTimestamp:{sec:63606623308 nsec:11681409 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1471026508.011680063,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160813 02:28:36.045266 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc8206dea80 sqlTimestamp:{sec:63606623311 nsec:213905463 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1471026511.213904182,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160813 02:28:38.659774 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc8203a2840 sqlTimestamp:{sec:63606623311 nsec:195372712 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1471026511.195371434,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160813 02:28:40.057439 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc8206de9c0 sqlTimestamp:{sec:63606623309 nsec:194715039 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1471026509.195136539,2}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160813 02:28:44.959317 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc8207a0180 sqlTimestamp:{sec:63606623319 nsec:631782374 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1471026519.631780911,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160813 02:28:46.025730 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc82090f440 sqlTimestamp:{sec:63606623319 nsec:253777867 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1471026519.253776363,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160813 02:28:47.425837 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc8203a2840 sqlTimestamp:{sec:63606623321 nsec:353973897 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1471026521.353972663,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160813 02:28:47.469530 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc8206dea80 sqlTimestamp:{sec:63606623321 nsec:353515722 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1471026521.353514593,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160813 02:28:59.141854 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc82090f200 sqlTimestamp:{sec:63606623331 nsec:526154844 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1471026531.526153360,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining
E160813 02:29:02.002532 sql/executor.go:500  txnState not cleared while txn == nil: &{txn:<nil> State:Aborted retrying:false retryIntent:false autoRetry:true commitSeen:false schemaChangers:{curGroupNum:0 curStatementIdx:0 schemaChangers:[]} tr:0xc8207a0300 sqlTimestamp:{sec:63606623334 nsec:637053169 loc:0x272abe0}}, execOpt {AutoRetry:true AutoCommit:true MinInitialTimestamp:1471026534.637051980,0}, stmts INSERT INTO sbtest VALUES ($1, $2, $3, $4), remaining

a6802739 avatar Aug 14 '16 08:08 a6802739

Closing for age and lack of repro.

spencerkimball avatar Apr 02 '17 19:04 spencerkimball