-
Notifications
You must be signed in to change notification settings - Fork 2
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
[proxima-direct-core] #156 Added support for configurable watermark estimator and idle policy for commit log readers #366
Conversation
...ct/core/src/main/java/cz/o2/proxima/direct/time/BoundedOutOfOrdernessWatermarkEstimator.java
Show resolved
Hide resolved
7202576
to
dad628a
Compare
9e19949
to
27cf01a
Compare
eb8930c
to
207ffd4
Compare
direct/io-kafka/src/main/java/cz/o2/proxima/direct/kafka/KafkaLogReader.java
Show resolved
Hide resolved
direct/core/src/test/java/cz/o2/proxima/direct/storage/InMemStorage.java
Show resolved
Hide resolved
Hm, the check started to work. I'll close the duplicate PR #373. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very cool job 👍
I have a few comments, most important is to remove the PartitionedWatermarkEstimator.empty()
. And there is probably possible some cleaning in KafkaLogReader - e.g. do we still need class VectorClock
, or can it be completely removed?
core/src/main/java/cz/o2/proxima/time/AbstractWatermarkEstimator.java
Outdated
Show resolved
Hide resolved
direct/core/src/main/java/cz/o2/proxima/direct/time/PartitionedWatermarkEstimator.java
Outdated
Show resolved
Hide resolved
direct/core/src/main/java/cz/o2/proxima/direct/time/PartitionedWatermarkEstimator.java
Outdated
Show resolved
Hide resolved
direct/io-kafka/src/main/java/cz/o2/proxima/direct/kafka/KafkaLogReader.java
Outdated
Show resolved
Hide resolved
direct/io-kafka/src/main/java/cz/o2/proxima/direct/kafka/KafkaLogReader.java
Show resolved
Hide resolved
direct/io-kafka/src/test/java/cz/o2/proxima/direct/kafka/LocalKafkaCommitLogDescriptorTest.java
Outdated
Show resolved
Hide resolved
direct/io-pubsub/src/main/java/cz/o2/proxima/direct/pubsub/PubSubWatermarkConfiguration.java
Outdated
Show resolved
Hide resolved
direct/io-pubsub/src/main/java/cz/o2/proxima/direct/pubsub/PubSubReader.java
Show resolved
Hide resolved
direct/core/src/main/java/cz/o2/proxima/direct/time/WatermarkConfiguration.java
Outdated
Show resolved
Hide resolved
Good job 👍 I'll leave the review to @je-ik as he's more familiar with the internals. The overall code and approch looks good to me. Nice work 🎉 |
I wanted remove VectorClock class, but I am afraid that somebody can still use it. You are the boss so I will remove it at all. |
Generally, classes annotated with |
direct/io-kafka/src/main/java/cz/o2/proxima/direct/kafka/KafkaLogReader.java
Show resolved
Hide resolved
7be308c
to
7a9158c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
A few last things:
a) please fill issue to O2-Czech-Republic
, as this is a larger change
b) please squash the commits and add issue ID to commit line (e.g. [proxima-direct-core] #156 ....
)
c) will merge it as soon as all tests pass
…rmark estimator and idle policy
This closes O2-Czech-Republic#156 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, thanks! 👍
Uf, strange, the build fails on the same test, although other PRs seems not to have this issue. There should be no relation, though. |
No description provided.