Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transient Replication and Cheap Quorums, update existing tests
Patch by Ariel Weisberg; Reviewed by Blake Eggleston for CASSANDRA-14404 Co-authored-by: Blake Eggleston <bdeggleston@gmail.com> Co-authored-by: Alex Petrov <oleksandr.petrov@gmail.com>
- Loading branch information
1 parent
3d760e6
commit 4e1c055
Showing
11 changed files
with
93 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
RULE fail repairs | ||
CLASS org.apache.cassandra.repair.RepairMessageVerbHandler | ||
METHOD doVerb | ||
AT ENTRY | ||
IF true | ||
DO throw new RuntimeException("Repair failed"); | ||
ENDRULE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
RULE sorted live endpoints | ||
CLASS org.apache.cassandra.service.StorageProxy | ||
METHOD getLiveSortedEndpoints | ||
CLASS org.apache.cassandra.locator.SimpleSnitch | ||
METHOD sortedByProximity | ||
AT ENTRY | ||
BIND ep1 = org.apache.cassandra.locator.InetAddressAndPort.getByName("127.0.0.1"); | ||
ep2 = org.apache.cassandra.locator.InetAddressAndPort.getByName("127.0.0.2"); | ||
ep3 = org.apache.cassandra.locator.InetAddressAndPort.getByName("127.0.0.3"); | ||
eps = new java.util.ArrayList(); | ||
IF true | ||
DO | ||
eps.add(ep1); | ||
eps.add(ep2); | ||
eps.add(ep3); | ||
return eps; | ||
return $unsortedAddress.sorted(java.util.Comparator.naturalOrder()); | ||
ENDRULE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
RULE slow mutations | ||
CLASS org.apache.cassandra.db.MutationVerbHandler | ||
METHOD doVerb | ||
AT ENTRY | ||
IF true | ||
DO Thread.sleep(60000); | ||
ENDRULE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# block mutation verb | ||
RULE disable mutations | ||
CLASS org.apache.cassandra.db.ReadCommandVerbHandler | ||
METHOD doVerb | ||
AT ENTRY | ||
IF true | ||
DO return; | ||
ENDRULE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# block mutation verb | ||
RULE disable mutations | ||
CLASS org.apache.cassandra.db.ReadRepairVerbHandler | ||
METHOD doVerb | ||
AT ENTRY | ||
IF true | ||
DO return; | ||
ENDRULE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#block mutation verb | ||
RULE disable mutations | ||
CLASS org.apache.cassandra.db.MutationVerbHandler | ||
METHOD doVerb | ||
AT ENTRY | ||
IF true | ||
DO return; | ||
ENDRULE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
RULE block digest | ||
CLASS org.apache.cassandra.db.ReadResponse | ||
METHOD createDigestResponse | ||
AT ENTRY | ||
IF true | ||
DO throw new RuntimeException("Digest response throws"); | ||
ENDRULE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters