mirror of https://github.com/apache/nifi.git
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:
parent
2614b83543
commit
9f3bf121f9
|
@ -3859,7 +3859,8 @@ public class FlowController implements EventAccess, ControllerServiceProvider, R
|
|||
provenanceRepository.registerEvent(replayEvent);
|
||||
|
||||
// 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);
|
||||
flowFileRepository.updateRepository(Collections.<RepositoryRecord>singleton(record));
|
||||
|
||||
|
|
Loading…
Reference in New Issue