Skip to content

Throttle empty subscription poll logs#18063

Merged
jt2594838 merged 2 commits into
apache:masterfrom
Caideyipi:fix/subscription-empty-poll-log-throttle
Jun 30, 2026
Merged

Throttle empty subscription poll logs#18063
jt2594838 merged 2 commits into
apache:masterfrom
Caideyipi:fix/subscription-empty-poll-log-throttle

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Description

  • Throttle empty subscription poll logs for pull and push consumers.
  • Log the first empty poll immediately, then summarize continuous empty polls at most once per minute.
  • Reset the empty-poll counter after user-visible messages are received.

Tests

  • mvn test -pl iotdb-client/subscription -Dtest=EmptyPollLogThrottlerTest

@jt2594838 jt2594838 merged commit 186ce36 into apache:master Jun 30, 2026
40 checks passed
@jt2594838 jt2594838 deleted the fix/subscription-empty-poll-log-throttle branch June 30, 2026 07:34
jt2594838 pushed a commit that referenced this pull request Jun 30, 2026
* Throttle empty subscription poll logs

* Use i18n messages for empty poll logs
# Conflicts:
#	iotdb-client/subscription/src/main/i18n/en/org/apache/iotdb/rpc/subscription/i18n/SubscriptionMessages.java
#	iotdb-client/subscription/src/main/i18n/zh/org/apache/iotdb/rpc/subscription/i18n/SubscriptionMessages.java
#	iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/EmptyPollLogThrottler.java
#	iotdb-client/subscription/src/main/java/org/apache/iotdb/session/subscription/consumer/base/AbstractSubscriptionPullConsumer.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants