-
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
REPLICATOR: Add TimePartitionMetaFilter to thanos replicate. #2979
REPLICATOR: Add TimePartitionMetaFilter to thanos replicate. #2979
Conversation
9f52fb1
to
cc16483
Compare
bdc6443
to
87d81a3
Compare
d57faab
to
e3c36f0
Compare
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.
Nice, just comments around deletion not being part of replicator
Im waiting on the depended MR to get merged to continue on this one. As the dependent MR will most likely introduce more merging conflicts. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@OGKevin In the meanwhile, could you maybe rebase and also sign DCO? |
This will allow time based replication. Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
e3c36f0
to
a4d95b8
Compare
Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
2d98401
to
e5297d7
Compare
Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
e5297d7
to
c18d069
Compare
Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
@bwplotka its ready for 👀! |
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.
Looks good generally, some suggestions.
Thanks 👍
fromBkt, | ||
"", | ||
reg, | ||
[]thanosblock.MetadataFilter{thanosblock.NewTimePartitionMetaFilter(*minTime, *maxTime)}, |
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.
Can we add this only if minTime and maxTime are passed? (:
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.
Wouldn't the behaviour be the same? As the max and min are almost infinite. What is the reason for only passing it if its set to non default value?
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.
Just no risk ;p
Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com>
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.
Amazing! Looks good to me 👍
Thanks!
…io#2979) * Add TimePartitionMetaFilter to thanos replicate. This will allow time based replication. Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Update docs and changelog. Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Fix lint Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Add posibility to delete blocks older than max time Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Fix metric naming. Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Fix order of arguments for max and min time. Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Remove deletion of blocks from replicator. Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Fix import formatting Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Revert unneeded changes due to replicator no longer deleting blocs Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> * Fix typo Signed-off-by: Kevin Hellemun <17928966+OGKevin@users.noreply.github.com> Signed-off-by: Oghenebrume50 <raphlbrume@gmail.com>
This will allow time based replication.
Its blocked by #2906
Changes
Verification