-
Notifications
You must be signed in to change notification settings - Fork 5
Use include_metadata configuration in Consensus Commit #152
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,7 +29,8 @@ | |
| (.setProperty "scalar.db.consensus_commit.coordinator.group_commit.slot_capacity" "4") | ||
| (.setProperty "scalar.db.consensus_commit.coordinator.group_commit.old_group_abort_timeout_millis" "15000") | ||
| (.setProperty "scalar.db.consensus_commit.coordinator.group_commit.delayed_slot_move_timeout_millis" "400") | ||
| (.setProperty "scalar.db.consensus_commit.coordinator.group_commit.metrics_monitor_log_enabled" "true"))) | ||
| (.setProperty "scalar.db.consensus_commit.coordinator.group_commit.metrics_monitor_log_enabled" "true") | ||
| (.setProperty "scalar.db.consensus_commit.include_metadata.enabled" "true"))) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Set the |
||
|
|
||
| (defprotocol DbExtension | ||
| (get-db-type [this]) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -132,13 +132,11 @@ | |
| [test n] | ||
| (try | ||
| (let [tx (scalar/start-transaction test) | ||
| tx-results (map #(.get tx (prepare-get %)) (range n)) | ||
| ;; Need Storage API to read the transaction metadata | ||
| results (mapv #(.get @(:storage test) (prepare-get %)) (range n))] | ||
|
Comment on lines
-136
to
-137
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed the use of the Storage API. |
||
| results (map #(.get tx (prepare-get %)) (range n))] | ||
| ;; Put the same balance to check conflicts with in-flight transactions | ||
| (mapv #(->> (calc-new-balance %2 0) (prepare-put %1) (.put tx)) | ||
| (range n) | ||
| tx-results) | ||
| results) | ||
| (.commit tx) | ||
| results) | ||
| (catch Exception e | ||
|
|
@@ -148,11 +146,9 @@ | |
| (defn read-all-with-retry | ||
| [test n] | ||
| (scalar/check-transaction-connection! test) | ||
| (scalar/check-storage-connection! test) | ||
| (scalar/with-retry | ||
| (fn [test] | ||
| (scalar/prepare-transaction-service! test) | ||
| (scalar/prepare-storage-service! test)) | ||
| (scalar/prepare-transaction-service! test)) | ||
| test | ||
| (read-all test n))) | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
I think this change also affects the cluster test, so I added the configuration here as well.
Note that I didn't add support for the read-committed isolation level and the one-phase commit optimization in the cluster test.