int getAcknowledgementsCount(TopicIdPartition tip) {
            Acknowledgements acks = acknowledgementsMap.get(tip);
            if (acks == null) {
                return 0;
            } else {
                return acks.size();
            }
        }
Whether this is the final acknowledge request state before the consumer closes.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareConsumeRequestManager.java