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

Fix device manager load of chunks. #321

Merged
merged 1 commit into from
Mar 11, 2024
Merged

Conversation

sanebay
Copy link
Contributor

@sanebay sanebay commented Feb 13, 2024

Chunks getting duplciate start offset while recovery. Add or cleanup logs for debugging. Add test case.

src/lib/logstore/log_dev.cpp Outdated Show resolved Hide resolved
@sanebay sanebay force-pushed the device_mgr_fix branch 2 times, most recently from 7fb6f47 to 9d2020c Compare February 13, 2024 02:01
@codecov-commenter
Copy link

codecov-commenter commented Feb 13, 2024

Codecov Report

Attention: Patch coverage is 62.06897% with 44 lines in your changes are missing coverage. Please review.

Project coverage is 58.42%. Comparing base (29f9d6f) to head (84ef93d).

Files Patch % Lines
src/lib/device/journal_vdev.cpp 53.33% 18 Missing and 3 partials ⚠️
src/lib/logstore/log_stream.cpp 46.66% 8 Missing ⚠️
src/lib/logstore/log_dev.cpp 79.16% 5 Missing ⚠️
src/lib/logstore/log_dev.hpp 0.00% 2 Missing ⚠️
.../lib/replication/log_store/home_raft_log_store.cpp 0.00% 2 Missing ⚠️
src/lib/replication/repl_dev/raft_repl_dev.cpp 0.00% 2 Missing ⚠️
src/lib/device/device_manager.cpp 85.71% 0 Missing and 1 partial ⚠️
src/lib/device/journal_vdev.hpp 0.00% 1 Missing ⚠️
src/lib/device/physical_dev.cpp 66.66% 1 Missing ⚠️
src/lib/logstore/log_store.cpp 91.66% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #321      +/-   ##
==========================================
+ Coverage   49.84%   58.42%   +8.58%     
==========================================
  Files         134      107      -27     
  Lines       14337     9333    -5004     
  Branches     1730     1202     -528     
==========================================
- Hits         7146     5453    -1693     
+ Misses       6547     3350    -3197     
+ Partials      644      530     -114     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sanebay sanebay force-pushed the device_mgr_fix branch 2 times, most recently from dfc7a99 to 67c8422 Compare February 14, 2024 01:36
@sanebay sanebay force-pushed the device_mgr_fix branch 2 times, most recently from de87714 to 35b11dc Compare February 16, 2024 00:20
hkadayam
hkadayam previously approved these changes Feb 16, 2024
Copy link
Collaborator

@hkadayam hkadayam left a comment

Choose a reason for hiding this comment

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

Please create a github issue for removing logdev_id from every log_group entry.

@sanebay sanebay force-pushed the device_mgr_fix branch 8 times, most recently from b443c0e to ccc85e8 Compare February 26, 2024 21:28
@sanebay sanebay force-pushed the device_mgr_fix branch 2 times, most recently from 51cbf13 to 7bd7206 Compare March 5, 2024 21:51
src/lib/device/journal_vdev.cpp Outdated Show resolved Hide resolved
src/lib/logstore/log_dev.cpp Show resolved Hide resolved
src/lib/logstore/log_stream.cpp Show resolved Hide resolved
src/lib/logstore/log_stream.cpp Outdated Show resolved Hide resolved
@sanebay sanebay force-pushed the device_mgr_fix branch 5 times, most recently from 68c86d7 to 8226a76 Compare March 8, 2024 21:41
@yamingk
Copy link
Contributor

yamingk commented Mar 11, 2024

please update conan ver

@yamingk
Copy link
Contributor

yamingk commented Mar 11, 2024

Reviewed the files under devices directory and thy look good to me, expect some cosmetic comments.

yamingk
yamingk previously approved these changes Mar 11, 2024
Chunks getting duplciate start offset while recovery. Add or cleanup
logs for debugging. Add test case. Add more logdev for logstore test.
Enable logstore test. Move rollback test to new logdev test.
@sanebay
Copy link
Contributor Author

sanebay commented Mar 11, 2024

please update conan ver

Done. log_dev_test is using test_common::HSTestHelper::start_homestore

@sanebay sanebay merged commit 2c500c5 into eBay:master Mar 11, 2024
20 checks passed
@sanebay sanebay deleted the device_mgr_fix branch March 11, 2024 19:41
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

5 participants