-
Notifications
You must be signed in to change notification settings - Fork 108
[client][da-vinci-client] Add seek to tails API in Seeking DVC client #2296
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
base: main
Are you sure you want to change the base?
Conversation
e8d808e to
12f8c86
Compare
clients/da-vinci-client/src/main/java/com/linkedin/davinci/StoreBackend.java
Outdated
Show resolved
Hide resolved
c7f2820 to
91a37de
Compare
clients/da-vinci-client/src/main/java/com/linkedin/davinci/StoreBackend.java
Show resolved
Hide resolved
| if (targetRegions.contains(currentRegion) || startIngestionInNonTargetRegion || !isTargetRegionEnabled) { | ||
| LOGGER.info("Subscribing to future version {}", targetVersion.kafkaTopicName()); | ||
| setDaVinciFutureVersion(new VersionBackend(backend, targetVersion, stats)); | ||
| // For future version subscription, we don't need to pass any timestamps or position map |
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.
Nit: Can we update this comment please
clients/da-vinci-client/src/main/java/com/linkedin/davinci/StoreBackend.java
Outdated
Show resolved
Hide resolved
clients/da-vinci-client/src/main/java/com/linkedin/davinci/StoreBackend.java
Outdated
Show resolved
Hide resolved
clients/da-vinci-client/src/main/java/com/linkedin/davinci/VersionBackend.java
Show resolved
Hide resolved
...ts/da-vinci-client/src/main/java/com/linkedin/davinci/kafka/consumer/StoreIngestionTask.java
Outdated
Show resolved
Hide resolved
| // report completion immediately for user seek subscription | ||
| partitionConsumptionStateMap.get(partition).lagHasCaughtUp(); | ||
| reportCompleted(partitionConsumptionStateMap.get(partition), true); |
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.
Won't this only be true for seekToTail? What if a user passes in 0 into seekToTimestamp?
.../da-vinci-client/src/test/java/com/linkedin/davinci/client/AvroGenericDaVinciClientTest.java
Show resolved
Hide resolved
...rc/integrationTest/java/com/linkedin/venice/endToEnd/DaVinciClientRecordTransformerTest.java
Show resolved
Hide resolved
| for (DefaultPubSubMessage message: messages) { | ||
| System.out.println( | ||
| "position: " + message.getPosition() + "ts11 " | ||
| + message.getValue().getProducerMetadata().getMessageTimestamp()); | ||
| } |
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.
Cleanup?
db91680 to
d1200b4
Compare
4c8ab2c to
c29260d
Compare
Problem Statement
Add seek to tails API in Seeking DVC DRVR client to existing set of other seep APIs like seek by check point and seek by timestamps.
Solution
Code changes
Concurrency-Specific Checks
Both reviewer and PR author to verify
synchronized,RWLock) are used where needed.ConcurrentHashMap,CopyOnWriteArrayList).How was this PR tested?
Does this PR introduce any user-facing or breaking changes?