Skip to content
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

[ISSUE #289] Support Register-Model server based on DLedger #288

Merged
merged 10 commits into from
May 29, 2023
Prev Previous commit
Next Next commit
feat(jepsen): pass network partition test
1. pass network partition test

Closes #286
  • Loading branch information
TheR1sing3un committed May 23, 2023
commit 5eddd62a31a59eb4d404b574b85375b4c1784390
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public String getBindDLedgerId() {
}

public Integer getValue(Integer key) {
return this.register.getOrDefault(key, -1);
return this.register.get(key);
}

public ConcurrentHashMap<Integer, Integer> getRegister() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@
(reify db/DB
(setup! [_ test node]
(start! test node)
(Thread/sleep 1000))
(Thread/sleep 10000))

(teardown! [_ _ node]
(stop! node)
(Thread/sleep 1000)
(Thread/sleep 10000)
(c/exec
:rm
:-rf
Expand Down Expand Up @@ -178,10 +178,9 @@
{:perf (checker/perf)
:indep (independent/checker
(checker/compose
{:timeline (timeline/html)
:linear (checker/linearizable
{:model (model/register)
:algorithm :linear})}))})
{:linear (checker/linearizable
{:model (model/cas-register)})
:timeline (timeline/html)}))})
:generator (->> (independent/concurrent-generator
(:concurrency opts 5)
(range)
Expand Down