Commit Graph

4957 Commits (da3a3ce4a892cb02a8b9d6c8c21eb3b7930659cd)

Author SHA1 Message Date
Cory LaNou da3a3ce4a8 update changelog for #2214 2015-04-09 13:18:59 -06:00
Cory LaNou 14042e31b9 Merge pull request #2214 from n1tr0g/exec_cmd
Added the option to influx CLI to execute single command and exit.
2015-04-09 13:16:51 -06:00
Jason Wilder b369667012 Merge pull request #2222 from influxdb/sample-toml
Update sample toml to include join-urls
2015-04-09 12:51:04 -06:00
Jason Wilder 423ce6ab2b Update sample toml to include join-urls
Fixes #2221
2015-04-09 12:38:41 -06:00
Philip O'Toole 0b84a93f3f Update CHANGELOG.md 2015-04-09 11:18:26 -07:00
Philip O'Toole 21279e54f7 Merge pull request #2219 from influxdb/persist_term
Persist term to disk when it changes
2015-04-09 11:17:18 -07:00
Philip O'Toole 566f6558b4 Persist term to disk when it changes 2015-04-09 11:12:09 -07:00
Philip O'Toole 73de68c67a Update CHANGELOG for PR 2217 2015-04-09 11:11:42 -07:00
Ben Johnson 7815d47bc3 Merge pull request #2217 from influxdb/cluster-fix
Cluster fix
2015-04-09 11:52:52 -06:00
Todd Persen 2adafea86b Merge pull request #2199 from influxdb/broker-wait
Wait for first applied index on Log.Join().
2015-04-09 10:50:14 -07:00
Todd Persen 03e2f5f3e6 Update CHANGELOG.md 2015-04-09 10:47:49 -07:00
Todd Persen ff15388db8 Merge pull request #2121 from influxdb/fix-2015
Parser refactor
2015-04-09 10:47:04 -07:00
Philip O'Toole 0e3c7a3e6c Disable CQ test 2015-04-09 10:32:07 -07:00
David Norton 25cea58635 refactor scanning & parsing of identifiers 2015-04-09 13:21:13 -04:00
Ben Johnson 37829ea4c3 Only update term if higher in candidate loop.
This fixes a bug where votes were overwritten because terms were
being reset by incoming terms that were the same.
2015-04-09 10:55:39 -06:00
Ben Johnson 47fa90fae2 Remove zero-length data panic from messaging.Conn.
This check is no longer necessary as the checksum added
to the messaging.Message will catch any data errors.
2015-04-09 10:53:43 -06:00
Dejan Golja 0f7e3d259b Added the option to influx CLI to execute single command and exit.
Helpful when scripting and automating installs
2015-04-10 00:27:57 +10:00
Jason Wilder 019110c9c0 Merge pull request #2201 from influxdb/jw-join-urls
Bring back config join URLs
2015-04-08 20:56:44 -06:00
Jason Wilder 94f9ad0624 Fix unable to join race
2015/04/08 22:27:01 no broker or server configured to handle messaging endpoints
2015/04/08 22:27:02 join: failed to connect data node: http://box296:9012: unable to join
2015/04/08 22:27:02 join: failed to connect data node to any specified server

There is a race when joining a data only node to a broker and another data only node between the
data node heartbeater and the join operation.  If the heartbeater
fire before the join attempt, it's possible for the booting data node
to be selected as the first data node for redirection by the broker.
The join attempt would request a data node endpoint on the broker "/data_nodes"
but since the broker cannot handle it, it would redirect to a valid broker.

During this race, the broker would redirect the request back to the same server.  If
this happens, the data node would get stuck and not be able to join because it's
still booting.

To work around this, the redirect is randonmized and the join calls will not attempt
to call itself and instead re-request the original URL.  A better fix might be to
not start the heartbeater until after the datanode has joined or initialized.
2015-04-08 20:50:24 -06:00
Jason Wilder d6d12f2342 Fix erroneous logging for http handlers 2015-04-08 20:50:24 -06:00
Jason Wilder 9ef806a037 Update CHANGELOG
Add #2201
2015-04-08 20:50:24 -06:00
Jason Wilder 0dbf66e2fe Cleanup join logic and logging
Make it more explicit when existing cluster state is being used
versus join URLs.  Also consolidate some duplicated `if index==0`
checks.
2015-04-08 20:49:58 -06:00
Jason Wilder 59a80fb7be Simplify data node join urls
If the node is running a broker and a data node, always have the
data node client connect to the local broker since it will already
be initialized or joined.
2015-04-08 20:49:58 -06:00
Jason Wilder cad3f3c604 Set data node join retries higher
3 was fairly arbitrary and would cause errors such as:

2015/04/08 14:01:12 join: failed to connect data node: {http  <nil> influxdb.local:8191   }: unable to join
2015/04/08 14:01:12 join: failed to connect data node to any specified server

in the tests.  This can happen when the nodes are slow to startup. The limit is set
arbitarily higher to avoid this error but still give up if it can't connect
after a minute.
2015-04-08 20:49:58 -06:00
Jason Wilder 5484b0e9ea Allow passing command-line options to init script
Command-line options can be set in /etc/default/influxdb using
the INFLUXD_OPTS env var.
2015-04-08 20:49:58 -06:00
Jason Wilder a612b8a0f6 Bring back Initialization.JoinURLs config option
Removing this option causes issues when deploying influxd
via configuration management. We can now define the same
set of join URLs in the config file across nodes.

This also ensures that the `-flag` option overrides the
config file setting if passed.
2015-04-08 20:49:58 -06:00
Cory LaNou af682069b8 Merge pull request #2203 from influxdb/cq-race
Fix race condition on continuous queries
2015-04-08 18:05:14 -06:00
Cory LaNou fbb89a575e more time? 2015-04-08 17:59:46 -06:00
Cory LaNou 839dac9894 enhance test output 2015-04-08 17:52:22 -06:00
Cory LaNou 8335a2b196 update changelog 2015-04-08 17:32:27 -06:00
Cory LaNou 2e6f28f4cd lock if you plan on writing 2015-04-08 17:30:46 -06:00
Cory LaNou 8e19d52359 Merge pull request #2200 from influxdb/renenable-cq
Re-enable Continuous Queries
2015-04-08 17:22:20 -06:00
Cory LaNou a67e88ceef fix nil writes to data for cq 2015-04-08 17:12:37 -06:00
Cory LaNou 8ca6ac37ff enhance error messages to know where they happened. 2015-04-08 17:11:53 -06:00
Cory LaNou b244fac9ab Merge branch 'renenable-cq' of github.com:influxdb/influxdb into renenable-cq 2015-04-08 15:43:24 -06:00
Cory LaNou ed05cadf35 move where we enable continous queries when starting up 2015-04-08 15:43:09 -06:00
Cory LaNou 6d602456ab update test comment 2015-04-08 15:35:57 -06:00
Cory LaNou f0fc233441 update log message 2015-04-08 15:35:00 -06:00
Cory LaNou 861986e062 Update CHANGELOG.md 2015-04-08 15:20:54 -06:00
Cory LaNou 913f8955bd refactor runContinousQueries 2015-04-08 15:14:59 -06:00
Philip O'Toole 553c94e206 Merge pull request #2185 from influxdb/64_int_storage
Store Go memory stats as int64
2015-04-08 13:15:12 -07:00
Cory LaNou 3c91700da2 clarify comments 2015-04-08 14:00:18 -06:00
Cory LaNou 4d56c19ed4 remove debugging 2015-04-08 13:59:17 -06:00
Cory LaNou cb4b18ebe7 enable continuous query testing 2015-04-08 13:58:34 -06:00
Ben Johnson bcfc259fe8 Wait for first applied index on Log.Join().
Previously the join method returned immediately after connecting.
Now the join method will wait until the snapshot and/or log entry
is replicated as well before returning.
2015-04-08 13:34:21 -06:00
Cory LaNou 65184aabc4 enable continuous query 2015-04-08 12:25:04 -06:00
Philip O'Toole a3b5075337 Update CHANGELOG for PR 2158 2015-04-08 10:44:43 -07:00
Jason Wilder 407b7fc2b4 Merge pull request #2198 from influxdb/jw-query-wait
Exit all queryAndWait goroutines when returning
2015-04-08 10:43:26 -06:00
Jason Wilder d8342ef281 Exit all queryAndWait goroutines when returning
The timeout goroutine would continue to run (until the timeout)
even after queryAndWait returned.  This causes thousands of extra
goroutines to linger around and makes the test stack traces very
difficult to read.
2015-04-08 10:34:00 -06:00
Philip O'Toole 6c7bda097b Merge pull request #2197 from influxdb/server_open_race
Lock server during Open()
2015-04-08 09:23:54 -07:00