Bug 207400 - databases/influxdb: v0.11 available
Summary: databases/influxdb: v0.11 available
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Palle Girgensohn
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-21 20:02 UTC by Ron
Modified: 2016-04-11 11:12 UTC (History)
3 users (show)

See Also:
cheffo: maintainer-feedback+


Attachments
patch to update inflxudb port to 0.11.1 (14.74 KB, patch)
2016-04-02 01:58 UTC, Palle Girgensohn
girgen: maintainer-approval? (cheffo)
Details | Diff
minor fixes, new version of patch for influxdb-0.11.1 (14.60 KB, patch)
2016-04-02 02:05 UTC, Palle Girgensohn
no flags Details | Diff
Poudriere output (14.34 KB, text/plain)
2016-04-04 09:46 UTC, Palle Girgensohn
no flags Details
Update influxdb do v0.12.1 (17.65 KB, patch)
2016-04-11 09:37 UTC, cheffo
cheffo: maintainer-approval+
Details | Diff
portlin output for influxdb-0.12.1 (365 bytes, text/plain)
2016-04-11 09:39 UTC, cheffo
cheffo: maintainer-approval+
Details
poudriere testport output for influxdb-0.12.1 (14.19 KB, text/plain)
2016-04-11 09:39 UTC, cheffo
cheffo: maintainer-approval+
Details
complete patch will be (15.56 KB, patch)
2016-04-11 11:05 UTC, Palle Girgensohn
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ron 2016-02-21 20:02:10 UTC
In addition to the update being available, when I install InfluxDB 0.10 and run `influxd version` the output is actually reporting 0.9.

## FreeBSD Package Version

bsd% pkg info influxdb
influxdb-0.10.0
Name           : influxdb
Version        : 0.10.0
Installed on   : Sun Feb 21 19:54:59 2016 UTC
Origin         : databases/influxdb

bsd% influxd version
InfluxDB v0.9 (git: unknown unknown, built unknown)

## On my Local Mac (Installed from Homebrew)

mac% influxd version
InfluxDB v0.10.1 (git: 0.10.0 b8bb32ecad9808ef00219e7d2469514890a0987a, built unknown)
Comment 1 optikfluffel 2016-03-09 11:06:06 UTC
A couple of days ago 0.10.2 was released.
Comment 2 cheffo 2016-03-10 10:02:37 UTC
v0.10.3 was released few hours ago :) I'll look at porting latest version.

I'll check what is the issue with the version number, but I think it's autogenerated when building from git. As in ports we do not git directly (we prefetch everything in advance) this probably does not work as excpected. I'll report to upstream and check whether they want to fix it.
Comment 3 Ron 2016-03-10 11:01:18 UTC
You're correct, it is auto generated when building: 

https://github.com/influxdata/influxdb/blob/8115cdf5bf478818e2f14e6a64c7e152130b0d0d/monitor/build_info.go#L7

That said, our cache is still pointing at 0.9 release. Could we, in theory prefetch the tagged release source files (maybe that is what we're doing)?

Here is the direct URL: https://github.com/influxdata/influxdb/archive/v0.10.3.tar.gz

Then when new releases are announced it should be an easy tweak in the Port/Package. Thoughts?

R
Comment 4 cheffo 2016-03-10 17:00:49 UTC
Hi,

I'm fetching the tagged releases yes.

Normally it's not hard to update to next version, but have in mind that I have to update and all dependencies which do take some time, also there are always new dependencies and also some obsolete dependencies, so it's little more complicated then just bumping the version.

Now there are more issues - moving from influxdb to influxdata need some additional rewritting and I'm still not at the point to have working v0.10.3 port.
Comment 6 Palle Girgensohn freebsd_committer freebsd_triage 2016-03-29 19:25:01 UTC
I edited the subject to reflect that 0.11 is what we are looking forward to. :)

Cheffo@, do you need any help?

Palle
Comment 7 Palle Girgensohn freebsd_committer freebsd_triage 2016-04-02 01:58:01 UTC
Created attachment 168885 [details]
patch to update inflxudb port to 0.11.1

Hi,

I hacked up a patch to update influxdb to 0.11.1. builds fins. 

@cheffo, if you approve, I can commit it, OK?

Palle
Comment 8 Palle Girgensohn freebsd_committer freebsd_triage 2016-04-02 02:05:04 UTC
Created attachment 168886 [details]
minor fixes, new version of patch for influxdb-0.11.1

didd't need USES+=          gmake
and no PORTSDIR in
BUILD_DEPENDS=  go>=1.5.0:lang/go
Comment 9 cheffo 2016-04-04 08:23:35 UTC
Can you attach poudriere testport output for your latest patch?
Comment 10 Palle Girgensohn freebsd_committer freebsd_triage 2016-04-04 09:46:38 UTC
Created attachment 168954 [details]
Poudriere output
Comment 11 Palle Girgensohn freebsd_committer freebsd_triage 2016-04-04 09:51:40 UTC
I haven't made any changes to the sample config file, although in the manual they suggest looking through the output of influxd config.

Also, 0.11 is incompatible with 0.9 bz1 / bz2 database files. it is tsm files now. There is a described process for updating, but it seems it has to e done using 0.10 to be absolutely sure not to loose data. We could either

1. do nothing, admins should read update info for databases anyway
2. add a pkg message saying "RTFM about updating from 0.9"
3. fork a influx010 port for the old version so users can revert and fix if the get problems.


perhaps number two is a nice thing? And perhaps even a record in UPDATING?
Comment 12 cheffo 2016-04-04 12:05:39 UTC
Well, we have influx_tsm in the port also, which is used to convert database to the new format, so I do not see a problem here.

It will be nice to add in UPDATING the following:

To upgrade to InfluxDB 0.11, you must be on version 0.10 and all shards must be in TSM format (the default storage engine starting with InfluxDB 0.10). See the 0.10 documentation for how to convert b1 and bz1 shards to TSM. If any b1 or bz1 shards are present, InfluxDB 0.11 will not start.
Comment 13 optikfluffel 2016-04-10 11:49:01 UTC
Up to v0.12.1 now: https://github.com/influxdata/influxdb/releases/tag/v0.12.1
Comment 14 cheffo 2016-04-11 09:37:26 UTC
Created attachment 169180 [details]
Update influxdb do v0.12.1

This patch updates influxdb from 0.9.6.1 to 0.12.1
Comment 15 cheffo 2016-04-11 09:39:02 UTC
Created attachment 169183 [details]
portlin output for influxdb-0.12.1
Comment 16 cheffo 2016-04-11 09:39:40 UTC
Created attachment 169184 [details]
poudriere testport output for influxdb-0.12.1
Comment 17 cheffo 2016-04-11 09:41:04 UTC
With attachment 16918 [details] that update influxdb do v0.12.1, we are ready to go! Please commit.

Thanks everyone for the help!
Comment 18 Palle Girgensohn freebsd_committer freebsd_triage 2016-04-11 10:56:57 UTC
Great! Shall we add an entry to UPDATING?

I had to redo the patch against 0.10 since that was the current port, but it was trivial, no problems.
Comment 19 Palle Girgensohn freebsd_committer freebsd_triage 2016-04-11 11:04:53 UTC
Adding this to 20160411:
  AFFECTS: Users if databases/influxdb
  AUTHOR: cheffo@freebsd-bg.org

  To upgrade to InfluxDB 0.12, you must be on version 0.10 and all shards must 
  be in TSM format (the default storage engine starting with InfluxDB 0.10).
  See the 0.10 documentation for how to convert b1 and bz1 shards to TSM. If
  any b1 or bz1 shards are present, InfluxDB 0.12 will not start.
  https://docs.influxdata.com/influxdb/v0.10/administration/upgrading/#convert-b1-and-bz1-shards-to-tsm1
Comment 20 Palle Girgensohn freebsd_committer freebsd_triage 2016-04-11 11:05:37 UTC
Created attachment 169186 [details]
complete patch will be
Comment 21 Palle Girgensohn freebsd_committer freebsd_triage 2016-04-11 11:12:46 UTC
Committed. Thanks!