-
Notifications
You must be signed in to change notification settings - Fork 41
Backport to branch(3.12) : Add import command for data loader CLI #2706
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
Conversation
Co-authored-by: Peckstadt Yves <[email protected]> Co-authored-by: Toshihiro Suzuki <[email protected]>
|
@brfrn169 san, |
| File configFile = new File(configFilePath); | ||
| StorageFactory storageFactory = StorageFactory.create(configFile); | ||
| try (DistributedStorageAdmin storageAdmin = storageFactory.getStorageAdmin()) { | ||
| DistributedStorageAdmin storageAdmin = null; |
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.
@inv-jishnu Sorry, why do we need this change only for the 3.12 branch?
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.
@brfrn169 san,
As I mentioned above there was a CI failure
> Task :data-loader:cli:compileJava FAILED
/home/runner/work/scalardb/scalardb/data-loader/cli/src/main/java/com/scalar/db/dataloader/cli/command/dataimport/ImportCommand.java:99: error: incompatible types: try-with-resources not applicable to variable type
try (DistributedStorageAdmin storageAdmin = storageFactory.getStorageAdmin()) {
^
(DistributedStorageAdmin cannot be converted to AutoCloseable)
Note: /home/runner/work/scalardb/scalardb/data-loader/cli/src/main/java/com/scalar/db/dataloader/cli/command/dataexport/ScanOrderingConverter.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
I thought there may have been an update in DistributedStorageAdmin implementation. This only happened in 3.12 branch. Hence I changed the implementation.
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.
Ah, yes. Thanks!
brfrn169
left a comment
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.
LGTM! Thank you!
This is an automated backport of the following:
Please merge this PR after all checks have passed.