mirror of https://github.com/apache/cassandra
Use MAX_PARALLEL_TRANSFERS instead of default
Patch by brandonwilliams, reviewed by mck for CASSANDRA-20532
This commit is contained in:
parent
aa8daa44e0
commit
b4484968bd
|
|
@ -6,6 +6,7 @@
|
|||
* Fix SimpleClient ability to release acquired capacity (CASSANDRA-20202)
|
||||
* Fix WaitQueue.Signal.awaitUninterruptibly may block forever if invoking thread is interrupted (CASSANDRA-20084)
|
||||
Merged from 4.0:
|
||||
* Honor MAX_PARALLEL_TRANSFERS correctly (CASSANDRA-20532)
|
||||
* Updating a column with a new TTL but same expiration time is non-deterministic and causes repair mismatches. (CASSANDRA-20561)
|
||||
* Avoid computing prepared statement size for unprepared batches (CASSANDRA-20556)
|
||||
* Fix Dropwizard Meter causes timeouts when infrequently used (CASSANDRA-19332)
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ public class StreamingMultiplexedChannel
|
|||
private static final int MAX_PARALLEL_TRANSFERS = parseInt(getProperty(PROPERTY_PREFIX + "streaming.session.parallelTransfers", Integer.toString(DEFAULT_MAX_PARALLEL_TRANSFERS)));
|
||||
|
||||
// a simple mechansim for allowing a degree of fairness across multiple sessions
|
||||
private static final Semaphore fileTransferSemaphore = newFairSemaphore(DEFAULT_MAX_PARALLEL_TRANSFERS);
|
||||
private static final Semaphore fileTransferSemaphore = newFairSemaphore(MAX_PARALLEL_TRANSFERS);
|
||||
|
||||
private final StreamingChannel.Factory factory;
|
||||
private final InetAddressAndPort to;
|
||||
|
|
|
|||
Loading…
Reference in New Issue