From b2fae5f56ee13cba96d112d45b6a8f90af250317 Mon Sep 17 00:00:00 2001 From: Koji Kawamura Date: Tue, 10 Apr 2018 17:15:30 +0900 Subject: [PATCH] NIFI-5065: HTTP Site-to-Site fails sending data more than 2GB at once Int variables got overflown. This closes #5065 Signed-off-by: Mike Thomsen --- .../org/apache/nifi/remote/util/SiteToSiteRestApiClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nifi-commons/nifi-site-to-site-client/src/main/java/org/apache/nifi/remote/util/SiteToSiteRestApiClient.java b/nifi-commons/nifi-site-to-site-client/src/main/java/org/apache/nifi/remote/util/SiteToSiteRestApiClient.java index 1670a532a7..249325d44b 100644 --- a/nifi-commons/nifi-site-to-site-client/src/main/java/org/apache/nifi/remote/util/SiteToSiteRestApiClient.java +++ b/nifi-commons/nifi-site-to-site-client/src/main/java/org/apache/nifi/remote/util/SiteToSiteRestApiClient.java @@ -773,8 +773,8 @@ public class SiteToSiteRestApiClient implements Closeable { private final ByteBuffer buffer = ByteBuffer.allocate(DATA_PACKET_CHANNEL_READ_BUFFER_SIZE); - private int totalRead = 0; - private int totalProduced = 0; + private long totalRead = 0; + private long totalProduced = 0; private boolean requestHasBeenReset = false;