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

Wildcard subscription of ddata changes #31731

Merged
merged 6 commits into from
Nov 17, 2022
Merged

Conversation

patriknw
Copy link
Member

@patriknw patriknw commented Nov 14, 2022

  • Subscribe to keys starting with a given prefix.
  • Useful together with the new expiry feature, for example.
  • Also fixed a bug in the (non-released) exiry feature, gossip was broken.

TODO:

  • mima
  • reference and api docs
  • FIXMEs

* Subscribe to keys starting with a given prefix.
* Useful together with the new expiry feature, for example.
* Also fixed a bug in the (non-released) exiry feature, gossip was broken.
expiryDuration != Duration.Zero && timestamp <= System.currentTimeMillis() - expiryDuration.toMillis
} else {
false
}
Copy link
Member Author

Choose a reason for hiding this comment

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

This was a bug in the gossip exchange when expiry was configured (enabled) but exchanging other keys without expiry. getExpiryDuration is zero for those.

}

enterBarrier("done-7")
}
Copy link
Member Author

Choose a reason for hiding this comment

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

reproducer of the bug, but also required delta-crdt to be disabled to show up

val second = role("second")

commonConfig(ConfigFactory.parseString("""
akka.loglevel = DEBUG
Copy link
Member Author

Choose a reason for hiding this comment

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

change to INFO again

@patriknw patriknw added this to the 2.8.0-M1 milestone Nov 15, 2022
Copy link
Member

@johanandren johanandren left a comment

Choose a reason for hiding this comment

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

LGTM but additional test coverage could be good.

}

enterBarrier("done-3")
}
Copy link
Member

Choose a reason for hiding this comment

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

Add two/multiple subscribers with same and or overlapping wildcards, for good measure?

Copy link
Member Author

Choose a reason for hiding this comment

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

added a few more in f6675e2

Copy link
Contributor

@pvlugter pvlugter left a comment

Choose a reason for hiding this comment

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

LGTM

@patriknw patriknw merged commit b85d0e5 into main Nov 17, 2022
@patriknw patriknw deleted the wip-ddata-sub-wildcard-patriknw branch November 17, 2022 09:59
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.

3 participants