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

[INLONG-10384][Agent] Add functions to the Store interface to extend new storage plugins #10385

Merged
merged 9 commits into from
Jun 12, 2024

Conversation

justinwwhuang
Copy link
Contributor

@justinwwhuang justinwwhuang commented Jun 11, 2024

Fixes #10384

Motivation

Add functions to the Store interface which is used to store task, instance and offset info to extend new storage plugins

Modifications

1 add String getSplitter(): Different storage has different requirements for delimiters

2 add String getUniqueKey(): For remote storage, a unique identifier is needed to distinguish agents

3 add String replaceKeywords(String source): Different storage has different keyword restrictions

Verifying this change

(Please pick either of the following options)

  • This change is a trivial rework/code cleanup without any test coverage.

  • This change is already covered by existing tests, such as:
    (please describe tests)

  • This change added tests and can be verified as follows:

    (example:)

    • Added integration tests for end-to-end deployment with large payloads (10MB)
    • Extended integration test for recovery after broker failure

Documentation

No doc needed

doleyzi
doleyzi previously approved these changes Jun 11, 2024
Copy link
Contributor

@doleyzi doleyzi left a comment

Choose a reason for hiding this comment

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

LGTM

@justinwwhuang justinwwhuang changed the title [INLONG-10384][Agent] Add functions to the Db interface to extend new storage plugins [INLONG-10384][Agent] Add functions to the Store interface to extend new storage plugins Jun 12, 2024
EMsnap
EMsnap previously approved these changes Jun 12, 2024
luchunliang
luchunliang previously approved these changes Jun 12, 2024
@dockerzhang dockerzhang merged commit a0f123b into apache:master Jun 12, 2024
8 checks passed
@justinwwhuang justinwwhuang deleted the b10384 branch June 12, 2024 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improve][Agent] Add functions to the Store interface to extend new storage plugins
6 participants