mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-3.11' into trunk
This commit is contained in:
commit
6e42dd215c
|
|
@ -119,6 +119,7 @@
|
|||
|
||||
|
||||
3.11.1
|
||||
* Fix cassandra-stress hang issues when an error during cluster connection happens (CASSANDRA-12938)
|
||||
* Better bootstrap failure message when blocked by (potential) range movement (CASSANDRA-13744)
|
||||
* "ignore" option is ignored in sstableloader (CASSANDRA-13721)
|
||||
* Deadlock in AbstractCommitLogSegmentManager (CASSANDRA-13652)
|
||||
|
|
|
|||
|
|
@ -418,23 +418,27 @@ public class StressAction implements Runnable
|
|||
{
|
||||
SimpleClient sclient = null;
|
||||
JavaDriverClient jclient = null;
|
||||
|
||||
|
||||
final ConnectionAPI clientType = settings.mode.api;
|
||||
switch (clientType)
|
||||
{
|
||||
case JAVA_DRIVER_NATIVE:
|
||||
jclient = settings.getJavaDriverClient();
|
||||
break;
|
||||
case SIMPLE_NATIVE:
|
||||
sclient = settings.getSimpleNativeClient();
|
||||
break;
|
||||
default:
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
|
||||
// synchronize the start of all the consumer threads
|
||||
start.countDown();
|
||||
try
|
||||
{
|
||||
switch (clientType)
|
||||
{
|
||||
case JAVA_DRIVER_NATIVE:
|
||||
jclient = settings.getJavaDriverClient();
|
||||
break;
|
||||
case SIMPLE_NATIVE:
|
||||
sclient = settings.getSimpleNativeClient();
|
||||
break;
|
||||
default:
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
// synchronize the start of all the consumer threads
|
||||
start.countDown();
|
||||
}
|
||||
|
||||
releaseConsumers.await();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue