Commit Graph

5371 Commits (4fbdba6805456562a50bf1c1319a4b7b7af7d721)

Author SHA1 Message Date
Philip O'Toole d17eeff5ad Update CHANGELOG for PR 2415 2015-04-24 15:51:45 -07:00
Philip O'Toole 5894f6580c Merge pull request #2415 from xiaost/fix-leaderid-error
raft: fix leaderID error when state changed
2015-04-24 15:50:33 -07:00
Philip O'Toole b6fd3605f9 Re-enable leader election test
This may have been fixed by PR #2418.
2015-04-24 15:24:00 -07:00
Jason Wilder 2d2c806f36 Merge pull request #2418 from influxdb/jw-int-tests
Fix raft node getting stuck in candidate state
2015-04-24 16:18:10 -06:00
Jason Wilder cc9d2335d8 Re-enable partial replication test 2015-04-24 16:00:59 -06:00
Jason Wilder 7ac62f4796 Update changelog
Add #2418
2015-04-24 16:00:59 -06:00
Jason Wilder da5935e885 Fix node getting stuck in candidate state
During an election, a node can sometimes get stuck in candidate state
causing it to never read from the new leader.  This would prevent
it from incrementing it's index and staying consisistent w/ the
leader.
2015-04-24 16:00:54 -06:00
Paul Dix 615aabf2fc Fix link to #2390 in Changelog 2015-04-24 15:57:33 -04:00
Jason Wilder a9bdfb3b86 Log node state and id in raft traces
When running multiple nodes locally w/ raft tracing, it's very difficult
to determine which node is logging.  This adds the nodes state(leader,follower,candiate) and
id to all the log messages so we can tarce the nodes states more easily.
2015-04-24 13:25:27 -06:00
Jason Wilder 9c6d09ebe6 Make exp/got values line up for integration tests 2015-04-24 10:40:41 -06:00
Jason Wilder 4943b90159 Merge pull request #2416 from influxdb/jw-1896
Fix excessive heartbeater logging of "connection refused" on cluster node stop
2015-04-24 10:38:32 -06:00
Jason Wilder a4017fa4fd Replace heartbeat log threshold time w/ constant 2015-04-24 10:33:34 -06:00
Jason Wilder 49b80a6d19 Track and log the number of times a heartbeat has failed 2015-04-24 09:44:44 -06:00
Jason Wilder 2e47a8de11 Log when heartbeat succeeds again 2015-04-24 09:32:15 -06:00
Jason Wilder dd784f0f6f Update changelog 2015-04-24 08:45:04 -06:00
Jason Wilder 174afb5eb9 Log heartbeat error once every 15s
Prevents logs from getting flooded with a message every second when
a broker node is down.

Fixes #1896
2015-04-24 08:43:42 -06:00
xiaost e521ac9b73 raft: fix leaderID error when state changed 2015-04-24 22:23:45 +08:00
Philip O'Toole d058ab9c59 README typo 2015-04-23 16:20:35 -07:00
Philip O'Toole 34d73cf67c Move new feature to RC28 2015-04-23 16:20:17 -07:00
Philip O'Toole a37752c22a Merge pull request #2410 from influxdb/increase_election_timeout
Allow Raft timeouts to be configured
2015-04-23 16:03:16 -07:00
Philip O'Toole 86db6df16c 5-second Raft election timeout during CI testing
CI testing may suffer from lack of CPU resources, meaning leader
elections may continually occur. This gives leader nodes more time to
send out heartbeats.
2015-04-23 15:59:36 -07:00
Cory LaNou e9f5eaa5cf Merge pull request #2408 from influxdb/shard-creation-refactor
Fix snapshot 500 error
2015-04-23 16:43:51 -06:00
Cory LaNou f95dc00884 update changelog 2015-04-23 16:34:00 -06:00
Cory LaNou 022cb62fdb remove shards from server memory 2015-04-23 16:33:18 -06:00
Cory LaNou c27953a764 put shard responsibilities in shard.go 2015-04-23 16:33:18 -06:00
Philip O'Toole f2783353d9 Allow Raft election timeout to be configured 2015-04-23 15:05:40 -07:00
Philip O'Toole 659706e874 Clarify that we like gvm, but it is not required 2015-04-23 13:11:54 -07:00
Philip O'Toole 5a37e049b9 Merge pull request #2407 from influxdb/broker_truncation
Topic reports whether it has ever been truncated
2015-04-23 13:07:54 -07:00
Philip O'Toole 6a16f2d5a9 Topic reports whether it has ever been truncated
This function is needed by Brokers to decide if shard requests by data
nodes should be redirected to peers.
2015-04-23 12:49:11 -07:00
Jason Wilder f3ece1a2f8 Merge pull request #2404 from influxdb/jw-int-tests
Mean and percentile function fixes
2015-04-23 11:25:32 -06:00
Jason Wilder e1bb340cb7 Update changelog
Add #2374 #2404
2015-04-23 11:19:12 -06:00
Jason Wilder 8174f6fb05 Fix panic: interface conversion: interface is nil, not []interface {}
Fixes #2374
2015-04-23 11:18:19 -06:00
Jason Wilder 155adb7d24 Fix panic: runtime error: index out of range
Fixes #2374
2015-04-23 11:18:19 -06:00
Jason Wilder d0cc98356b Fix error calling MarshalJSON for type *influxdb.Result: json: unsupported value: NaN
If the MapMean did not have any values in the iterator, it would return
and empty meanMapOutput().  ReduceMean would in turn divider the results
by an unitialized float64 producing a NaN.  NaN is not serializable to JSON
by default.
2015-04-23 11:18:19 -06:00
Jason Wilder 297ebda91f Simplify os.RemoveAll calls in tests 2015-04-23 11:18:19 -06:00
ben hockey 762a77079a unmarshal stddev appropriately 2015-04-23 10:49:24 -05:00
ben hockey 23c38fb03c get stddev working
this includes avoiding overflow for large values
2015-04-23 10:49:24 -05:00
ben hockey 94030b2782 return the values from stddev mapper function 2015-04-23 10:49:24 -05:00
ben hockey fad619a43b add test for stddev 2015-04-23 10:49:24 -05:00
Todd Persen 2b78e3c9e0 Update CHANGELOG.md
[skip ci]
2015-04-23 05:45:03 -07:00
Cory LaNou c887dfe2a8 Merge pull request #2400 from influxdb/client-write-credentials-2391
Always send auth headers for client requests if present
2015-04-22 20:38:36 -06:00
Todd Persen 0bc0f8db5a Update CHANGELOG.md
[skip ci]
2015-04-22 19:09:34 -07:00
Todd Persen 6b76befa98 Merge pull request #2398 from influxdb/snapshot-backup-err-loggin
Track more stats and report errors for shards
2015-04-22 19:08:32 -07:00
Cory LaNou bba66f6db6 update changelog [ci skip] 2015-04-22 18:17:39 -06:00
Cory LaNou c604a765de Always send auth headers for client requests if present 2015-04-22 18:15:39 -06:00
Cory LaNou b922cdcb76 shard stat created vs opened 2015-04-22 17:20:16 -06:00
Cory LaNou 9fee13ce41 format show stats properly and add more shard stats 2015-04-22 17:14:37 -06:00
Cory LaNou e205abbcb4 sort stats for testing. check for nil stats before updating 2015-04-22 16:03:37 -06:00
Cory LaNou e7eb3838f5 track more stats and report errors for shards 2015-04-22 15:37:59 -06:00
Todd Persen a86897d484 Update CHANGELOG.md 2015-04-22 13:59:11 -07:00