Cleanly terminate openTSDB connection on EOF
This is not really an error, so don't log it.pull/4060/head
parent
7a56f15d44
commit
fef20c77b2
|
@ -51,6 +51,7 @@ With this release InfluxDB is moving to Go 1.5.
|
||||||
- [#3881](https://github.com/influxdb/influxdb/issues/3881): panic: runtime error: invalid memory address or nil pointer dereference
|
- [#3881](https://github.com/influxdb/influxdb/issues/3881): panic: runtime error: invalid memory address or nil pointer dereference
|
||||||
- [#3926](https://github.com/influxdb/influxdb/issues/3926): First or last value of `GROUP BY time(x)` is often null. Fixed by [#4038](https://github.com/influxdb/influxdb/pull/4038)
|
- [#3926](https://github.com/influxdb/influxdb/issues/3926): First or last value of `GROUP BY time(x)` is often null. Fixed by [#4038](https://github.com/influxdb/influxdb/pull/4038)
|
||||||
- [#4053](https://github.com/influxdb/influxdb/pull/4053): Prohibit dropping default retention policy.
|
- [#4053](https://github.com/influxdb/influxdb/pull/4053): Prohibit dropping default retention policy.
|
||||||
|
- [#4060](https://github.com/influxdb/influxdb/pull/4060): Don't log EOF error in openTSDB input.
|
||||||
|
|
||||||
## v0.9.3 [2015-08-26]
|
## v0.9.3 [2015-08-26]
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,7 @@ const (
|
||||||
statTelnetConnectionsHandled = "tl_connections_handled"
|
statTelnetConnectionsHandled = "tl_connections_handled"
|
||||||
statTelnetPointsReceived = "tl_points_rx"
|
statTelnetPointsReceived = "tl_points_rx"
|
||||||
statTelnetBytesReceived = "tl_bytes_rx"
|
statTelnetBytesReceived = "tl_bytes_rx"
|
||||||
|
statTelnetReadError = "tl_read_err"
|
||||||
statBatchesTrasmitted = "batches_tx"
|
statBatchesTrasmitted = "batches_tx"
|
||||||
statPointsTransmitted = "points_tx"
|
statPointsTransmitted = "points_tx"
|
||||||
statBatchesTransmitFail = "batches_tx_fail"
|
statBatchesTransmitFail = "batches_tx_fail"
|
||||||
|
@ -244,7 +245,10 @@ func (s *Service) handleTelnetConn(conn net.Conn) {
|
||||||
for {
|
for {
|
||||||
line, err := r.ReadLine()
|
line, err := r.ReadLine()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.Logger.Println("error reading from openTSDB connection", err.Error())
|
if err != io.EOF {
|
||||||
|
s.statMap.Add(statTelnetReadError, 1)
|
||||||
|
s.Logger.Println("error reading from openTSDB connection", err.Error())
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
s.statMap.Add(statTelnetPointsReceived, 1)
|
s.statMap.Add(statTelnetPointsReceived, 1)
|
||||||
|
|
Loading…
Reference in New Issue