Partial fix for millisecond timestamps where more than 32,767 data points
were stored in a single RowSeq. Larry Reeder found this bug where an assertion
was thrown because the short index rolled over. Changing it to an int will help
but only allows up to 2.1M data points in a row whereas the schema allows 4M.
TODO - figure out an efficient means of keeping the full 4M bytes in memory
with quick access for iteration.

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Fix Debian package creation

create_table.sh needs to be copied into the package preparation
directory.

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
Use `Cache-Control: max-age=0' instead of `no-cache'.

Varnish ignores `no-cache', and since `max-age=0' works just as well
for both Varnish and web browsers, and makes for simpler code, just
use that instead.
Remove extraneous space.

This fixes #247.
Updates to debian init script

 - support /etc/default/opentsdb
 - Add /usr/lib/default-java as a potential JDK path, this
   is commonly used as a symlink to the default jdk

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
Provide a default value for os.name to avoid NPE in some cases.

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
Kill trailing whitespaces.
Fix Debian init script

  - Fix bash test syntax error
  - Properly test that TSD has started successfully
  - Pass appropriate exit code to log_action_end_msg if TSD fails to start

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
Merge branch 'next' into next_lastdp
Update MockBase to support column families

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Update unit tests to handle MockBase column families

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Add missing header in TestFsck.java

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Fix "tsuid:null" output in stats call

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Fix scan --import output where data values were printed as an array of bytes
instead of the actual values. Had inverted the value printing lines in the raw
vs import methods. Closes #248

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Merge branch 'next' into next_lastdp
Add UniqueId.uidToLong() to convert a UID from a hex string or byte array to
the numeric value given the length of the UID for the proper type.

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Enable the UID fsck utility to fix errors in the UID table and create a unit
test file to confirm the fixes work.
Add uid fsck "delete_unknown" flag to remove unknown columns

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Fix TestTSUIDQuery for MockBase with column family support

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>