Skip to content
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

[0.9.6-nightly] Show measurements across cluster error #4926

Closed
li-ang opened this issue Nov 30, 2015 · 2 comments
Closed

[0.9.6-nightly] Show measurements across cluster error #4926

li-ang opened this issue Nov 30, 2015 · 2 comments

Comments

@li-ang
Copy link

li-ang commented Nov 30, 2015

For simplifying reproduce steps, I use a single node but set the force-remote-mapping = true .

There is the config.toml content:

reporting-disabled = false

[meta]
  dir = "/Users/Leon/goproject/src/github.com/li-ang/influxdb_test/cluster/.one/meta"
  hostname = "192.168.1.3"
  bind-address = ":8088"
  retention-autocreate = true
  election-timeout = "1s"
  heartbeat-timeout = "1s"
  leader-lease-timeout = "500ms"
  commit-timeout = "50ms"
  cluster-tracing = true
  raft-promotion-enabled = true

[data]
  dir = "/Users/Leon/goproject/src/github.com/li-ang/influxdb_test/cluster/.one/data"
  engine = "bz1"
  max-wal-size = 104857600
  wal-flush-interval = "10m0s"
  wal-partition-flush-delay = "2s"
  wal-dir = "/Users/Leon/goproject/src/github.com/li-ang/influxdb_test/cluster/.one/wal"
  wal-logging-enabled = true
  wal-ready-series-size = 30720
  wal-compaction-threshold = 0.5
  wal-max-series-size = 1048576
  wal-flush-cold-interval = "5s"
  wal-partition-size-threshold = 52428800
  wal-flush-memory-size-threshold = 5242880
  wal-max-memory-size-threshold = 104857600
  index-compaction-age = 60000000000
  index-min-compaction-interval = 60000000000
  index-compaction-min-file-count = 5
  index-compaction-full-age = 300000000000
  query-log-enabled = true

[cluster]
  force-remote-mapping = true
  write-timeout = "5s"
  shard-writer-timeout = "5s"
  shard-mapper-timeout = "5s"

[retention]
  enabled = true
  check-interval = "30m0s"

[registration]
  enabled = true
  url = "https://enterprise.influxdata.com"
  token = ""
  stats-interval = "1m0s"

[shard-precreation]
  enabled = true
  check-interval = "10m0s"
  advance-period = "30m0s"

[admin]
  enabled = true
  bind-address = ":8083"
  https-enabled = false
  https-certificate = "/etc/ssl/influxdb.pem"

[monitor]
  store-enabled = false
  store-database = "_internal"
  store-interval = "10s"

[subscriber]
  enabled = true

[http]
  enabled = true
  bind-address = ":8086"
  auth-enabled = false
  log-enabled = true
  write-tracing = false
  pprof-enabled = false
  https-enabled = false
  https-certificate = "/etc/ssl/influxdb.pem"

[collectd]
  enabled = false
  bind-address = ":25826"
  database = "collectd"
  retention-policy = ""
  batch-size = 5000
  batch-pending = 10
  batch-timeout = "10s"
  read-buffer = 0
  typesdb = "/usr/share/collectd/types.db"

[opentsdb]
  enabled = false
  bind-address = ":4242"
  database = "opentsdb"
  retention-policy = ""
  consistency-level = "one"
  tls-enabled = false
  certificate = "/etc/ssl/influxdb.pem"
  batch-size = 1000
  batch-pending = 5
  batch-timeout = "1s"
  log-point-errors = true

[continuous_queries]
  log-enabled = true
  enabled = true
  recompute-previous-n = 2
  recompute-no-older-than = "10m0s"
  compute-runs-per-interval = 10
  compute-no-more-than = "2m0s"

[hinted-handoff]
  enabled = true
  dir = "/Users/Leon/goproject/src/github.com/li-ang/influxdb_test/cluster/.one/hh"
  max-size = 1073741824
  max-age = "168h0m0s"
  retry-rate-limit = 0
  retry-interval = "1s"
  retry-max-interval = "1m0s"
  purge-interval = "1h0m0s"

[snapshot]
  enabled = true

There is the reproduce step

Visit https://enterprise.influxdata.com to register for updates, InfluxDB server management, and monitoring.
Connected to http://localhost:8086 version 0.9
InfluxDB shell 0.9
> create database foo
> use foo
Using database foo
> insert cpu,host=serverA value=10
> show measurements
ERR: write message type: use of closed network connection
> 

The InfluxDB log as following:


 8888888           .d888 888                   8888888b.  888888b.
   888            d88P"  888                   888  "Y88b 888  "88b
   888            888    888                   888    888 888  .88P
   888   88888b.  888888 888 888  888 888  888 888    888 8888888K.
   888   888 "88b 888    888 888  888  Y8bd8P' 888    888 888  "Y88b
   888   888  888 888    888 888  888   X88K   888    888 888    888
   888   888  888 888    888 Y88b 888 .d8""8b. 888  .d88P 888   d88P
 8888888 888  888 888    888  "Y88888 888  888 8888888P"  8888888P"

2015/11/30 10:32:11 InfluxDB starting, version 0.9, branch unknown, commit unknown, built unknown
2015/11/30 10:32:11 Go version go1.4.3, GOMAXPROCS set to 4
2015/11/30 10:32:11 Using configuration at: /Users/Leon/goproject/src/github.com/li-ang/influxdb_test/cluster/one.toml
[metastore] 2015/11/30 10:32:11 Using data dir: /Users/Leon/goproject/src/github.com/li-ang/influxdb_test/cluster/.one/meta
[metastore] 2015/11/30 10:32:11 Node at 192.168.1.3:8088 [Follower]
[metastore] 2015/11/30 10:32:11 [INFO] raft: Node at 192.168.1.3:8088 [Follower] entering Follower state
[metastore] 2015/11/30 10:32:13 [WARN] raft: Heartbeat timeout reached, starting election
[metastore] 2015/11/30 10:32:13 [INFO] raft: Node at 192.168.1.3:8088 [Candidate] entering Candidate state
[metastore] 2015/11/30 10:32:13 [DEBUG] raft: Votes needed: 1
[metastore] 2015/11/30 10:32:13 [DEBUG] raft: Vote granted. Tally: 1
[metastore] 2015/11/30 10:32:13 [INFO] raft: Election won. Tally: 1
[metastore] 2015/11/30 10:32:13 [INFO] raft: Node at 192.168.1.3:8088 [Leader] entering Leader state
[metastore] 2015/11/30 10:32:13 Node at 192.168.1.3:8088 [Leader]. peers=[]
[metastore] 2015/11/30 10:32:13 [DEBUG] raft: Node 192.168.1.3:8088 updated peer set (2): [192.168.1.3:8088]
[metastore] 2015/11/30 10:32:13 Created local node: id=1, host=192.168.1.3:8088
[metastore] 2015/11/30 10:32:13 spun up monitoring for 1
[store] 2015/11/30 10:32:13 Using data dir: /Users/Leon/goproject/src/github.com/li-ang/influxdb_test/cluster/.one/data
[handoff] 2015/11/30 10:32:13 Starting hinted handoff service
[monitor] 2015/11/30 10:32:13 'hh' registered for diagnostics monitoring
[handoff] 2015/11/30 10:32:13 Using data dir: /Users/Leon/goproject/src/github.com/li-ang/influxdb_test/cluster/.one/hh
[subscriber] 2015/11/30 10:32:13 opened service
[monitor] 2015/11/30 10:32:13 Starting monitor system
[monitor] 2015/11/30 10:32:13 'build' registered for diagnostics monitoring
[monitor] 2015/11/30 10:32:13 'runtime' registered for diagnostics monitoring
[monitor] 2015/11/30 10:32:13 'network' registered for diagnostics monitoring
[monitor] 2015/11/30 10:32:13 'system' registered for diagnostics monitoring
[cluster] 2015/11/30 10:32:13 Starting cluster service
[shard-precreation] 2015/11/30 10:32:13 Starting precreation service with check interval of 10m0s, advance period of 30m0s
[registration] 2015/11/30 10:32:13 Starting registration service
[monitor] 2015/11/30 10:32:13 'registration' registered for diagnostics monitoring
[snapshot] 2015/11/30 10:32:13 Starting snapshot service
[copier] 2015/11/30 10:32:13 Starting copier service
[admin] 2015/11/30 10:32:13 Starting admin service
[admin] 2015/11/30 10:32:13 Listening on HTTP: [::]:8083
[continuous_querier] 2015/11/30 10:32:13 Starting continuous query service
[httpd] 2015/11/30 10:32:13 Starting HTTP service
[httpd] 2015/11/30 10:32:13 Authentication enabled: false
[httpd] 2015/11/30 10:32:13 Listening on HTTP: [::]:8086
[retention] 2015/11/30 10:32:13 Starting retention policy enforcement service with check interval of 30m0s
[run] 2015/11/30 10:32:13 Listening for signals
2015/11/30 10:32:13 Sending anonymous usage statistics to m.influxdb.com
[query] 2015/11/30 10:32:14 CREATE DATABASE foo
[metastore] 2015/11/30 10:32:14 database 'foo' created
[metastore] 2015/11/30 10:32:14 retention policy 'default' for database 'foo' created
[http] 2015/11/30 10:32:14 127.0.0.1 - - [30/Nov/2015:10:32:14 +0800] GET /query?db=&epoch=ns&q=create+database+foo HTTP/1.1 200 40 - InfluxDBShell/0.9 911f5cb1-970a-11e5-8001-000000000000 5.167644ms
[wal] 2015/11/30 10:32:29 WAL starting with 30720 ready series size, 0.50 compaction threshold, and 52428800 partition size threshold
[wal] 2015/11/30 10:32:29 WAL writing to /Users/Leon/goproject/src/github.com/li-ang/influxdb_test/cluster/.one/wal/foo/default/1
[http] 2015/11/30 10:32:29 127.0.0.1 - - [30/Nov/2015:10:32:29 +0800] POST /write?consistency=any&db=foo&precision=n&rp= HTTP/1.1 204 0 - InfluxDBShell/0.9 9a353314-970a-11e5-8002-000000000000 4.719373ms
[query] 2015/11/30 10:32:33 SHOW MEASUREMENTS
[cluster] 2015/11/30 10:32:33 accept remote connection from 192.168.1.3:64624
[cluster] 2015/11/30 10:32:33 close remote connection from 192.168.1.3:64624
[http] 2015/11/30 10:32:33 127.0.0.1 - - [30/Nov/2015:10:32:33 +0800] GET /query?db=foo&epoch=ns&q=show+measurements HTTP/1.1 200 94 - InfluxDBShell/0.9 9c93cbcc-970a-11e5-8003-000000000000 3.005925ms
[wal] 2015/11/30 10:32:34 Flush due to idle. Flushing 1 series with 1 points and 17 bytes from partition 1
[wal] 2015/11/30 10:32:34 write to index of partition 1 took 1.518338ms
@otoolep
Copy link
Contributor

otoolep commented Nov 30, 2015

cc @corylanou @dgnorton

@otoolep
Copy link
Contributor

otoolep commented Nov 30, 2015

Fixed by #4927

@otoolep otoolep closed this as completed Nov 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants