mirror of
https://github.com/apache/nifi.git
synced 2025-02-16 15:06:00 +00:00
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;
|
final List<FlowFileRecord> swappedFlowFiles;
|
||||||
try (final InputStream fis = new FileInputStream(swapFile);
|
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);
|
swappedFlowFiles = deserializeFlowFiles(in, swapLocation, flowFileQueue, claimManager);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user