Skip to content
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

feat: Replay events via IncludeEntityIds request #816

Merged
merged 3 commits into from
Mar 22, 2023

Conversation

patriknw
Copy link
Member

No description provided.

log.debug("Stream [{}]: tryPullReplay entityId [{}}]", logPrefix, entityId)
implicit val ec: ExecutionContext = materializer.executionContext
val next = replayInProgress(entityId).pull().map(ReplayEnvelope(entityId, _))
next.onComplete(replayCallback.invoke)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The usual optimisation with no invoke if it was already there and future is completed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 changed in c6de7cd


case StreamIn(other, _) =>
log.warning("Unknown StreamIn request [{}]", other.getClass.getName)
log.warning("Stream [{}]: Unknown StreamIn request [{}]", logPrefix, other.getClass.getName)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a crash maybe even, if we add protocol that isn't supported it could be too important to drop.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Um, I'm not sure. Could it be good to ignore instead of failing for update scenarios where the versions are not in sync and we add new messages?

@patriknw patriknw merged commit d94dd81 into dev-filter Mar 22, 2023
@patriknw patriknw deleted the wip-replay-patriknw branch March 22, 2023 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants