Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix aggregator metric drop #5632

Merged
merged 2 commits into from
Mar 27, 2019

Conversation

ushuz
Copy link
Contributor

@ushuz ushuz commented Mar 26, 2019

Aggregators' drop_original = true doesn't work well with *_consumer inputs' max_undelivered_messages. (mentioned by me at #5595 (comment))

*_consumer inputs are using AddTrackingMetricGroup to find out whether metrics get delivered (either Accept or Drop, Reject won't count). However, when drop_original = true, metrics are dropped without calling metric.Drop(). As a result, inputs lost track of metrics, consider dropped metrics undelivered, and max_undelivered_messages is reached rather quickly. Eventually, *_consumer inputs stop consuming new messages.

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

@@ -17,7 +17,7 @@ services:
- KAFKA_ADVERTISED_HOST_NAME=localhost
- KAFKA_ADVERTISED_PORT=9092
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_CREATE_TOPICS="test:1:1"
- KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single node kafka cluster is not writable without this.

@@ -17,7 +17,7 @@ services:
- KAFKA_ADVERTISED_HOST_NAME=localhost
- KAFKA_ADVERTISED_PORT=9092
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_CREATE_TOPICS="test:1:1"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This no longer works, it yields:

...
kafka_1          | creating topics: "test:1:1"
kafka_1          | Missing required argument "[partitions]"
kafka_1          | Option                                   Description
kafka_1          | ------                                   -----------
kafka_1          | --alter                                  Alter the number of partitions,
...

@danielnelson danielnelson added this to the 1.10.2 milestone Mar 26, 2019
@danielnelson danielnelson added the fix pr to fix corresponding bug label Mar 26, 2019
@danielnelson danielnelson merged commit 5e6374c into influxdata:master Mar 27, 2019
danielnelson pushed a commit that referenced this pull request Mar 27, 2019
dupondje pushed a commit to dupondje/telegraf that referenced this pull request Apr 22, 2019
hwaastad pushed a commit to hwaastad/telegraf that referenced this pull request Jun 13, 2019
@ushuz ushuz deleted the fix-aggregator-metric-drop branch June 17, 2019 02:59
bitcharmer pushed a commit to bitcharmer/telegraf that referenced this pull request Oct 18, 2019
athoune pushed a commit to bearstech/telegraf that referenced this pull request Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr to fix corresponding bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants