Skip to content

Conversation

@lordgarrish
Copy link
Contributor

@lordgarrish lordgarrish commented Aug 30, 2024

This commit adds extended CdcConsumerEx interface with the possiblity of passing the path of CDC directory to implementation of CdcRegexMatcher in extensions. This commit is a counterpart to commit with the same name in ignite-extensions, and they both should be merged simultaneously.

Thank you for submitting the pull request to the Apache Ignite.

In order to streamline the review of the contribution
we ask you to ensure the following steps have been taken:

The Contribution Checklist

  • There is a single JIRA ticket related to the pull request.
  • The web-link to the pull request is attached to the JIRA ticket.
  • The JIRA ticket has the Patch Available state.
  • The pull request body describes changes that have been made.
    The description explains WHAT and WHY was made instead of HOW.
  • The pull request title is treated as the final commit message.
    The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
  • A reviewer has been mentioned through the JIRA comments
    (see the Maintainers list)
  • The pull request has been checked by the Teamcity Bot and
    the green visa attached to the JIRA ticket (see TC.Bot: Check PR)

Notes

If you need any help, please email dev@ignite.apache.org or ask anу advice on http://asf.slack.com #ignite channel.

/**
* Regexp matcher that processes user's regexp patterns for CDC caches names.
*/
public interface CdcRegexMatcher {
Copy link
Contributor

@NSAmelchev NSAmelchev Oct 15, 2025

Choose a reason for hiding this comment

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

Why do we need it in the core module?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It could be a part of public API so that other users can implement their own matchers.

Copy link
Contributor

Choose a reason for hiding this comment

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

Users should implement their own CdcConsumer. The core module does not provide implementation details.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It'a an interface similiar to CdcConsumer. CdcConsumer itself does not contain regexp matching logic, but it can have an instance of CdcRegexMatcher as a field variable to do it. Users can implement their own CdcRegexMatcher or use default implementation in cdc-ext module.

Copy link
Contributor

Choose a reason for hiding this comment

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

How is CdcRegexMatcher handled in the core module?

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