noahshaw11 edited a comment on pull request #3766:
URL: https://github.com/apache/couchdb/pull/3766#issuecomment-1043344577
Logs of `should_persist_queue` test:
```
[notice] 2022-02-17T19:26:51.507665Z nonode@nohost <0.1666.0> --------
smoosh_channel Persisting "ratio_dbs" state, Active: [], Starting: [], Waiting:
{priority_queue,"ratio_dbs",#{<<"eunit-test-db-29f9313a853943a7e2ada21daa7d3b14">>
=>
{1850636.0843373493,{-576460747195516000,-576460752303423477}}},{1,{{1850636.0843373493,{-576460747195516000,-576460752303423477}},{<<"eunit-test-db-29f9313a853943a7e2ada21daa7d3b14">>,1850636.0843373493},nil,nil}}}
[notice] 2022-02-17T19:26:51.512522Z nonode@nohost <0.1712.0> --------
smoosh_priority_queue Successfully restored state file
/Users/ncshaw/src/couchdb/tmp/data/ratio_dbs.waiting
[notice] 2022-02-17T19:26:51.512628Z nonode@nohost <0.1712.0> -------- ~~
Q0:
{priority_queue,"ratio_dbs",#{<<"eunit-test-db-29f9313a853943a7e2ada21daa7d3b14">>
=>
{1850636.0843373493,{-576460747195516000,-576460752303423477}}},{1,{1850636.0843373493,{<<"eunit-test-db-29f9313a853943a7e2ada21daa7d3b14">>,{-576460747195516000,-576460752303423477}},nil,nil}}}
[info] 2022-02-17T19:26:51.513289Z nonode@nohost <0.44.0> --------
Application smoosh exited with reason: stopped
[info] 2022-02-17T19:26:51.513355Z nonode@nohost <0.44.0> --------
Application smoosh exited with reason: stopped
[info] 2022-02-17T19:26:51.513385Z nonode@nohost <0.44.0> --------
Application smoosh exited with reason: stopped
[info] 2022-02-17T19:26:51.513408Z nonode@nohost <0.44.0> --------
Application smoosh exited with reason: stopped
[info] 2022-02-17T19:26:51.513444Z nonode@nohost <0.44.0> --------
Application smoosh exited with reason: stopped
[notice] 2022-02-17T19:26:51.513884Z nonode@nohost <0.1712.0> --------
smoosh_priority_queue Successfully restored state file
/Users/ncshaw/src/couchdb/tmp/data/ratio_dbs.waiting
[notice] 2022-02-17T19:26:51.513998Z nonode@nohost <0.1712.0> -------- ~~
Q1:
{priority_queue,"ratio_dbs",#{<<"eunit-test-db-29f9313a853943a7e2ada21daa7d3b14">>
=>
{1850636.0843373493,{-576460747195516000,-576460752303423477}}},{1,{1850636.0843373493,{<<"eunit-test-db-29f9313a853943a7e2ada21daa7d3b14">>,{-576460747195516000,-576460752303423477}},nil,nil}}}
.
.
.
[notice] 2022-02-17T19:26:51.516256Z nonode@nohost <0.1727.0> --------
ratio_dbs: Starting compaction for
eunit-test-db-29f9313a853943a7e2ada21daa7d3b14 (priority
{-576460747195516000,-576460752303423477})
[info] 2022-02-17T19:26:51.516284Z nonode@nohost <0.1709.0> --------
Starting compaction for db "eunit-test-db-29f9313a853943a7e2ada21daa7d3b14" at 1
[notice] 2022-02-17T19:26:51.516309Z nonode@nohost <0.1727.0> --------
smoosh_channel Persisting "ratio_dbs" state, Active: [], Starting:
[{#Ref<0.981995199.3249012738.71442>,<<"eunit-test-db-29f9313a853943a7e2ada21daa7d3b14">>}],
Waiting: {priority_queue,"ratio_dbs",#{},{0,nil}}
```
The priority queue was successfully restored on smoosh restart and the
compaction job was started.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]