-
Notifications
You must be signed in to change notification settings - Fork 104
Rm old mt index tools and mt-replicator #783
Conversation
0.7.0 was relased feb 7, 2017 https://github.com/grafana/metrictank/releases/tag/0.7.0 we no longer support anything before that
mt-replicator uses the sarama-cluster for distributing partitions between instances and tracking offsets but it does not work reliably. We have tried to use mt-replicator before and it regularly just stops consuming from some partitions.
using something like rsync -au --delete would be nicer but i don't want to assume we have rsync available in CI.
scripts/check_docs_uptodate.sh
Outdated
./config-to-doc.sh > $tmp | ||
diff ../docs/config.md $tmp | ||
|
||
# metrics2docs .> docs/metrics.md this doesn't work very well yet |
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.
you might want to rm $tmp
exit 2 | ||
fi | ||
./config-to-doc.sh > $tmp | ||
diff ../docs/config.md $tmp |
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 unfinished
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.
what do you mean?
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.
did you mean $tmp removal also here?
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.
it doesn't do anything with the returned value. or is it supposed to just output the diff and nothing else?
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.
it outputs the diff, if any, and the script exits with the exit code of the diff command, so that we can verify it. but to your point, i will add the rm $tmp which requires adding the explicit exiting with diff's exit code (which currently is not obvious to the reader)
@replay fixed |
LGTM |
I expect the new scripts/check_docs_uptodate.sh will break the build, because we have a lot of accumulated out-of-date-ness (unrelated to this PR) that we have to address