Commit Graph

2321 Commits (5403baffd3764ec7eada4cd223395649c9a45aee)

Author SHA1 Message Date
Paul Dix 5403baffd3 Add data migration 0.7 -> 0.8
Close #809. Fix #746
2014-08-15 13:20:49 -04:00
John Shahid a9d73f5889 Make sure we always close the state on read and write
Fix #827
2014-08-14 10:34:33 -04:00
John Shahid 4862e8538f Increase timeout in the integration test client 2014-08-13 15:49:02 -04:00
John Shahid 335dec7ac5 Remove an unused rule in the lexer 2014-08-13 15:23:27 -04:00
John Shahid bc8b068106 Remove some printfs in the test 2014-08-13 15:23:27 -04:00
John Shahid 1ceddfb7c0 Remove the assertion since db creation might fail 2014-08-13 13:24:39 -04:00
John Shahid db9e0d7114 When remote executing a query send the time conditions as well
Close #820
2014-08-13 12:59:21 -04:00
John Shahid a493485f4d Drop testing for 1.2.1
We are using net/http Client.Timeout which was added in 1.3 and doesn't
exist in 1.2. There's no reason to keep backward compatibility with 1.2
since we're building our own binaries and go1.3 is available for those
who want to build their own binaries.
2014-08-12 15:26:39 -04:00
John Shahid 31c0e63d5d Fix TestShardExpiration
The shard could expire even before we get chance to see it in the result
of GetShards()
2014-08-12 15:12:11 -04:00
John Shahid 34732ad598 Fix the build 2014-08-12 14:50:55 -04:00
John Shahid 57d29e8bed Merge remote-tracking branch 'raft/master' 2014-08-12 14:26:59 -04:00
John Shahid 7f74a28951 Increase the timeout in the test 2014-08-12 14:06:14 -04:00
Paul Dix 23b7ae02ce Merge pull request #376 from influxdb/list-series-376
"list series" should allow filtering using a regular expression
2014-08-12 13:17:51 -04:00
John Shahid 49122da251 List series should support filtering by a regex 2014-08-11 16:59:11 -04:00
John Shahid 63cc69f1df Add a test for shard spaces regex 2014-08-07 16:06:49 -04:00
John Shahid d3e27e8ce5 Fix a typo 2014-08-07 15:22:05 -04:00
John Shahid dcbadb92f8 We should just keep track of the time object instead of the seconds 2014-08-07 13:14:30 -04:00
John Shahid 7a297b3f5e Close #803. Fix #767 2014-08-07 13:14:25 -04:00
John Shahid 8607a60fe0 Make sure we remove the shard metadata whenever it expires 2014-08-07 13:10:12 -04:00
John Shahid adfbdb0e4e Add a test for the shard expiration 2014-08-07 13:09:53 -04:00
Paul Dix 22d02b734d Update CHANGELOG.md 2014-08-06 16:38:56 -04:00
Paul Dix 69ba4ef992 Merge pull request #426 from influxdb/fix-426
Fill should fill the entire time range that is requested
2014-08-06 16:36:33 -04:00
John Shahid 680e6d96bc Always fill empty groups if the start time is specified.
Prior to this change, empty group filling worked between t1 and t2,
where t1 is the timestamp of the earliest point and t2 is the timestamp
of the last point. This patch change the behavior of the fill() to use
the query start and end time as t1 and t2, respectively. This only
happens if the user specified the start time of the query. Otherwise,
there's a potential of filling millions of millions of groups, since the
default start time of the query is really really early.
2014-08-06 16:03:29 -04:00
John Shahid e74b941c76 add rc5 to the changelog 2014-08-04 15:00:43 -04:00
John Shahid 031f4adf47 Remove an unused statement 2014-08-04 12:53:00 -04:00
John Shahid b16e090860 Add a standard response markdown file 2014-08-01 16:09:33 -04:00
John Shahid dd116bdca7 Don't read the entire body in memory 2014-08-01 16:09:09 -04:00
Paul Dix 97508402ee Move load database config to API
Fix #791 - Removed load database config options from the daemon. Created an API endpoint and updated test.
Fix #745 - Added definition of continuous queries to load database config.
Close #792
2014-08-01 16:09:00 -04:00
Paul Dix eaaa3228bf Update CHANGELOG.md
Mark 0.8.0-rc.4 released.
2014-07-30 14:37:16 -04:00
John Shahid 72fccdab6f Don't emit non existent fields when joining
Points in the joined series should have either the columns of the left
side or the columns of the right side of the join. Before this patch
join relied on merge to order the points of the two series and then join
consecutive points together. The merge emitted the union of the columns
of the two series, which caused the joined series to always have the
union of two series. This combined with the fact that the point's values
weren't adjusted to have nulls for the missing columns caused panic when
any operation is done on the points, e.g. addition.

Fix #740, Fix #781
2014-07-30 14:06:47 -04:00
John Shahid 3ebf536737 wait for servers to sync 2014-07-29 14:29:19 -04:00
John Shahid 22cb673771 Fix the build on go1.3
There was one remaining reference to an incomplete struct type from c
which is value_array. The error printed by the compiler is intermittent,
meaning it compiles sometimes and print the error sometimes. Also,
value_array isn't strictly an incomplete data type since it contains a
pointer to an unknown data type but it's size could be computed.
2014-07-29 12:55:52 -04:00
John Shahid e8f750305f use camel casing instead of underscore 2014-07-29 12:21:48 -04:00
John Shahid 67f9869b82 revert previous commit 2014-07-28 18:12:34 -04:00
John Shahid 99ac385e6c speed up the release 2014-07-28 18:06:49 -04:00
John Shahid d18359a716 update the changelog 2014-07-28 14:44:36 -04:00
Dieter Plaetinck 856a94cc78 graphite ingest write data in batches to coordinator
Close #644

This commit also include lots of cleanup related to start up and
shutting down as well as logging. Below is an explanation of how the api
starts up and shuts down. It also covers the error conditions and how
they are handled.

networking/goroutine fixes

* break from TCP Accept() loop when connection closed, which was preventing shutdown to proceed
* make sure that UDP functionality doesn't write to writeSeries channel after it has been closed.
* clearer, more specific shutdown message

in particular:

 * self.writers allows us to make sure things writing to writeSeries are done
   (they do blocking calls to handleMessage()) whether udp or tcp
 * self.connClosed lets us break from the Accept() loop,
   see http://zhen.org/blog/graceful-shutdown-of-go-net-dot-listeners/ (quit channel)
 * shutdown channel is now allCommitted

things can get a little complicated, so here's a little schematic of how the functions and
their logic relate:
indent for a call out or important code within. everything shown as one nested tree

  server.go
      go ListenAndServe
          go committer
              reads from self.writeSeries until closed, then writes to self.allCommitted
          Serve
              for {
                  Accept, breaks if err + connClosed
                  self.writers.Add()
                  go handleClient
                      for {
                          handleMessage
                              reads until err and writes to self.writeSeries until read failed
                          reads until EOF, ignores other handleMessage errors
                      }
                      conn.Close()
                      self.writers.Done()
              }
              self.writers.Wait()
              close(self.writeSeries)
      Close()
          close(self.connClosed)
          self.conn.Close()
          wants confirmation on allCommitted channel; [timeout] returns within 5s
2014-07-28 14:40:21 -04:00
John Shahid 3284662b35 Fix an integration test that has changed in 91078c0
Non admin database users shouldn't be able to drop series. See #736 for
more details
2014-07-23 12:00:18 -04:00
John Shahid e349e22d42 Fix a unit test that has changed in 91078c0
Non admin database users shouldn't be able to drop series. See #736 for
more details
2014-07-22 15:54:16 -04:00
John Shahid e196277309 Merge branch 'pr-738'
Close #738. Fix #713
2014-07-22 15:28:02 -04:00
John Shahid 673a12257b Dry the fill() tests 2014-07-22 15:26:17 -04:00
Philip O'Toole c1e285383b Allow 'null' to be supplied as fill value
Add to unit tests to test fill, including new "null" support.

Fix #713.
2014-07-22 15:07:11 -04:00
John Shahid 91078c0d21 Non admin database users shouldn't be able to drop series
Fix #736
2014-07-22 13:33:51 -04:00
John Shahid b051ffccac add a flag to force output to go to stdout 2014-07-22 12:49:31 -04:00
John Shahid f1f575dd9a Fix travis 2014-07-22 12:31:35 -04:00
John Shahid c02cff22c5 Fix some bugs with retention policy of shard spaces
This commit fixes two bugs:

Don't try to parse "inf" retention policy when creating a shard
space. This caused a panic to be thrown when a shard space is created
with infinity. Fix #774

`getExpiredShards()` used shard duration to determine which shards are
expired but should be using shard retention duration instead. Close #769
2014-07-22 10:55:39 -04:00
John Shahid 3b710fdc10 update the changelog 2014-07-21 17:42:07 -04:00
John Shahid afe3f9607b Add the sentinel values for all db on creation
Fix #772
2014-07-21 13:36:08 -04:00
John Shahid 6dfc2b3483 Add String() to the Field structure 2014-07-21 13:26:11 -04:00
John Shahid 588e053e22 Merge pull request #766 from shugo/database_conf_fix
fix typo in integration/database_conf.json
2014-07-18 11:38:17 -04:00