-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
+per #18190 leveldb impl of EventsByPersistenceId query #18264
+per #18190 leveldb impl of EventsByPersistenceId query #18264
Conversation
note to self: it's also missing something for the SharedLeveldbJournal |
Refs #18190 |
buf foreach onNext | ||
buf = Vector.empty | ||
} | ||
} |
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.
Oh yeah. I actually think this is useful enough to put somewhere in streams... I've re-implemented deliverBuf
far too many times by now
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.
(at some point, not now, maybe a ticket?)
Test FAILed. |
case _: Request ⇒ | ||
journal ! LeveldbJournal.SubscribePersistenceId(persistenceId) | ||
log.info("initial request ReplayMessages for persistenceId [{}] from [{}] to [{}]", persistenceId, currSeqNo, toSequenceNr) | ||
journal ! ReplayMessages(currSeqNo, toSequenceNr, replayMax, persistenceId, self) |
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.
yeap, much nicer indeed
bcc36af
to
7f4f4bc
Compare
@ktoso I have updated. Please take another look. I'll continue with AllPersistenceIds. |
@@ -97,7 +99,7 @@ void demonstrateBasicUsage() { | |||
.getReadJournalFor("akka.persistence.query.noop-read-journal"); | |||
|
|||
// issue query to journal | |||
Source<Object, BoxedUnit> source = | |||
Source<EventEnvelope, BoxedUnit> source = |
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.
👍
A few minor things but looks great, LGTM |
Test PASSed. |
The style of having the logic in |
I have fixed your comments 5d30edb |
yeah, for leveldb is feels like the right thing (right ambition level) |
Test PASSed. |
Test PASSed. |
LGTM, squash and merge when ready |
Test FAILed. |
Test FAILed. |
* also changed EventsByPersistenceId query type to return Source[EventEnvelope]
c6b674f
to
009d80d
Compare
Test PASSed. |
…enceId-patriknw +per #18190 leveldb impl of EventsByPersistenceId query
Not ready. Requires some cleanup and documentation.
Also tinkering if we could skip the scheduled ticks altogether and rely on the Changed notifications. However, if there are many changes all the time its good to not do the query too often.