luchunliang commented on code in PR #8386:
URL: https://github.com/apache/inlong/pull/8386#discussion_r1247592179
##########
inlong-dataproxy/dataproxy-source/src/main/java/org/apache/inlong/dataproxy/utils/BufferQueue.java:
##########
@@ -61,6 +61,19 @@ public A pollRecord() {
return record;
}
+ /**
+ * Take record
+ */
+ public A takeRecord() {
+ try {
+ A record = queue.take();
+ this.offerCount.incrementAndGet();
Review Comment:
It is take operation, need to invoke
this.pollCount.getAndIncrement();
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]