From 1b5c6b75c20ad243e7d1f40a02aa7a99caa1f1bf Mon Sep 17 00:00:00 2001 From: Edd Robinson Date: Thu, 19 May 2016 17:26:48 +0100 Subject: [PATCH 1/2] Ensure client sends correct precision --- CHANGELOG.md | 1 + cmd/influx/cli/cli.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a82785fe725..b1b093ec139 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ - [#6611](https://github.com/influxdata/influxdb/issues/6611): Queries slow down hundreds times after overwriting points - [#6641](https://github.com/influxdata/influxdb/issues/6641): Fix read tombstones: EOF - [#6661](https://github.com/influxdata/influxdb/issues/6661): Disable limit optimization when using an aggregate. +- [#6676](https://github.com/influxdata/influxdb/issues/6676): Ensures client sends correct precision when inserting points. ## v0.13.0 [2016-05-12] diff --git a/cmd/influx/cli/cli.go b/cmd/influx/cli/cli.go index d6eaf11aa09..a034ea95444 100644 --- a/cmd/influx/cli/cli.go +++ b/cmd/influx/cli/cli.go @@ -509,7 +509,7 @@ func (c *CommandLine) Insert(stmt string) error { }, Database: c.Database, RetentionPolicy: c.RetentionPolicy, - Precision: "n", + Precision: c.Precision, WriteConsistency: c.WriteConsistency, }) if err != nil { From effcccdcaf19ed4ae48be7036dd7e195fa49e113 Mon Sep 17 00:00:00 2001 From: Edd Robinson Date: Thu, 19 May 2016 18:54:07 +0100 Subject: [PATCH 2/2] Set default consistency to all --- cmd/influx/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/influx/main.go b/cmd/influx/main.go index 44ef54bfacb..d182f2bf940 100644 --- a/cmd/influx/main.go +++ b/cmd/influx/main.go @@ -46,7 +46,7 @@ func main() { fs.BoolVar(&c.UnsafeSsl, "unsafeSsl", false, "Set this when connecting to the cluster using https and not use SSL verification.") fs.StringVar(&c.Format, "format", defaultFormat, "Format specifies the format of the server responses: json, csv, or column.") fs.StringVar(&c.Precision, "precision", defaultPrecision, "Precision specifies the format of the timestamp: rfc3339,h,m,s,ms,u or ns.") - fs.StringVar(&c.WriteConsistency, "consistency", "any", "Set write consistency level: any, one, quorum, or all.") + fs.StringVar(&c.WriteConsistency, "consistency", "all", "Set write consistency level: any, one, quorum, or all.") fs.BoolVar(&c.Pretty, "pretty", false, "Turns on pretty print for the json format.") fs.StringVar(&c.Execute, "execute", c.Execute, "Execute command and quit.") fs.BoolVar(&c.ShowVersion, "version", false, "Displays the InfluxDB version.")