Skip to content

Commit

Permalink
hack(grid-dual-access): force dual results
Browse files Browse the repository at this point in the history
to be reverted once broker with custom "flags" is deployed
  • Loading branch information
ansoncfit committed Mar 18, 2024
1 parent 9d7380f commit 10a51a8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
Expand Down Expand Up @@ -407,6 +408,10 @@ protected void handleOneRegionalTask (RegionalTask task) throws Throwable {

LOG.debug("Handling regional task {}", task.toString());

// Force dual access results for grid (remove once broker has been relaunched to support custom flags)
LOG.info("Forcing dual access results");
task.flags = Set.of("gridDualAccess");

if (task.injectFault != null) {
task.injectFault.considerShutdownOrException(task.taskId);
if (task.injectFault.shouldDropTaskBeforeCompute(task.taskId)) {
Expand Down

0 comments on commit 10a51a8

Please sign in to comment.