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

[Test] Restart the database using three modes #406

Merged
merged 6 commits into from
Aug 7, 2023
Merged

[Test] Restart the database using three modes #406

merged 6 commits into from
Aug 7, 2023

Conversation

RuiHuaLiu2023
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Aug 6, 2023

Codecov Report

Merging #406 (fd5412e) into master (a81dd1a) will increase coverage by 1.39%.
Report is 1 commits behind head on master.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #406      +/-   ##
==========================================
+ Coverage   62.39%   63.78%   +1.39%     
==========================================
  Files          31       31              
  Lines        5246     5247       +1     
==========================================
+ Hits         3273     3347      +74     
+ Misses       1688     1604      -84     
- Partials      285      296      +11     

see 3 files with indirect coverage changes

Copy link
Member

@elliotchenzichang elliotchenzichang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments!

db_test.go Outdated
opt.EntryIdxMode = HintKeyValAndRAMIdxMode
opt.SegmentSize = 8 * 1024

withDBOption(t, opt, func(t *testing.T, db *DB) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can recall that @bigboss2063 refacted the code which runs test case with customized database. Could you help also refactor this part of code when you have time? For more context and code style you can refer this artcle. Thanks!https://mp.weixin.qq.com/s/w8YaLU0b3bEzUXdrxezodQ

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this is the related PR link! #375

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

merge_test.go Outdated
"sync"
"testing"
"time"

"github.com/stretchr/testify/require"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why only added dependency in this file? Is that expected?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know, maybe my editor did it, I'll check it out

Copy link
Member

@elliotchenzichang elliotchenzichang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!Thanks for this great contribution!

@elliotchenzichang elliotchenzichang merged commit effcb9b into nutsdb:master Aug 7, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants