Commit Graph

4930 Commits (af682069b885a41d1628df4031a3eac09e7b2243)

Author SHA1 Message Date
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
Jason Wilder be10db87d2 Ensure broker and data nodes are enabled by default
NewTestConfig() would enable broker and data nodes so running
influxd w/o a config file would start the nodes.  If you ran
influxd w/ a config file but did not explicitly set Data.Enabled
or Broker.Enabled, the server would not start.  This is not
intuitive when moving to a config file setup.

Instead, broker and data are enabled w/ the config file (like w/o)
and they must be explicitly disabled to run in a data or broker
only mode. This will help w/ backwards compatibility with existing
config files.
2015-04-07 12:17:34 -06:00
Jason Wilder 2b502858dc Prevent starting server if both broker and data are disabled
Not a valid configuration so print the error and some suggestions
to fix it.
2015-04-07 12:17:28 -06:00
Cory LaNou fadcef0bd3 Merge pull request #2180 from influxdb/http-gzip-posts
Allow http write handler to decode gzipped body
2015-04-07 11:00:14 -05:00
Cory LaNou 43cefd45ea Update CHANGELOG.md 2015-04-07 10:55:07 -05:00
Cory LaNou 13f318b084 Allow http write handler to decode gzipped body 2015-04-07 10:34:55 -05:00
Paul Dix a72707bdbc Merge pull request #2175 from influxdb/data-broker-1934
Separate broker and data nodes
2015-04-07 11:33:39 -04:00
Philip O'Toole 6536beb549 Switch on "SHOW DIAGNOSTICS" statement
Fix issue #2179
2015-04-07 08:21:42 -07:00
Jason Wilder fd11797dcb Update CHANGELOG
Add #2175
2015-04-06 21:41:46 -06:00
Jason Wilder 9e109e847b Fix typos in comments 2015-04-06 21:39:18 -06:00
Jason Wilder 0f1fb3a5c3 Fix race on Topic.indexByUrl
applySetTopicMaxIndex() was updating the topics.indexByUrl w/o locking it.

WARNING: DATA RACE
Write by goroutine 1365:
  runtime.mapassign1()
      /usr/local/go/src/runtime/hashmap.go:376 +0x0
  github.com/influxdb/influxdb/messaging.(*Broker).applySetTopicMaxIndex()
      /home/ubuntu/.go_project/src/github.com/influxdb/influxdb/messaging/broker.go:496 +0x198
  github.com/influxdb/influxdb/messaging.(*Broker).Apply()
      /home/ubuntu/.go_project/src/github.com/influxdb/influxdb/messaging/broker.go:542 +0x33a
  github.com/influxdb/influxdb.(*Broker).Apply()
      <autogenerated>:1 +0x78
  github.com/influxdb/influxdb/messaging.(*RaftFSM).Apply()
      /home/ubuntu/.go_project/src/github.com/influxdb/influxdb/messaging/broker.go:614 +0x24f
  github.com/influxdb/influxdb/raft.(*Log).applyNextUnappliedEntry()
      /home/ubuntu/.go_project/src/github.com/influxdb/influxdb/raft/log.go:1431 +0x75c
  github.com/influxdb/influxdb/raft.(*Log).applier()
      /home/ubuntu/.go_project/src/github.com/influxdb/influxdb/raft/log.go:1369 +0x18f

Previous read by goroutine 1540:
  runtime.mapiterinit()
      /usr/local/go/src/runtime/hashmap.go:535 +0x0
  github.com/influxdb/influxdb/messaging.(*Topic).DataURLs()
      /home/ubuntu/.go_project/src/github.com/influxdb/influxdb/messaging/broker.go:681 +0x11d
  github.com/influxdb/influxdb/cmd/influxd.(*Handler).serveMetadata()
      /home/ubuntu/.go_project/src/github.com/influxdb/influxdb/cmd/influxd/handler.go:95 +0x3fd
  github.com/influxdb/influxdb/cmd/influxd.(*Handler).ServeHTTP()
      /home/ubuntu/.go_project/src/github.com/influxdb/influxdb/cmd/influxd/handler.go:45 +0x540
  net/http.serverHandler.ServeHTTP()
      /usr/local/go/src/net/http/server.go:1703 +0x1f6
  net/http.(*conn).serve()
      /usr/local/go/src/net/http/server.go:1204 +0x1087
2015-04-06 21:16:19 -06:00
Mark Rushakoff 48b3986579 Merge pull request #2176 from influxdb/consistent-usage-printing
Use fmt.Println, not log.Println to print usage
2015-04-06 15:55:21 -07:00
Todd Persen 89ae8b36ee Merge pull request #2177 from influxdb/gzip-post-script
Update test script to read and write with gzip compression
2015-04-06 15:39:53 -07:00