mirror of https://github.com/apache/nifi.git
NIFI-1285: Used a BufferedInputStream when swapping in data
Signed-off-by: joewitt <joewitt@apache.org>
This commit is contained in:
parent
9ca0f95d06
commit
1869b44682
|
@ -149,7 +149,8 @@ public class FileSystemSwapManager implements FlowFileSwapManager {
|
|||
|
||||
final List<FlowFileRecord> swappedFlowFiles;
|
||||
try (final InputStream fis = new FileInputStream(swapFile);
|
||||
final DataInputStream in = new DataInputStream(fis)) {
|
||||
final InputStream bis = new BufferedInputStream(fis);
|
||||
final DataInputStream in = new DataInputStream(bis)) {
|
||||
swappedFlowFiles = deserializeFlowFiles(in, swapLocation, flowFileQueue, claimManager);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue