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 opentsdb emitter always be running and fail sending tags whose value contains colon #6251

Merged
merged 7 commits into from
Sep 14, 2018

Conversation

QiuMM
Copy link
Member

@QiuMM QiuMM commented Aug 28, 2018

Fix #6247 and #6292 . Opentsdb emitter extension was contributed by me, so I help fix these two issues.

|`druid.emitter.opentsdb.flushThreshold`|Queue flushing threshold.(Events will be sent as one batch)|no|100|
|`druid.emitter.opentsdb.maxQueueSize`|Maximum size of the queue used to buffer events.|no|1000|
|`druid.emitter.opentsdb.consumeDelay`|Queue consuming delay(in milliseconds).|no|10000|
Copy link
Contributor

Choose a reason for hiding this comment

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

can we add a short description about what this means like what happen if increased or decreased ? and maybe why 10second is a good default?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@@ -40,28 +43,40 @@
*/
private static final String PATH = "/api/put";
private static final Logger log = new Logger(OpentsdbSender.class);
private static final long FLUSH_TIMEOUT = 60000; // default flush wait 1 min
Copy link
Contributor

Choose a reason for hiding this comment

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

does this means the emitter will block 1 min waiting for the flush to finish?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes it is. This is learned from other emitter extensions, e.g graphite-emitter.

@QiuMM
Copy link
Member Author

QiuMM commented Sep 10, 2018

I have tested in my enviroment and worked fine. @b-slim can you help review this PR again, then we can end this as soon as possible.

@QiuMM QiuMM changed the title fix opentsdb emitter always be running fix opentsdb emitter always be running and fail sending tags whose value contains colon Sep 14, 2018
@jon-wei
Copy link
Contributor

jon-wei commented Sep 14, 2018

@QiuMM @zhaojiandong I think both #6251 and #6254 would work to fix #6247, but I'm going to go ahead and merge this one since it also has a fix for #6292

@jon-wei jon-wei merged commit 85391e9 into apache:master Sep 14, 2018
@QiuMM QiuMM deleted the openfix branch September 20, 2018 16:17
@dclim dclim added this to the 0.13.0 milestone Oct 9, 2018
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.

opentsdb emitter occupy 100% core
5 participants