HCOLL-192 I've reviewed the code around this, it looks like this size constraint was a hang up from when we only allowed replicated entries to be no larger than max unsigned short, the underlying code was changed recently when we introduced the stateless client to allow much larger payloads. As such I've have increased this constrain to Integer.MAX_VALUE

This commit is contained in:
Rob Austin
2014-11-07 11:14:33 +00:00
parent 4c86dae04f
commit 28d20d03b6
2 changed files with 4 additions and 6 deletions
@@ -1052,7 +1052,6 @@ final class TcpReplicator extends AbstractChannelReplicator implements Closeable
final int inPosition = in.position();
long outPosition = out.position();
long outLimit = out.limit();
@@ -1792,7 +1791,6 @@ class StatelessServerConnector<K, V> {
/**
* write the keysize and the key to the the {@code target} buffer
*
* @param local
* @param key the key of the map
*/
@@ -1855,7 +1853,7 @@ class StatelessServerConnector<K, V> {
private long header(Bytes writer, final long transactionId) {
final long sizeLocation = writer.position();
writer.skip(TRANSACTION_ID_OFFSET); // SIZE_OF_SIZE + is
writer.skip(TRANSACTION_ID_OFFSET);
// exception
writer.writeLong(transactionId);