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

HDDS-11975. wrap TermIndex in ExecutionContext #7602

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sumitagrawl
Copy link
Contributor

@sumitagrawl sumitagrawl commented Dec 20, 2024

What changes were proposed in this pull request?

Wrap TermIndex in ExecutionContext. ExecutionContext.getIndex() will have same value as termIndex.

There is no logic change.

Later, with below Jira, dependency with ratisIndex will be removed,
https://issues.apache.org/jira/browse/HDDS-11901

Parent Jira:
https://issues.apache.org/jira/browse/HDDS-11897

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-11975

How was this patch tested?

Existing testcase

@sumitagrawl sumitagrawl marked this pull request as ready for review December 20, 2024 13:55
Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

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

Thanks @sumitagrawl for the patch.

I think we can keep using TermIndex even if the index is not generated by Ratis, similar to how it's used currently when Ratis is disabled in OM. TermIndex is just an interface, we can define custom implementation, if additional data is needed for generating our own index. Thus we could avoid wrapping it in yet another object, and skip refactoring a bunch of code.

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