mirror of https://github.com/apache/nifi.git
NIFI-3084 Fixing TestPersistentProvenanceRepository and closing a stream leak in RecordReaders.
This closes #1260.
This commit is contained in:
parent
913ae91614
commit
50667ed222
|
@ -118,6 +118,7 @@ public class RecordReaders {
|
||||||
serializationName = dis.readUTF();
|
serializationName = dis.readUTF();
|
||||||
bufferedInStream.reset();
|
bufferedInStream.reset();
|
||||||
} catch (final EOFException eof) {
|
} catch (final EOFException eof) {
|
||||||
|
fis.close();
|
||||||
return new EmptyRecordReader();
|
return new EmptyRecordReader();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1585,6 +1585,8 @@ public class TestPersistentProvenanceRepository {
|
||||||
builder.fromFlowFile(createFlowFile(15, 3000L, attributes));
|
builder.fromFlowFile(createFlowFile(15, 3000L, attributes));
|
||||||
attributes.put("uuid", "00000000-0000-0000-0000-00000000000" + 15);
|
attributes.put("uuid", "00000000-0000-0000-0000-00000000000" + 15);
|
||||||
repo.registerEvent(builder.build());
|
repo.registerEvent(builder.build());
|
||||||
|
|
||||||
|
Thread.sleep(3000L);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue