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

chunkserver : fix bug in trash when collecting chunknum miss chunk in… #417

Merged
merged 1 commit into from
Jul 9, 2021

Conversation

xu-chaojie
Copy link
Member

@xu-chaojie xu-chaojie commented Jul 8, 2021

… raft_snapshot dir

What problem does this PR solve?

Issue Number: close #xxx

Problem Summary:

What is changed and how it works?

What's Changed:

How it Works:

Side effects(Breaking backward compatibility? Performance regression?):

Check List

  • Relevant documentation/comments is changed or added
  • I acknowledge that all my contributions will be made under the project's license


uint32_t chunkNum = 0;
for (auto& chunk : chunks) {
// 遍历子文件
Copy link
Contributor

Choose a reason for hiding this comment

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

to English

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@@ -594,14 +593,30 @@ TEST_F(TrashTest, test_chunk_num_statistic) {
std::vector<std::string> logfiles2{};

// (1) chunk exists when init
// trash/
Copy link
Contributor

Choose a reason for hiding this comment

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

Not include the scenario bug triggered? Like '/data/chunkserver1/recycler/8589936511.1625810976/raft_snapshot/temp/data/chunk_10000'

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@xu-chaojie xu-chaojie merged commit d36eda2 into opencurve:master Jul 9, 2021
ilixiaocui pushed a commit to ilixiaocui/curve that referenced this pull request Feb 6, 2023
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.

3 participants