-
Notifications
You must be signed in to change notification settings - Fork 33
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
Support custom metadata log service implementation #389
Support custom metadata log service implementation #389
Conversation
Signed-off-by: Sean Kao <[email protected]>
Signed-off-by: Sean Kao <[email protected]>
Signed-off-by: Sean Kao <[email protected]>
Signed-off-by: Sean Kao <[email protected]>
Signed-off-by: Sean Kao <[email protected]>
...re/src/main/scala/org/opensearch/flint/core/metadata/log/FlintMetadataLogServiceBuilder.java
Show resolved
Hide resolved
e8f3e86
to
c83b667
Compare
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.
thx!
...re/src/main/scala/org/opensearch/flint/core/metadata/log/FlintMetadataLogServiceBuilder.java
Show resolved
Hide resolved
c83b667
to
4f40bc1
Compare
Signed-off-by: Sean Kao <[email protected]>
4f40bc1
to
95b7a9d
Compare
This reverts commit 95b7a9d. Signed-off-by: Sean Kao <[email protected]>
Signed-off-by: Sean Kao <[email protected]>
* <p> | ||
* Custom implementations of {@link FlintMetadataLogService} are expected to provide a public | ||
* constructor with the signature {@code public MyCustomService(SparkConf sparkConf)} to be | ||
* instantiated by this builder. | ||
*/ | ||
public class FlintMetadataLogServiceBuilder { |
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.
should FlintMetadataLogServiceBuilder moved to common as well?
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.
no this needs access to FlintOpenSearchMetadataLogService
...re/src/main/scala/org/opensearch/flint/core/metadata/log/FlintMetadataLogServiceBuilder.java
Show resolved
Hide resolved
…t#389) * reflection to build metadata log service Signed-off-by: Sean Kao <[email protected]> * move common interface to flint-commons Signed-off-by: Sean Kao <[email protected]> * remove unused failLogEntry Signed-off-by: Sean Kao <[email protected]> * fix test Signed-off-by: Sean Kao <[email protected]> * scalafmtAll Signed-off-by: Sean Kao <[email protected]> * change service from interface to abstract class Signed-off-by: Sean Kao <[email protected]> * Revert "change service to abstract class" This reverts commit 95b7a9d. Signed-off-by: Sean Kao <[email protected]> * add javadoc for metadata log service constructor Signed-off-by: Sean Kao <[email protected]> --------- Signed-off-by: Sean Kao <[email protected]>
Description
FlintMetadataLogServiceBuilder
to support custom implementation ofFlintMetadataLogService
SparkConf
for such builderFlintMetadataLogService
an abstract class with a constructor usingSparkConf
FlintMetadataLog
,FlintMetadataLogEntry
,FlintMetadataLogService
,OptimisticTransaction
failLogEntry
fromFlintMetadataLogEntry
(no access to org.opensearch.index namespace). Can add back in next PR when storage is abstracted away from the commonFlintMetadataLogEntry
Issues Resolved
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.