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

[Untyped API] ReplicationActor reports a lot of unhandled event (NoOp) #76

Open
negokaz opened this issue May 7, 2021 · 0 comments
Open

Comments

@negokaz
Copy link
Contributor

negokaz commented May 7, 2021

RaftActor sends NoOp to ReplicationActor however receiveReplica may not handle the event because users are not interested in the event.

Users show a lot of warnings that is produced by following the method

  private[this] def innerApplyEvent(event: Any, logEntryIndex: LogEntryIndex): Unit = {
    if (logEntryIndex > lastAppliedLogEntryIndex) {
      receiveReplica.applyOrElse[Any, Unit](
        event,
        event => {
          log.warning("unhandled {} by receiveReplica", event)
        },
      )
      lastAppliedLogEntryIndex = logEntryIndex
    }
  }

akka-entity-replication/ReplicationActor.scala at v1.0.0 · lerna-stack/akka-entity-replication

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

No branches or pull requests

1 participant