/** * Called when some error during the validation happened. * This sends RepairStatus to inform the initiator that the validation has failed. * The actual reason for failure should be looked up in the log of the host calling this function. */ public void fail() { logger.error("Failed creating a merkle tree for {}, {} (see log for details)", desc, initiator); // send fail message only to nodes >= version 2.0 MessagingService.instance().sendOneWay(new ValidationComplete(desc).createMessage(), initiator); }
public ValidationComplete deserialize(DataInput in, int version) throws IOException { RepairJobDesc desc = RepairJobDesc.serializer.deserialize(in, version); if (in.readBoolean()) { MerkleTree tree = MerkleTree.serializer.deserialize(in, version); return new ValidationComplete(desc, tree); } else { return new ValidationComplete(desc); } }
public long serializedSize(ValidationComplete message, int version) { long size = RepairJobDesc.serializer.serializedSize(message.desc, version); size += TypeSizes.sizeof(message.success()); if (message.trees != null) size += MerkleTrees.serializer.serializedSize(message.trees, version); return size; } }
public ValidationComplete deserialize(DataInputPlus in, int version) throws IOException { RepairJobDesc desc = RepairJobDesc.serializer.deserialize(in, version); boolean success = in.readBoolean(); if (success) { MerkleTrees trees = MerkleTrees.serializer.deserialize(in, version); return new ValidationComplete(desc, trees); } return new ValidationComplete(desc); }
public void serialize(ValidationComplete message, DataOutputPlus out, int version) throws IOException { RepairJobDesc.serializer.serialize(message.desc, out, version); out.writeBoolean(message.success()); if (message.trees != null) MerkleTrees.serializer.serialize(message.trees, out, version); }
/** * Called when some error during the validation happened. * This sends RepairStatus to inform the initiator that the validation has failed. * The actual reason for failure should be looked up in the log of the host calling this function. */ public void fail() { logger.error("Failed creating a merkle tree for {}, {} (see log for details)", desc, initiator); // send fail message only to nodes >= version 2.0 MessagingService.instance().sendOneWay(new ValidationComplete(desc).createMessage(), initiator); }
public ValidationComplete deserialize(DataInputPlus in, int version) throws IOException { RepairJobDesc desc = RepairJobDesc.serializer.deserialize(in, version); boolean success = in.readBoolean(); if (success) { MerkleTrees trees = MerkleTrees.serializer.deserialize(in, version); return new ValidationComplete(desc, trees); } return new ValidationComplete(desc); }
public long serializedSize(ValidationComplete message, int version) { long size = RepairJobDesc.serializer.serializedSize(message.desc, version); size += TypeSizes.sizeof(message.success()); if (message.trees != null) size += MerkleTrees.serializer.serializedSize(message.trees, version); return size; } }
/** * Called when some error during the validation happened. * This sends RepairStatus to inform the initiator that the validation has failed. * The actual reason for failure should be looked up in the log of the host calling this function. */ public void fail() { logger.error("Failed creating a merkle tree for {}, {} (see log for details)", desc, initiator); // send fail message only to nodes >= version 2.0 MessagingService.instance().sendOneWay(new ValidationComplete(desc).createMessage(), initiator); }
public ValidationComplete deserialize(DataInputPlus in, int version) throws IOException { RepairJobDesc desc = RepairJobDesc.serializer.deserialize(in, version); boolean success = in.readBoolean(); if (success) { MerkleTrees trees = MerkleTrees.serializer.deserialize(in, version); return new ValidationComplete(desc, trees); } return new ValidationComplete(desc); }
public void serialize(ValidationComplete message, DataOutputPlus out, int version) throws IOException { RepairJobDesc.serializer.serialize(message.desc, out, version); out.writeBoolean(message.success()); if (message.trees != null) MerkleTrees.serializer.serialize(message.trees, out, version); }
/** * Called when some error during the validation happened. * This sends RepairStatus to inform the initiator that the validation has failed. * The actual reason for failure should be looked up in the log of the host calling this function. */ public void fail() { logger.error("Failed creating a merkle tree for {}, {} (see log for details)", desc, initiator); // send fail message only to nodes >= version 2.0 MessagingService.instance().sendOneWay(new ValidationComplete(desc).createMessage(), initiator); }
public long serializedSize(ValidationComplete message, int version) { long size = RepairJobDesc.serializer.serializedSize(message.desc, version); size += TypeSizes.sizeof(message.success()); if (message.trees != null) size += MerkleTrees.serializer.serializedSize(message.trees, version); return size; } }
/** * Called after the validation lifecycle to respond with the now valid tree. Runs in Stage.ANTIENTROPY. */ public void run() { // respond to the request that triggered this validation if (!initiator.equals(FBUtilities.getBroadcastAddress())) logger.info(String.format("[repair #%s] Sending completed merkle tree to %s for %s/%s", desc.sessionId, initiator, desc.keyspace, desc.columnFamily)); MessagingService.instance().sendOneWay(new ValidationComplete(desc, tree).createMessage(), initiator); } }
public void serialize(ValidationComplete message, DataOutputPlus out, int version) throws IOException { RepairJobDesc.serializer.serialize(message.desc, out, version); out.writeBoolean(message.success()); if (message.trees != null) MerkleTrees.serializer.serialize(message.trees, out, version); }
/** * Called after the validation lifecycle to respond with the now valid tree. Runs in Stage.ANTIENTROPY. */ public void run() { // respond to the request that triggered this validation if (!initiator.equals(FBUtilities.getBroadcastAddress())) { logger.info("[repair #{}] Sending completed merkle tree to {} for {}.{}", desc.sessionId, initiator, desc.keyspace, desc.columnFamily); Tracing.traceRepair("Sending completed merkle tree to {} for {}.{}", initiator, desc.keyspace, desc.columnFamily); } MessagingService.instance().sendOneWay(new ValidationComplete(desc, trees).createMessage(), initiator); } }
/** * Called after the validation lifecycle to respond with the now valid tree. Runs in Stage.ANTIENTROPY. */ public void run() { // respond to the request that triggered this validation if (!initiator.equals(FBUtilities.getBroadcastAddress())) { logger.info("[repair #{}] Sending completed merkle tree to {} for {}.{}", desc.sessionId, initiator, desc.keyspace, desc.columnFamily); Tracing.traceRepair("Sending completed merkle tree to {} for {}.{}", initiator, desc.keyspace, desc.columnFamily); } MessagingService.instance().sendOneWay(new ValidationComplete(desc, trees).createMessage(), initiator); } }
/** * Called after the validation lifecycle to respond with the now valid tree. Runs in Stage.ANTIENTROPY. */ public void run() { // respond to the request that triggered this validation if (!initiator.equals(FBUtilities.getBroadcastAddress())) { logger.info("[repair #{}] Sending completed merkle tree to {} for {}.{}", desc.sessionId, initiator, desc.keyspace, desc.columnFamily); Tracing.traceRepair("Sending completed merkle tree to {} for {}.{}", initiator, desc.keyspace, desc.columnFamily); } MessagingService.instance().sendOneWay(new ValidationComplete(desc, trees).createMessage(), initiator); } }
MessagingService.instance().sendOneWay(new ValidationComplete(desc).createMessage(), message.from); return;
MessagingService.instance().sendOneWay(new ValidationComplete(desc).createMessage(), message.from); return;