Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,15 @@ public void onResponse(StreamingGetDataResponse chunk) {

@Override
public boolean hasPendingRequests() {
// Note the batchesSizeSupplier may reflect batches that could be sent on another physical
// stream. However we treat them as possibly pending on all physical streams to ensure that we
// recreate streams to send them.
return !pending.isEmpty() || batchesSizeSupplier.get() > 0;
}

@Override
public void onDone(Status status) {
if (status.isOk() && hasPendingRequests()) {
if (status.isOk() && !pending.isEmpty()) {
LOG.warn("Pending requests not expected on successful GetData stream flushing.");
}
for (AppendableInputStream responseStream : pending.values()) {
Expand Down
Loading