Repository navigation
queue: able to set max disk used bytes for diskQueue - #706
Merged
wonderflow merged 1 commit intoAug 15, 2018
Merged
Conversation
wonderflow
reviewed
Aug 14, 2018
| opts.MemoryQueueSize = 100 | ||
| } | ||
|
|
||
| if opts.EnableDiskUsedLimit && opts.MaxDiskUsedBytes <= 0 { |
Collaborator
|
lgtm |
wonderflow
reviewed
Aug 14, 2018
| maxMemoryLength = 0 | ||
| } else if enableMemory && maxMemoryLength <= 0 { | ||
| maxMemoryLength = 100 | ||
| func NewDiskQueue(opts NewDiskQueueOptions) BackendQueue { |
Contributor
There was a problem hiding this comment.
这样改这个包就不兼容了,到时候smartelf和logkit-pro升级要注意下
Contributor
Author
There was a problem hiding this comment.
本来就要多个参数编译就过不了的,一次性改成这种形式的以后更加方便添加更多选项
wonderflow
reviewed
Aug 14, 2018
| d.writeOne(msg) | ||
| err := d.writeOne(msg) | ||
| if err != nil { | ||
| log.Errorf("DISKQUEUE(%s): drop one msg from memory chan - %v", d.name, err) |
Contributor
Author
There was a problem hiding this comment.
Contributor
Author
There was a problem hiding this comment.
如果 writeOne 一直失败就会无限循环退出不来
Contributor
Author
There was a problem hiding this comment.
如果 writeOne 一直失败就会无限循环退不出来
Contributor
Author
There was a problem hiding this comment.
不过之前就一直在丢数据... 这要怎么操作
Lines 793 to 800 in d044334
Contributor
|
LGTM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
JIRA: https://jira.qiniu.io/browse/PDR-7002