-
Notifications
You must be signed in to change notification settings - Fork 525
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
Conversation
recheck |
5 similar comments
recheck |
recheck |
recheck |
recheck |
recheck |
@@ -164,6 +166,8 @@ class Trash { | |||
// 回收站中chunk的个数 | |||
Atomic<uint32_t> chunkNum_; |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
update Keptn mentees
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