Include the release version number in log and support "--version" option on CLI. #268

Closed
adeconsulting opened this Issue Jan 21, 2014 · 3 comments

Comments

Projects
None yet
3 participants

The Google Group forums talk about OpenTSDB release 2.0 and such, however this value doesn't exist anywhere in the product -- at least that I can find.

The TSD log only says:
TSDMain: net.opentsdb built at revision 6f1d105 (MINT)

Please include the release version number in this output, e.g.
TSDMain: net.opentsdb 2.0.0 built at revision 6f1d105 (MINT)

In addition, it would be helpful for the CLI to also support a "--version" option, e.g.
$ ./tsdb --version

Owner

manolama commented Jan 21, 2014

The log is actually fixed in 2.0 ;) (i.e. the "next" branch in GIT)

18:03:37.951 [main] INFO net.opentsdb.tools.TSDMain - Starting.
18:03:37.957 [main] INFO net.opentsdb.tools.TSDMain - net.opentsdb 2.0.0 built at revision e98d565 (MINT)
18:03:37.958 [main] INFO net.opentsdb.tools.TSDMain - Built on 2013/12/20 23:32:35 +0000 by root@wtdb-1-4:/home/clarsen/ot/build

But yeah, the --version CLI arg sounds like a good idea.

Contributor

oozie commented Sep 14, 2014

Adding a pull request with tsdb version. The use case that I have in mind is as follows: In larger deployments, one might want to deploy a package to the fleet first and restart TSD service gradually in staggered fashion. For that, one wants to have visibility into the on-disk version (tsdb version) vs the running version (/version endpoint).

Owner

manolama commented Mar 2, 2015

Merged the PR related to this issue. 54303ce

@manolama manolama closed this Mar 2, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment