Commit Graph

7662 Commits (f37df1133920e54890a36e65c363caf8bd6b4949)

Author SHA1 Message Date
Ben Johnson 1c5604bd82 Merge pull request #4034 from benbjohnson/handle-tx
Rollback bolt tx on mapper open error
2015-09-08 10:50:03 -06:00
Ben Johnson fd9be63b4e rollback bolt tx on mapper open error
This commit fixes `SelectMapper.Open()` so that it properly rolls back
transactions. Previously, this caused transactions to stay open
indefinitely which caused mmap resizes to hang indefinitely.
2015-09-08 10:28:51 -06:00
Jason Wilder 766e2867bd Update changelog 2015-09-08 10:09:25 -06:00
Jason Wilder 73510a0a68 Fix invalid time stamp in graphite metric causes panic
If a timestamp was larger than the max epoch value was sent via
graphite it would cause the timestamp to overflow when it was
marshaled/unmarshaled back from the raft log.  The overflow cause
the shard group to get created with the wrong timestamp which cause
a panic when writing the point.  The panic was caused because the
timestamp that were supposed to exists in a map created by MapShards
did not actually exist so a nil ShardGroup was used.

The change prevents creating the point with an invalid timestamp.  Since
graphite using a timestamp in seconds, the maximum range is known and
can be prevented.  This also adds a check for the minimum range as well.

Fixes #3785
2015-09-08 10:07:47 -06:00
Philip O'Toole 206ddae286 Add basic logrotate file 2015-09-08 08:50:47 -07:00
Philip O'Toole 82c101be14 Clean up whitespace 2015-09-08 08:50:26 -07:00
Philip O'Toole ca94ad8ef4 Merge pull request #4026 from influxdb/multi_graphite
Support multiple Graphite inputs
2015-09-08 08:40:12 -07:00
Philip O'Toole 332ce6481d Removed unused Graphite NewConfig
This function is not helpful for sections of the config that support
multiple instances.
2015-09-08 08:32:19 -07:00
Philip O'Toole 6345ba83f3 Fix minor typo in comment
[ci skip]
2015-09-07 22:04:37 -07:00
Philip O'Toole bbc103305b Support multiple Graphite inputs
Fixes issue #3636
2015-09-06 21:33:46 -07:00
Philip O'Toole 45590f2c21 Merge pull request #4024 from aviau/patch-4
removed trailing spaces
2015-09-06 19:23:40 -07:00
Alexandre Viau f0c57066c5 removed trailing spaces 2015-09-06 22:16:00 -04:00
Philip O'Toole 1fdf361f00 Merge pull request #4015 from influxdb/configurable_internal_rp
Monitor retention policy is configurable
2015-09-05 08:53:43 -07:00
Philip O'Toole f0f254ae69 Merge pull request #4016 from influxdb/graphite_shutdown
Shutdown UDP Graphite on SIGTERM
2015-09-05 08:49:13 -07:00
Jason Wilder 4e590d9591 Merge pull request #4019 from influxdb/jw-meta-open
Fix race when starting monitor service
2015-09-05 09:37:19 -06:00
Jason Wilder 380d82b078 Fix race in local node creation
It was possible for the metastore Open call to return before it actually
created it's local node.
2015-09-05 09:07:37 -06:00
Jason Wilder b8da247b08 Open monitor server after metastore is ready 2015-09-05 09:06:51 -06:00
Philip O'Toole 407591985c Update CHANGELOG 2015-09-05 00:33:16 -07:00
Philip O'Toole fa29e12222 Shutdown UDP Graphite on SIGTERM
Service.Close() had no way of closing the UDP Conn. This change makes
the UDP an attribute of the server, so Close() can access it.
2015-09-05 00:30:59 -07:00
Philip O'Toole d1e6dced47 Use actual kill command, not shell alias
https://www.freebsd.org/doc/handbook/basics-processes.html

[ci skip]
2015-09-05 00:18:54 -07:00
Philip O'Toole 54c832f4a8 Correct shutdown in init.d script
This was already reviewed by @jwilder, but merged incorrectly.
2015-09-04 23:49:47 -07:00
Philip O'Toole 406480f4b2 Retention enforcement period to 30 minutes
This was previously set in the code.

[ci skip]
2015-09-04 23:30:13 -07:00
Philip O'Toole 214cfea53c Monitor retention policy is configurable 2015-09-04 22:53:04 -07:00
Philip O'Toole 03315bc9dd Add cluster-level tags to all stats when stored
This allows stats for all nodes in a given cluster, for example, to be
easily queried.
2015-09-04 18:36:14 -07:00
Philip O'Toole cfd0acdbc5 Merge pull request #4008 from influxdb/runtime_stats
Add Go memstats to statistics
2015-09-04 16:36:19 -07:00
Philip O'Toole 0d3a8c564c Merge pull request #4003 from influxdb/fix_internal_types
Convert expvar values to the correct type int64
2015-09-04 14:56:23 -07:00
Philip O'Toole 30e2ca1d2e Merge pull request #3935 from fg2it/package_options
Package options
2015-09-04 14:53:02 -07:00
Philip O'Toole e89978ef63 Merge pull request #3980 from influxdb/wait_for_exit
When stopping service, wait until actually exited
2015-09-04 14:50:33 -07:00
Philip O'Toole 68169a04d6 Update CHANGELOG 2015-09-04 14:45:31 -07:00
Philip O'Toole b5df129c80 When stopping service, wait until actually exited
Fixes issue #3548.
2015-09-04 14:45:13 -07:00
Philip O'Toole 23df8663c3 Convert expvar values to the correct type int64
expvar only allows int increments and decrements, so use int64 when
converting.
2015-09-04 14:41:13 -07:00
Jason Wilder 08656f515e Merge pull request #4000 from influxdb/jw-3960
Fix cluster restarting issues
2015-09-04 15:16:51 -06: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 e63e14f47f Update change log 2015-09-04 14:52:08 -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
Jason Wilder 3404fe3872 Wait for meta-store to find the leader before returning
The meta-store would open but may not have finished loading the raft log. If write
requests came in, they could fail or be dropped because of missing shard group
info.  This change makes the meta store only return after it has found the leader
and is really ready.

This change also fixed a race in the ClusterRestart test that may be causing it
to fail sporadically.

Fixes #3677 #3960
2015-09-04 14:51:57 -06:00
Philip O'Toole bda1e65a99 Merge pull request #4001 from influxdb/docker_fetch_only
Build docker only when necessary during tests
2015-09-04 13:46:53 -07:00
Philip O'Toole 36d6d79cc9 Build docker only when necessary during tests 2015-09-04 13:40:05 -07:00
Philip O'Toole f96ec228a4 Add Go memstats to statistics 2015-09-04 13:20:58 -07:00
Jason Wilder 13dbc8f0ba Merge pull request #3841 from influxdb/jw-file-utils
Add inspect tool
2015-09-04 14:12:05 -06:00
Philip O'Toole a500eb6c6d Merge pull request #3996 from influxdb/httpd_stats2
Add stats to httpd package
2015-09-04 12:38:57 -07:00
Philip O'Toole e513b68e61 Update CHANGELOG
[ci skip]
2015-09-04 12:38:03 -07:00
Philip O'Toole 579e2a250c Add stats to httpd package 2015-09-04 12:37:59 -07:00
Jason Wilder 99d02e3d62 Log the reason a remote write request might be dropped to the error message 2015-09-04 13:14:46 -06:00
Philip O'Toole 267f8e6c11 Skipping race test
Issue #3997
2015-09-04 11:59:28 -07:00
Cory LaNou 1af8dd81af Merge pull request #3930 from influxdb/top
Wire up Top aggregate function
2015-09-04 13:57:07 -05:00
Cory LaNou a09e2c27bb minor tweaks based on PR review 2015-09-04 13:41:46 -05:00
Cory LaNou fa4415b3a4 refactor processing top/bottom results. clarify some comments 2015-09-04 13:30:43 -05:00
Cory LaNou bdc54cf5d2 helpers -> pkg + readme 2015-09-04 13:30:43 -05:00
Cory LaNou be92093490 update changelog 2015-09-04 13:30:43 -05:00