NIFI-3040: Fixed bug where we were generating a RepositoryRecord with an 'UPDATE' type instead of a 'CREATE' time for Replay of FlowFiles. This caused FlowFile to have no attributes when restored from the FlowFile Repository.

This closes #1224
This commit is contained in:
Mark Payne 2016-11-15 12:59:02 -05:00 committed by Oleg Zhurakousky
parent 2614b83543
commit 9f3bf121f9
1 changed files with 2 additions and 1 deletions

View File

@ -3859,7 +3859,8 @@ public class FlowController implements EventAccess, ControllerServiceProvider, R
provenanceRepository.registerEvent(replayEvent); provenanceRepository.registerEvent(replayEvent);
// Update the FlowFile Repository to indicate that we have added the FlowFile to the flow // Update the FlowFile Repository to indicate that we have added the FlowFile to the flow
final StandardRepositoryRecord record = new StandardRepositoryRecord(queue, flowFileRecord); final StandardRepositoryRecord record = new StandardRepositoryRecord(queue);
record.setWorking(flowFileRecord);
record.setDestination(queue); record.setDestination(queue);
flowFileRepository.updateRepository(Collections.<RepositoryRecord>singleton(record)); flowFileRepository.updateRepository(Collections.<RepositoryRecord>singleton(record));