blob: 66e4fe268b7b4c70490ef2b8fcc24c571b18d5fb [file] [log] [blame]
#
# corrupt the first gossip ACK message. we corrupt it on the way out,
# in serialize(), so it fails on deserializing. However, we also need
# to hack the serializedSize().
#
RULE corrupt the first gossip ACK message
CLASS org.apache.cassandra.gms.GossipDigestAckSerializer
METHOD serialize(org.apache.cassandra.gms.GossipDigestAck, org.apache.cassandra.io.util.DataOutputPlus, int)
AT ENTRY
# set flag to only run this rule once.
IF NOT flagged("done")
DO
flag("done");
$2.writeInt(-1);
ENDRULE