request logs through kafka emitter#11036
Conversation
zhangyue19921010
left a comment
There was a problem hiding this comment.
LGTM after CI passed :)
|
Tests failing due to insufficient test coverage. |
|
added unit test for kafka emitter |
|
All green, will merge by eod. |
|
@pjain1 This is a great add, will be very useful! Can you update the description with the information on logging now that lost events are logged under |
|
@capistrant updated, hope it makes sense. Although looking at the emitter code again, I found an issue - memory bound for each queue is set to the Kafka producer buffer memory config. I believe the intention is keep the buffered events size less than or equal to the producer buffer but it will actually be 3 times the producer buffer. This problem would have been there since the implementation of this emitter so I think can be addressed in separate PR. |
thanks! Do you think you can open up an issue with a quick write up on that suspected bug? I agree that it can be fixed in a separate PR. I did ask a small question in a review comment. I don't mean to come in and nit at this since it is already approved. Just curious to know the reasoning on a small choice. |
* IMPLY-6556 remove offending settings.xml for intellij inspections * GCS lookup support (apache#11026) * GCS lookup support * checkstyle fix * review comments * review comments * remove unused import * remove experimental from Kinesis with caveats (apache#10998) * remove experimental from Kinesis with caveats * add suggested known issue * spelling fixes * Bump aliyun SDK to 3.11.3 (apache#11044) * Update reset-cluster.md (apache#10990) fixed Error: Could not find or load main class org.apache.druid.cli.Main * Make imply-view-manager non-experimental (apache#316) * Make druid.indexer.task.ignoreTimestampSpecForDruidInputSource default to true, for backwards compat (apache#315) * Add explicit EOF and use assert instead of exception (apache#11041) * Add Calcite Avatica protobuf handler (apache#10543) * bump to latest of same version node and npm versions, bump frontend-maven-plugin (apache#11057) * request logs through kafka emitter (apache#11036) * request logs through kafka emitter * travis fixes * review comments * kafka emitter unit test * new line * travis checks * checkstyle fix * count request lost when request topic is null * IMPLY-6556 map local repository instead .m2 * remove outdated info from faq (apache#11053) * remove outdated info from faq * Add an option for ingestion task to drop (mark unused) all existing segments that are contained by interval in the ingestionSpec (apache#11025) * Auto-Compaction can run indefinitely when segmentGranularity is changed from coarser to finer. * Add option to drop segments after ingestion * fix checkstyle * add tests * add tests * add tests * fix test * add tests * fix checkstyle * fix checkstyle * add docs * fix docs * address comments * address comments * fix spelling * Allow list for JDBC connection properties to address CVE-2021-26919 (apache#11047) * Allow list for JDBC connection properties to address CVE-2021-26919 * fix tests for java 11 * Fix compile issue from dropExisting in ingest-service (apache#320) Co-authored-by: Slava Mogilevsky <triggerwoods91@gmail.com> Co-authored-by: Parag Jain <pjain1@apache.org> Co-authored-by: Charles Smith <38529548+techdocsmith@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: frank chen <frank.chen021@outlook.com> Co-authored-by: Tushar Raj <43772524+tushar-1728@users.noreply.github.com> Co-authored-by: Jonathan Wei <jon-wei@users.noreply.github.com> Co-authored-by: Jihoon Son <jihoonson@apache.org> Co-authored-by: Lasse Krogh Mammen <lkm@bookboon.com> Co-authored-by: Clint Wylie <cwylie@apache.org> Co-authored-by: Maytas Monsereenusorn <maytasm@apache.org>
Fixes #10851
Description
Send request logs through Kafka Emitter, if request topic is set then the event will be emitted otherwise skipped and added to
invalidLostcount. WhenrequestTopicis set, lost request logs are logged underrequestLostmetric.Key changed/added classes in this PR
KafkaEmitter.javaDefaultRequestLogEvent.javaThis PR has: