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 about trash bytes metric #294

Merged
merged 1 commit into from
Mar 23, 2021

Conversation

xu-chaojie
Copy link
Member

@xu-chaojie xu-chaojie commented Mar 16, 2021

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

@xu-chaojie
Copy link
Member Author

recheck

5 similar comments
@xu-chaojie
Copy link
Member Author

recheck

@xu-chaojie
Copy link
Member Author

recheck

@xu-chaojie
Copy link
Member Author

recheck

@xu-chaojie
Copy link
Member Author

recheck

@xu-chaojie
Copy link
Member Author

recheck

@@ -164,6 +166,8 @@ class Trash {
// 回收站中chunk的个数
Atomic<uint32_t> chunkNum_;
Copy link
Contributor

Choose a reason for hiding this comment

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

Does chunkNum_ is the number of chunk file and snapshot file ?
When chunkFilePool_ and walPool_ refer to the same pool, should chunkNum_ also include wal chunk file ?

Copy link
Member Author

Choose a reason for hiding this comment

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

This issue is left to fix by future PR

LOG(ERROR) << "rename " << dirPath << " to " << dst << " error";
return -1;
}
uint32_t chunkNum = CountChunkNumInCopyset(dst);
Copy link
Contributor

Choose a reason for hiding this comment

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

CountChunkNumInCopyset does not contain wal file?

Copy link
Member Author

Choose a reason for hiding this comment

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

This issue is left to fix by future PR

Copy link
Contributor

@Wine93 Wine93 Mar 31, 2021

Choose a reason for hiding this comment

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

There is expiredAfterSec_ seconds interval between RecycleCopySet() and RecycleChunksAndWALInDir() for the same copyset directory,so how it causes concurrency issues? See NeedDelete

@ilixiaocui ilixiaocui merged commit 75a2a2a into opencurve:master Mar 23, 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.

4 participants