We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
consumer.WithConsumeFromWhere(consumer.ConsumeFromTimestamp) 但无法设置ConsumeTimestamp 通过代码来看,也没有计算最近半小时的选择
//consumer/consumer.go line:784 case ConsumeFromTimestamp: if lastOffset == -1 { if strings.HasPrefix(mq.Topic, internal.RetryGroupTopicPrefix) { lastOffset, err := dc.queryMaxOffset(mq) if err == nil { result = lastOffset } else { result = -1 rlog.Warning("query max offset error", map[string]interface{}{ rlog.LogKeyMessageQueue: mq, rlog.LogKeyUnderlayError: err, }) } } else { t, err := time.Parse("20060102150405", dc.option.ConsumeTimestamp) if err != nil { result = -1 } else { lastOffset, err := dc.searchOffsetByTimestamp(mq, t.Unix()*1000) if err != nil { result = -1 } else { result = lastOffset } } } } default:
The text was updated successfully, but these errors were encountered:
try this #681 you can set consumer offset by timestamp through console
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
consumer.WithConsumeFromWhere(consumer.ConsumeFromTimestamp) 但无法设置ConsumeTimestamp
通过代码来看,也没有计算最近半小时的选择
The text was updated successfully, but these errors were encountered: