Flow flow = flowConnector.connect(in, FetchPipe.makeSinkMap(status, content), fetchPipe);
flow.complete();
// Test for all valid fetches.
Tap validate = platform.makeTap(platform.makeBinaryScheme(StatusDatum.FIELDS), statusPath);
TupleEntryIterator tupleEntryIterator = validate.openForRead(platform.makeFlowProcess());
while (tupleEntryIterator.hasNext()) {
TupleEntry entry = tupleEntryIterator.next();
StatusDatum sd = new StatusDatum(entry);
if (sd.getStatus() != UrlStatus.FETCHED) {
LOGGER.error(String.format("Fetched failed! Status is %s for %s", sd.getStatus(), sd.getUrl()));