BinaryMemcacheRequest request = new DefaultBinaryMemcacheRequest();
request.setOpcode(OP_GET_BUCKET_CONFIG);
return request;
}
private static BinaryMemcacheRequest handleReplicaGetRequest(final ReplicaGetRequest msg) {
<BUG>String key = msg.key();
short keyLength = (short) msg.keyBytes().length;
BinaryMemcacheRequest request = new DefaultBinaryMemcacheRequest(key);</BUG>
request.setOpcode(OP_GET_REPLICA)
.setKeyLength(keyLength)

BinaryMemcacheRequest request = new DefaultBinaryMemcacheRequest();
request.setOpcode(OP_GET_BUCKET_CONFIG);
return request;
}
private static BinaryMemcacheRequest handleReplicaGetRequest(final ReplicaGetRequest msg) {
byte[] key = msg.keyBytes();
short keyLength = (short) key.length;
BinaryMemcacheRequest request = new DefaultBinaryMemcacheRequest(key);
request.setOpcode(OP_GET_REPLICA)
.setKeyLength(keyLength)
