Commit Graph

17 Commits (810c1839638b2239f2e15d52bdc69bd586b1ab0f)

Author SHA1 Message Date
Edd Robinson feb7a2842c Use unbuffered error channels in tests 2017-01-17 10:53:15 -08:00
Edd Robinson fb7388cdfc Remove dead code from various pkgs 2017-01-17 09:47:34 -08:00
Mark Rushakoff bb93f8c593 Update godoc for packages tcp, toml, uuid 2016-12-30 18:03:02 -08:00
shaybix 1240ffd66f removed parentheses to make tcp golintable 2016-11-19 04:13:25 +00:00
Joe LeGasse eada5b721a Add DefaultListener to tcp.Mux 2016-05-18 17:57:26 -04:00
Ben Johnson 86cb81c868 use timer for mux timeout
This commit changes the timeout for `mux.Mux.handleConn()` to use
`time.Timer` instead of `time.After()` so that the channel can be
closed immediately once the connection is handed off.
2016-03-30 15:47:24 -06:00
Jason Wilder f7c768e437 Improve logging and blocked connection handling in muxer
If the mux listener gets a invalid request, log the IP address of the
client to help users track down the issue.

Since the listener is started before the services that use it are ready,
it can receive requests and block indefinitely waiting for the handler
channel to receive.  If the channel is blocked, all the channel send
to timeout to prevent clients form accruing blocked connnecitons.
2016-03-16 12:26:14 -06:00
Ben Johnson d9a6a7340f add canonical paths 2016-02-10 11:30:52 -07:00
Ben Johnson 5a0d1ab7c1 rename influxdb/influxdb to influxdata/influxdb
This commit changes all the import and URL references from:

    github.com/influxdb/influxdb

to:

    github.com/influxdata/influxdb
2016-02-10 10:26:18 -07:00
Cory LaNou 7ea00ea8d9 fix data race in services/meta tests 2016-01-21 15:28:33 -05:00
Paul Dix c9d82ad0ad Wire up meta service functionality
* Add dir, hostname, and bind address to top level config since it applies to services other than meta
* Add enabled flags to example toml for data and meta services
* Wire up add/remove raft peers and meta servers to meta service
* Update DROP SERVER to be either DROP META SERVER or DROP DATA SERVER
* Bring over statement executor from old meta package
* Start meta service client implementation
* Update meta service test to use the client
* Wire up node ID/meta server storage information
2016-01-21 15:28:32 -05:00
MrLee.Kun 45a9532b04 add tcp log tag 2015-10-27 15:31:20 +08:00
Jason Wilder 9cb243083f Fix race in tcp.Mux
The handler connection channel was closed while writing to it.  We now wait for all
connections to be demux before closing the channels.
2015-09-04 15:10:17 -06:00
Jason Wilder 4ed694ab7b Handle demux connections in separate goroutine
The mux listener was handling connections and demux serially.  This could cause
issues if one handler was slow or blocked.  For example, if a node had many
hinted handed writes queued for a down node, when the down node was started, it
would start handling the write requests (possibly before it had synchronized with
the cluster).  This would cause the connectiosn to block and also prevent the cluster
synchronization from occuring because they both use the same mux listener.

Fixes #3960
2015-09-04 14:52:08 -06:00
Ben Johnson deff06f850 add copier service
This commit adds the copier service which allows one server to
copy shards from another server. This will be used for moving
shards in the cluster.
2015-09-03 13:07:35 -06:00
runner.mei 015adc949c Make InfluxDB win32 friendly, fix unit test is failed on the windows 2015-06-10 07:29:08 +08:00
Ben Johnson 9b08fadaa9 Add tcp.Mux.
This commit adds tcp.Mux which multiplexes connections over TCP using
the first byte as the header byte. Users can listen to the muxer
using mux.Listen(hdr) and obtain a net.Listener.
2015-06-05 10:30:35 -06:00