void handleAcknowledgeErrorCode(TopicIdPartition tip, Errors acknowledgeErrorCode) {
            Acknowledgements acks = acknowledgementsMap.remove(tip);
            if (acks != null) {
                acks.setAcknowledgeErrorCode(acknowledgeErrorCode);
            }
            resultHandler.complete(tip, acks);
        }
Sets the error code in the acknowledgements and sends the response
through a background event.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java