druid icon indicating copy to clipboard operation
druid copied to clipboard

"earlyMessageRejectionPeriod" setting for kafka indexing ?

Open wywlds opened this issue 9 years ago • 6 comments

I read the doc and tracked the use of "lateMessageRejectionPeriod" in kafka indexing service. It is a very useful param for our use case to limit the time period of backtracking. I am very grateful for this feature. On the other hand, how about adding a "earlyMessageRejectionPeriod" to throw the messages that come from the "future"? Our use case is to track user behaviors, user behaviors having "future" timestamps are surely expected to be filtered out. It could be extremely useful for our user case!

@dclim , is such a feature meaningful for druid.

wywlds avatar Jul 25 '17 11:07 wywlds

Such a feature makes sense to me, at least. A patch is welcome :)

It's important to make sure that all tasks use the same time, since replicas need to perform exactly the same logic and so their local clocks cannot be used. If you implement this in a similar way to lateMessageRejectionPeriod then it should work.

gianm avatar Jul 25 '17 14:07 gianm

makes sense to me too :)

dclim avatar Jul 25 '17 16:07 dclim

Thank you for your advice. I am already working on it.

wywlds avatar Jul 26 '17 11:07 wywlds

Hi, David & Gian, I created a pr for this issue, #4607 .

wywlds avatar Jul 28 '17 02:07 wywlds

@dclim @gianm This pr was implemented in exactly the same way as "lateMessageRejectionPeriod" (as I reviewed the original pr). I literally copied most of the codes(had to replace "late" with "early"), and did minor necessary changes. However, as many lines were changed, it could be a little bit boring to review them. Do you have some time to review it?

wywlds avatar Jul 31 '17 02:07 wywlds

Implemented in #4607

dclim avatar Oct 10 '17 22:10 dclim