Make sure the .git directory exists before writing HEAD.

This closes #136.
Allow tuning the number of worker threads or using OIO.

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
Cache auto-completion results even if we don't use them.
Don't leak scanners when fetching suggestions from HBase.
Fetch the correct number of suggestions from HBase.

This bug had a subtle side-effect: the `break' in the while loop
was actually nested in a `for' loop, and was only breaking out of
the `for' loop, which had the weird consequence that we'd scan the
first 25 results from HBase, then because of the incorrect check
we'd iterate once more, get one more row from the next batch of
rows, then break out of the `for' loop, scan more rows, get the
first one in that batch, break out again, and so on and so forth
until the scanner reached the end key (generally rather quickly
given how the end key is crafted).

The net result is that we'd return the first 25 suggestions,
followed by 1 out of every 25 subsequent suggestion until the
end key.  This could confuse the web UI, as it relies on the
last suggestion returned to know whether to scan more.

This closes #63.
Add a small helper script to clean the --cachedir from cron.

This is only useful when the --cachedir is a tmpfs mount.
Ship the misc tools in the tarball.
Drop redundant call to AC_PROG_MKDIR_P.

This reverts commit fc792d9edf4cb8b08cbad5bdf349a0c5b99228e6.

After 70b8d1c, Automake's mkdir_p is now used. Automake provides mkdir_p
via AM_INIT_AUTOMAKE since 1.7b [1]; Automake >= 1.10 provides mkdir_p too,
by wrapping around Autoconf's MKDIR_P (via AC_PROG_MKDIR_P) [2]. Thus we
need not call anything to provide mkdir_p.

[1] http://git.savannah.gnu.org/cgit/automake.git/tree/ChangeLog?id=Release-1-7b#n51
[2] http://git.savannah.gnu.org/cgit/automake.git/tree/ChangeLog?id=Release-1-9b#n219

This also benefits older Autoconfs (ie. < 2.60) which do not provide
AC_PROG_MKDIR_P.

Tested on:
 - Solaris, Autoconf 2.59, Automake 1.8.3
 - Ubuntu,  Autoconf 2.68, Automake 1.11.3

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
Allow -w and -c to accept floats.

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
Update NEWS with changes made for v1.1.0.
Add a workaround to prevent the graph from being dragged around.

On mouse-down events we need to prevent the event's default behavior as
it may make the browser start dragging the image around.  We don't want,
we want to handle the dragging ourselves for the drag-to-zoom box.

However preventing the event's default behavior has another obnoxious
consequence: it doesn't remove the focus from whatever had it previously,
which may cause the image to not get reloaded if a text field was being
changed and the user simply "clicked away" on the image.
Set the indent style for Emacs users.

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
Help forward compatibility by ignoring invalid KeyValues.

Right now all data points are written with 2-byte qualifiers.  When we
compact data points, we paste together the qualifiers, so we end up with
a multiple of 2 bytes no matter what.  So when compacting a row, only
consider those KeyValues that have a qualifier that is even and has 2 or
more bytes, and silently ignore the rest.
Upgrade to Junit 4.11.

Also fix the URL from which it's being downloaded, as the GitHub URL
unfortunately became invalid.  Fetch from Maven instead, it's safer
in the long term.

This closes #158.
Add an RPM spec file.

Automatically set the version via configure.

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
Make it easier to build an RPM from source.

Add an `rpm' target to the Makefile that creates a tarball of the
current sources, and uses it to build an RPM.  Also fix various
issues to be able to build on Fedora and neuter various RPM macros
that are sometimes overridden and make life unnecessarily painful.
RPM: Improve formatting of the %description.
Don't urldecode the components, assume the URL is already decoded.

This fixes #152.

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
Merge branch 'master' of git://github.com/OpenTSDB/opentsdb

Conflicts:
	Makefile.am
	configure.ac
	third_party/junit/include.mk