Skip to content
Merged
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 @@ -1475,7 +1475,7 @@ protected void pollAndInvoke() {

invokeIfHaveRecords(records);
if (this.remainingRecords == null) {
resumeConsumerIfNeccessary();
resumeConsumerIfNecessary();
if (!this.consumerPaused) {
resumePartitionsIfNecessary();
}
Expand Down Expand Up @@ -1830,7 +1830,7 @@ private void doPauseConsumerIfNecessary() {
}
}

private void resumeConsumerIfNeccessary() {
private void resumeConsumerIfNecessary() {
if (this.nackWakeTimeMillis > 0) {
if (System.currentTimeMillis() > this.nackWakeTimeMillis) {
this.nackWakeTimeMillis = 0;
Expand All @@ -1842,15 +1842,15 @@ private void resumeConsumerIfNeccessary() {
}
else if (this.offsetsInThisBatch != null) {
synchronized (this) {
doResumeConsumerIfNeccessary();
doResumeConsumerIfNecessary();
}
}
else {
doResumeConsumerIfNeccessary();
doResumeConsumerIfNecessary();
}
}

private void doResumeConsumerIfNeccessary() {
private void doResumeConsumerIfNecessary() {
if (this.pausedForAsyncAcks && Objects.requireNonNull(this.offsetsInThisBatch).isEmpty()) {
this.pausedForAsyncAcks = false;
this.logger.debug("Resuming after manual async acks cleared");
Expand Down