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

Flush rocksdb before clean expired wal #2128

Merged
merged 3 commits into from
May 15, 2020
Merged

Conversation

critical27
Copy link
Contributor

Flush rocksdb before clean expired wal. This pr would fix when a part does not have any input data for a long time, then it crash, the data in rocksdb may have not been flushed to disk, however, the wal has been expired and deleted.

@codecov-io
Copy link

codecov-io commented May 14, 2020

Codecov Report

Merging #2128 into master will increase coverage by 0.05%.
The diff coverage is 82.92%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2128      +/-   ##
==========================================
+ Coverage   86.80%   86.85%   +0.05%     
==========================================
  Files         641      641              
  Lines       61369    61525     +156     
==========================================
+ Hits        53272    53439     +167     
+ Misses       8097     8086      -11     
Impacted Files Coverage Δ
src/common/base/ConcurrentLRUCache.h 100.00% <ø> (ø)
src/common/utils/NebulaKeyUtils.cpp 97.45% <0.00%> (-2.55%) ⬇️
src/common/utils/NebulaKeyUtils.h 90.41% <ø> (ø)
src/graph/CloudAuthenticator.cpp 0.00% <0.00%> (ø)
src/kvstore/KVEngine.h 100.00% <ø> (ø)
src/kvstore/NebulaStore.h 91.30% <ø> (ø)
src/kvstore/RocksEngine.h 87.50% <ø> (ø)
src/kvstore/RocksEngineConfig.cpp 75.51% <ø> (ø)
src/kvstore/SnapshotManagerImpl.cpp 0.00% <0.00%> (ø)
src/kvstore/raftex/RaftPart.cpp 77.57% <ø> (-0.40%) ⬇️
... and 40 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 07dcf1b...6f1b914. Read the comment docs.

dangleptr
dangleptr previously approved these changes May 14, 2020
Copy link
Contributor

@dangleptr dangleptr left a comment

Choose a reason for hiding this comment

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

lgtm

laura-ding
laura-ding previously approved these changes May 14, 2020
Copy link
Contributor

@laura-ding laura-ding left a comment

Choose a reason for hiding this comment

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

Well done

Copy link
Contributor

@bright-starry-sky bright-starry-sky left a comment

Choose a reason for hiding this comment

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

Well done. LGTM

Copy link
Contributor

@bright-starry-sky bright-starry-sky left a comment

Choose a reason for hiding this comment

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

LGTM

@dangleptr dangleptr merged commit 29492fa into vesoft-inc:master May 15, 2020
knightXun pushed a commit to knightXun/nebula that referenced this pull request Nov 2, 2020
* flush before clean wal

* address comments
tong-hao pushed a commit to tong-hao/nebula that referenced this pull request Jun 1, 2021
* flush before clean wal

* address comments
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Jan 31, 2023
)

* Add max_sessions_per_ip_per_user to default config file

* fix conflict

Co-authored-by: Yichen Wang <18348405+Aiee@users.noreply.github.com>
Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants