Source:
<code>public void testScheduleLargeExecutorConstraintCount(int parallelismMultiplier) <START> { <END> Config config = createCSSClusterConfig(10, 10, 0, null); config.put(Config.TOPOLOGY_RAS_CONSTRAINT_MAX_STATE_SEARCH, 50000); List<List<String>> constraints = new LinkedList<>(); addContraints("spout-0", "spout-0", constraints); addContraints("bolt-1", "bolt-1", constraints); addContraints("spout-0", "bolt-0", constraints); addContraints("bolt-2", "spout-0", constraints); addContraints("bolt-1", "bolt-2", constraints); addContraints("bolt-1", "bolt-0", constraints); addContraints("bolt-1", "spout-0", constraints); config.put(Config.TOPOLOGY_RAS_CONSTRAINTS, constraints); TopologyDetails topo = genTopology("testTopo-" + parallelismMultiplier, config, 10, 10, 30 * parallelismMultiplier, 30 * parallelismMultiplier, 31414, 0, "user"); Topologies topologies = new Topologies(topo); Map<String, SupervisorDetails> supMap = genSupervisors(30 * parallelismMultiplier, 30, 3500, 35000); Cluster cluster = new Cluster(new INimbusTest(), new ResourceMetrics(new StormMetricsRegistry()), supMap, new HashMap<String, SchedulerAssignmentImpl>(), topologies, config); ResourceAwareScheduler scheduler = new ResourceAwareScheduler(); scheduler.prepare(config); scheduler.schedule(topologies, cluster); boolean scheduleSuccess = isStatusSuccess(cluster.getStatus(topo.getId())); if (parallelismMultiplier == 5) { Assert.assertTrue(scheduleSuccess); } else if (parallelismMultiplier == 20) { LOG.info("testScheduleLargeExecutorCount scheduling with {}x executor multiplier", scheduleSuccess ? "succeeds" : "fails", parallelismMultiplier); } }</code><technical_language>nit: newline {</technical_language>

Target:
public void testScheduleLargeExecutorConstraintCount(int parallelismMultiplier) { Config config = createCSSClusterConfig(10, 10, 0, null); config.put(Config.TOPOLOGY_RAS_CONSTRAINT_MAX_STATE_SEARCH, 50000); List<List<String>> constraints = new LinkedList<>(); addContraints("spout-0", "spout-0", constraints); addContraints("bolt-1", "bolt-1", constraints); addContraints("spout-0", "bolt-0", constraints); addContraints("bolt-2", "spout-0", constraints); addContraints("bolt-1", "bolt-2", constraints); addContraints("bolt-1", "bolt-0", constraints); addContraints("bolt-1", "spout-0", constraints); config.put(Config.TOPOLOGY_RAS_CONSTRAINTS, constraints); TopologyDetails topo = genTopology("testTopo-" + parallelismMultiplier, config, 10, 10, 30 * parallelismMultiplier, 30 * parallelismMultiplier, 31414, 0, "user"); Topologies topologies = new Topologies(topo); Map<String, SupervisorDetails> supMap = genSupervisors(30 * parallelismMultiplier, 30, 3500, 35000); Cluster cluster = makeCluster(topologies, supMap); ResourceAwareScheduler scheduler = new ResourceAwareScheduler(); scheduler.prepare(config); scheduler.schedule(topologies, cluster); boolean scheduleSuccess = isStatusSuccess(cluster.getStatus(topo.getId())); if (parallelismMultiplier <= 5) { Assert.assertTrue(scheduleSuccess); } else if (parallelismMultiplier == 20) { LOG.info("testScheduleLargeExecutorCount scheduling with {}x executor multiplier", scheduleSuccess ? "succeeds" : "fails", parallelismMultiplier); } }