Commit Graph

4942 Commits (ff15388db895be143e55b3322a81f68eddb19a4f)

Author SHA1 Message Date
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
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
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
Philip O'Toole 7258a4bc7c Lock server during Open()
Fix issue #2196
2015-04-08 09:18:40 -07:00
Cory LaNou 3f0d0eb017 Merge pull request #2195 from influxdb/http-logger-status-fix
Fix http logger to report status OK if never set
2015-04-08 10:00:14 -06:00
Cory LaNou ea94f342f1 Fix http logger to report status OK if never set 2015-04-08 09:38:17 -06:00
Cory LaNou aedb8ab300 Merge pull request #2194 from influxdb/fmt-fix
fix fmt error
2015-04-08 09:34:31 -06:00
Cory LaNou 39d74e0486 fix fmt error 2015-04-08 09:26:23 -06:00
Paul Dix 5ed69589ea Merge pull request #2158 from n1tr0g/set_password
Add support for SET PASSWORD FOR user = 'PASSWORD'
2015-04-08 09:30:44 -04:00
Todd Persen 40c21c175a Merge pull request #2170 from influxdb/fix-2170-return-200-on-missing-tag
SELECT on tag that doesn't exist should return 200
2015-04-07 14:19:07 -07:00
Ben Johnson 622e3b2894 Merge pull request #2187 from influxdb/broker-checksum
Broker checksum
2015-04-07 14:50:06 -06:00
Todd Persen 59fc8b9215 Update CHANGELOG.md 2015-04-07 13:43:37 -07:00
Ben Johnson cc83f2c39b Add checksum to message encoding
This commit changes the binary format of messaging.Message to encode
a 4-byte checksum at the beginning of it. This is used when reading
data back out to verify that it is not corrupt.

Corrupted messages are truncated on recovery so the broker can
restart from the previous message.
2015-04-07 14:24:22 -06:00
Philip O'Toole 2755c261f5 Start move to 64-bit ints 2015-04-07 12:58:44 -07:00
Jason Wilder d36bc32395 Merge pull request #2182 from influxdb/jw-configs
Fix issues when using config files
2015-04-07 13:45:10 -06:00
Todd Persen e1472257b0 Make sure that we return a `200 OK` when querying for a tag that doesn't exist. 2015-04-07 12:28:38 -07:00
Ben Johnson 7aad1a5820 Remove dead code in messaging. 2015-04-07 12:36:07 -06:00
Todd Persen 214b405c47 Merge pull request #2181 from influxdb/show_diags
Switch on "SHOW DIAGNOSTICS" statement
2015-04-07 11:18:22 -07:00