Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Extract metadata log operations from FlintClient into FlintMetadataLogService #379
Extract metadata log operations from FlintClient into FlintMetadataLogService #379
Changes from 13 commits
9faadf4
8b715ec
36c7df4
54064a1
ddb1ac2
d1de5e6
a1d6925
4d8cba9
667f5c2
af971e7
f4e90e4
819f711
6b86c11
f534a98
8bad367
88de3a3
7c4d0ec
9664595
346e344
f612fa7
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should better naming FlintOpenSearchClient, the reasons it FlintOpenSearchClient depend FlintMedataLogService, not OpenSearch. Or in the other way,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for above comment.
Also, what is the value add of FlintOpenSearchClient if we are passing down everything to FlintMetadataLogService?
Can we replace FlintOpenSearchClient with FlintMetadataLogService where ever we make operations on FlintMetadataLog.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For
startTransaction
I agree that we can make the callers use FlintMetadataLogService instead. However, FlintOpenSearchClientgetIndexMetadata
still needs FlintMetadataLogService togetMetadataLog
.Will try to move it away from getIndexMetadata and instead use it in its caller (FlintSpark describeIndex)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously we only initialize request index when starting transaction in
createIndex
. Now current change is to init whenever new APIgetIndexMetadataLog
called? Not sure the impact and if benefit on code structure.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure... init is indeed not required. Changed so that the
FlintMetadataLogService
public interface forgetIndexMetadataLog
cannot init request index. It gets metadata log if available.Now the
initIfNotExist
is only used as private method forFlintOpenSearchMetadataLogService
as part ofstartTransaction
with forceInit.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
FlintMetadataLogService
operation fromFlintOpenSearchClient