cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

acceptance/cluster: `Container.{Pause,Stop}` are unused/untested

Open petermattis opened this issue 10 years ago • 6 comments

We should either use or remove.

petermattis avatar Mar 26 '16 20:03 petermattis

@petermattis , I could remove this. : )

a6802739 avatar Jul 18 '16 12:07 a6802739

@a6802739 That's easy. :) We should probably be using them in acceptance tests.

petermattis avatar Jul 18 '16 12:07 petermattis

@petermattis , ok. I also could add some tests for it. : )

a6802739 avatar Jul 19 '16 07:07 a6802739

@a6802739 Rather than adding tests for test infrastructure, can you add a new acceptance test which utilizes these methods? I'm not seeing a use for Container.Stop, but I can imagine a test which uses Container.Pause that is similar to acceptance/chaos_test.go but which pauses one of the nodes for a short time and then allows it to continue.

petermattis avatar Jul 19 '16 12:07 petermattis

I think it would be useful to have three versions of the chaos test: the current one that uses Container.Kill and Restart, one that does Stop and restart (the difference is that Stop tries to shut the container down cleanly), and one that does Pause and unpause.

bdarnell avatar Jul 19 '16 16:07 bdarnell

@petermattis @bdarnell , got it.

a6802739 avatar Jul 20 '16 02:07 a6802739