mirror of https://github.com/apache/nifi.git
NIFI-2717: Ensure that when performing site-to-site communications that we always commit the transaction on the remote side before committing it on the local side
This closes #978 Signed-off-by: Koji Kawamura <ijokarumawak@apache.org>
This commit is contained in:
parent
0e64c3ed30
commit
a9d029d74e
|
@ -305,8 +305,8 @@ public class StandardRemoteGroupPort extends RemoteGroupPort {
|
|||
final long uploadMillis = stopWatch.getDuration(TimeUnit.MILLISECONDS);
|
||||
final String dataSize = FormatUtils.formatDataSize(bytesSent);
|
||||
|
||||
session.commit();
|
||||
transaction.complete();
|
||||
session.commit();
|
||||
|
||||
final String flowFileDescription = (flowFilesSent.size() < 20) ? flowFilesSent.toString() : flowFilesSent.size() + " FlowFiles";
|
||||
logger.info("{} Successfully sent {} ({}) to {} in {} milliseconds at a rate of {}", new Object[]{
|
||||
|
|
Loading…
Reference in New Issue