m1a2st opened a new pull request, #19862: URL: https://github.com/apache/kafka/pull/19862
`DelayedOperation.forceComplete()` always returns true when called inside `tryComplete()`. Only the expiration logic checks its return value. We can simplify this by making `forceComplete()` return void and moving the locking to the caller. This would also make `forceComplete()` simpler and clearer to use. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org