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

IGNITE-22530 CDC: Add regex filters for cache names #286

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lordgarrish
Copy link
Contributor

@lordgarrish lordgarrish commented Aug 30, 2024

This commit adds multiple include and exclude filters to all current implementations of Apache Ignite CDC: Ignite2Ignite, Ignite2Kafka and additional filters for Kafka2Ignite. Filters implemented in form of pure regular expressions, and in case of invalid regexp CDC will throw PatternSyntaxException. Regexes can be added to the configurations of CDC streamers, and any cache created after it and matching the pattern, will be added "on-the-go".
More info in ticket: https://issues.apache.org/jira/browse/IGNITE-22530

This commit is a counterpart to commit with the same name in ignite, and they both should be merged simultaneously.

/**
* @param includeTemplates Include regex templates
*/
public void setIncludeTemplates(Set<String> includeTemplates) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need a set of patterns and exclude patterns? Seems other products provide only single pattern, for example Kafka consumer.

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