Map<Integer, DependencyInfo> stmt_dinfos = this.depTrackerDbg.getStatementDependencies(this.ts, i);
assertNotNull(stmt_dinfos);
assertFalse(stmt_dinfos.isEmpty());
for (Integer d_id : stmt_dinfos.keySet()) {
DependencyInfo dinfo = stmt_dinfos.get(d_id);
assertNotNull(dinfo);
if (this.internal_dependency_ids.contains(d_id)) {
// This fragment should have been broadcast to all partitions
assertEquals(NUM_PARTITIONS, dinfo.getExpectedPartitions().size());
// But never out to VoltProcedure
assertFalse(this.output_dependency_ids.contains(d_id));
// And we should have a task blocked waiting for this dependency
assertFalse(dinfo.getBlockedWorkFragments().isEmpty());
} else {
assertEquals(1, dinfo.getExpectedPartitions().size());
assertEquals(LOCAL_PARTITION, dinfo.getExpectedPartitions().get());
}
} // FOR
} // FOR
//System.err.println(this.ts);