-
Notifications
You must be signed in to change notification settings - Fork 40
Refactor Data Loader Import to Use DistributedTransactionManager for Storage Mode #3147
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
base: master
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @inv-jishnu, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refactors the Data Loader's core import module to enhance compatibility with ScalarDB Cluster. By transitioning from Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request effectively refactors the data loader's import functionality to use DistributedTransactionManager instead of DistributedStorage for storage mode operations. The changes are clean, consistent, and significantly simplify the codebase by removing conditional logic based on ScalarDbMode and eliminating now-obsolete wrapper classes. The updates to the DAO layer and unit tests are correct and align with the goal of making the data loader compatible with ScalarDB Cluster. I have one suggestion for further cleanup to remove a now-unused field, but overall this is a solid improvement.
...r/core/src/main/java/com/scalar/db/dataloader/core/dataimport/processor/ImportProcessor.java
Show resolved
Hide resolved
|
@inv-jishnu For this the CI/Gradle Check is failing and it does seem data loader-related. Can you check that? If we cant keep the build working with this PR then we need to group them together. |
…eat/data-loader/import-replace-storage
|
@inv-jishnu It seems like this PR includes unrelated changes. |
@brfrn169 san, |
|
@brfrn169 san, I have updated the base branch to master, but it still has some other changes which is included in other PR which will be clear once the other PRs are merged and I will rebase changes from master to this one after that. |
feeblefakie
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!
Description
This pull request refactors the import functionality in the Data Loader core module to use the DistributedTransactionManager instead of the DistributedStorage interface when operating in storage mode.
This update is part of the broader effort to make the Data Loader compatible with ScalarDB Cluster, where DistributedStorage is not supported. By replacing storage-based operations with transaction-based APIs, the import process now aligns with the transactional architecture used by ScalarDB Cluster, ensuring consistent behavior and future maintainability.
In addition to this refactor, the PR also removes unused classes and methods that were no longer relevant after the transition, and updates the corresponding unit tests to reflect the new transactional behavior.
Related issues and/or PRs
Please review this PR after the following PR is merged
Changes made
Checklist
Additional notes (optional)
@inv-jishnu Dont forget to change the target branch once the other PRs have been merged.
Release notes
Refactor Data Loader Import to Use DistributedTransactionManager for Storage Mode and Clean Up Unused Code