-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
ConsistencyDelayMetaFilter should filter on the block upload time and not the block creation time #2585
Comments
There was already issue for that... |
I can't find this ticket ;p So let's keep this. Definitely todo. We did not have just yet We started some work in some old PRs. I think we also thought getting the |
The problem of doing it is that we'll double the API calls for this specific use case, because most of the object stores allow to get it along with the How would you feel about changing the To: Where
With the contract that if such information are unavailable return returned |
On the other side, adding a |
It seems weird for it to be part of |
After a brief discussion on Slack, looks there's consensus for adding the |
Hello 👋 Looks like there was no activity on this issue for last 30 days. |
Still valid and actually possible thanks to recent changes. Some description why it's important you can see here: #2470 |
Question from my side: Should we cache in anyway the ModTime. I think yes. |
We already cache modification time, if that’s what you’re saying. |
😱 That's perfect yes (if someone uses cache option for this). Then it's quite easy work, marking as good first issue |
Hello 👋 Looks like there was no activity on this issue for last 30 days. |
Valid. #2883 is open. |
Hello 👋 Looks like there was no activity on this issue for last 30 days. |
Valid. #2883 is open. |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
#2883 still in progress.
…On Fri, 16 Oct 2020 at 12:52, stale[bot] ***@***.***> wrote:
Hello 👋 Looks like there was no activity on this issue for the last two
months.
*Do you mind updating us on the status?* Is this still reproducible or
needed? If yes, just comment on this PR or push a commit. Thanks! 🤗
If there will be no activity in the next two weeks, this issue will be
closed (we can always reopen an issue if we need!). Alternatively, use
remind command <https://probot.github.io/apps/reminders/> if you wish to
be reminded at some point in future.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2585 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVA3OY46KAMHGHGDMNBBNDSLAQV7ANCNFSM4M5ZWP4Q>
.
|
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Not stale. |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Closing for now as promised, let us know if you need this to be reopened! 🤗 |
The
ConsistencyDelayMetaFilter
filter currently filters out blocks based on the ULID time, which is the time when the block has been created:thanos/pkg/block/fetcher.go
Line 727 in cfced59
This means that if that actual consistency delay is the configured delay minus the upload time. If the delay is X but the block upload time is > X, the consistency delay is effectively ignored.
To correct approach would be checking the consistency delay against the "block upload completed timestamp" and, to do so, checking the
meta.json
creation time could be fine. However, object stores stores the "updated time" and not the "creation time", so I'm wondering how safe would be using it. Thoughts?The text was updated successfully, but these errors were encountered: