Commit Graph

4971 Commits (eaf4bfca0a0921d4b228b2e11e37b2a4b5f0f067)

Author SHA1 Message Date
Ben Johnson eaf4bfca0a Fix term signal.
This commit changes raft so that term changes are made immediately and
term change signals are made afterward. Previously, election timeouts
were invalidated by incoming term changes which caused an election loop.

Stale term was also fixed and http/pprof was added too.
2015-04-10 13:52:20 -06:00
Ben Johnson c757039f70 Update term change immediately, only send signal. 2015-04-09 17:07:12 -06:00
dgnorton 61cd46333a Merge pull request #2228 from influxdb/fix-2215
fix #2215: allow keyword default to be unquoted
2015-04-09 18:01:59 -04:00
Philip O'Toole 22cec963b0 Add section for RC23 2015-04-09 13:50:04 -07:00
Philip O'Toole 5ade9551f5 Update CHANGELOG for rc22 2015-04-09 13:48:21 -07:00
David Norton 33c7bdd723 update CHANGELOG.md 2015-04-09 16:43:26 -04:00
David Norton a67e9a8a95 fix #2215: allow keyword default to be unquoted
InfluxDB creates a default retention policy named "default".  DEFAULT is
also a keyword in the language.  This required double quoting "default"
in the ALTER RETENTION POLICY statement.  This commit makes the parser
accept it unquoted for that one statement.
2015-04-09 16:37:20 -04:00
dgnorton 301c3a3eda Merge pull request #2225 from influxdb/fix-2224
fix #2224: make influxql keywords case insensitive
2015-04-09 16:13:43 -04:00
David Norton c2b61af3a1 fix #2224: make influxql keywords case insensitive 2015-04-09 16:08:28 -04:00
Philip O'Toole 5bfdba0348 Correct formatting in CHANGELOG 2015-04-09 13:00:25 -07:00
Philip O'Toole fe4993b132 Update CHANGELOG for PR 2223 2015-04-09 12:59:26 -07:00
Ben Johnson 8d1143497f Merge pull request #2223 from influxdb/req-vote-term-notify
Always notify term change on RequestVote.
2015-04-09 13:57:39 -06:00
Ben Johnson 3f0adcf105 Always notify term change on RequestVote.
Previously there was a bug that ignored new terms from incoming vote
requests when the sender's log was out of date.
2015-04-09 13:33:04 -06:00
Cory LaNou a8b4b874f9 update changelog fixing rc# 2015-04-09 13:25:41 -06:00
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