Skip to content

Commit

Permalink
Merge branch 'next'
Browse files Browse the repository at this point in the history
  • Loading branch information
manolama committed Dec 17, 2018
2 parents 54601d9 + 93aaac4 commit bf69feb
Show file tree
Hide file tree
Showing 227 changed files with 39,397 additions and 3,427 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,8 @@ tools/docker/libs
tools/docker/*.jar
tools/docker/logback.xml
tools/docker/opentsdb.conf

# FatJar
fat-jar-pom.xml
src-resources/
test-resources/
124 changes: 119 additions & 5 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ nodist_bin_SCRIPTS = tsdb
dist_noinst_SCRIPTS = src/create_table.sh src/upgrade_1to2.sh src/mygnuplot.sh \
src/mygnuplot.bat src/opentsdb.conf tools/opentsdb_restart.py src/logback.xml
dist_noinst_DATA = pom.xml.in build-aux/rpm/opentsdb.conf \
build-aux/rpm/logback.xml build-aux/rpm/init.d/opentsdb
build-aux/rpm/logback.xml build-aux/rpm/init.d/opentsdb \
build-aux/rpm/systemd/[email protected]
tsdb_SRC := \
src/core/AggregationIterator.java \
src/core/Aggregator.java \
Expand All @@ -47,19 +48,42 @@ tsdb_SRC := \
src/core/DownsamplingSpecification.java \
src/core/FillingDownsampler.java \
src/core/FillPolicy.java \
src/core/Histogram.java \
src/core/HistogramAggregation.java \
src/core/HistogramAggregationIterator.java \
src/core/HistogramAggregator.java \
src/core/HistogramBucketDataPointsAdaptor.java \
src/core/HistogramCodecManager.java \
src/core/HistogramDataPoint.java \
src/core/HistogramDataPointCodec.java \
src/core/HistogramDataPoints.java \
src/core/HistogramDataPointsToDataPointsAdaptor.java \
src/core/HistogramDownsampler.java \
src/core/HistogramPojo.java \
src/core/HistogramRowSeq.java \
src/core/HistogramSeekableView.java \
src/core/HistogramSpan.java \
src/core/HistogramSpanGroup.java \
src/core/iHistogramRowSeq.java \
src/core/IncomingDataPoint.java \
src/core/IncomingDataPoints.java \
src/core/IllegalDataException.java \
src/core/Internal.java \
src/core/MultiGetQuery.java \
src/core/MutableDataPoint.java \
src/core/Query.java \
src/core/QueryException.java \
src/core/RateOptions.java \
src/core/RateSpan.java \
src/core/RateOptions.java \
src/core/RateSpan.java \
src/core/RequestBuilder.java \
src/core/RowKey.java \
src/core/RowSeq.java \
src/core/iRowSeq.java \
src/core/SaltScanner.java \
src/core/SeekableView.java \
src/core/SimpleHistogram.java \
src/core/SimpleHistogramDataPointAdapter.java \
src/core/SimpleHistogramDecoder.java \
src/core/Span.java \
src/core/SpanGroup.java \
src/core/TSDB.java \
Expand All @@ -70,12 +94,20 @@ tsdb_SRC := \
src/core/WritableDataPoints.java \
src/core/WriteableDataPointFilterPlugin.java \
src/graph/Plot.java \
src/auth/AllowAllAuthenticatingAuthorizer.java \
src/auth/AuthenticationChannelHandler.java \
src/auth/Authentication.java \
src/auth/Authorization.java \
src/auth/AuthState.java \
src/auth/Permissions.java \
src/auth/Roles.java \
src/meta/Annotation.java \
src/meta/MetaDataCache.java \
src/meta/TSMeta.java \
src/meta/TSUIDQuery.java \
src/meta/UIDMeta.java \
src/query/QueryUtil.java \
src/query/QueryLimitOverride.java \
src/query/expression/Absolute.java \
src/query/expression/Alias.java \
src/query/expression/DiffSeries.java \
Expand Down Expand Up @@ -117,6 +149,15 @@ tsdb_SRC := \
src/query/pojo/Query.java \
src/query/pojo/Timespan.java \
src/query/pojo/Validatable.java \
src/rollup/NoSuchRollupForIntervalException.java \
src/rollup/NoSuchRollupForTableException.java \
src/rollup/RollupConfig.java \
src/rollup/RollUpDataPoint.java \
src/rollup/RollupInterval.java \
src/rollup/RollupQuery.java \
src/rollup/RollupSeq.java \
src/rollup/RollupSpan.java \
src/rollup/RollupUtils.java \
src/search/SearchPlugin.java \
src/search/SearchQuery.java \
src/search/TimeSeriesLookup.java \
Expand All @@ -138,6 +179,11 @@ tsdb_SRC := \
src/tools/TextImporter.java \
src/tools/TreeSync.java \
src/tools/UidManager.java \
src/tools/ArgValueValidator.java \
src/tools/ConfigArgP.java \
src/tools/ConfigMetaType.java \
src/tools/GnuplotInstaller.java \
src/tools/OpenTSDBMain.java \
src/tree/Branch.java \
src/tree/Leaf.java \
src/tree/Tree.java \
Expand All @@ -150,6 +196,7 @@ tsdb_SRC := \
src/tsd/DropCachesRpc.java \
src/tsd/GnuplotException.java \
src/tsd/GraphHandler.java \
src/tsd/HistogramDataPointRpc.java \
src/tsd/HttpJsonSerializer.java \
src/tsd/HttpSerializer.java \
src/tsd/HttpQuery.java \
Expand All @@ -162,6 +209,7 @@ tsdb_SRC := \
src/tsd/PutDataPointRpc.java \
src/tsd/QueryExecutor.java \
src/tsd/QueryRpc.java \
src/tsd/RollupDataPointRpc.java \
src/tsd/RpcHandler.java \
src/tsd/RpcPlugin.java \
src/tsd/RpcManager.java \
Expand Down Expand Up @@ -193,9 +241,10 @@ tsdb_SRC := \
src/utils/JSONException.java \
src/utils/Pair.java \
src/utils/PluginLoader.java \
src/utils/Threads.java
src/utils/Threads.java

tsdb_DEPS = \
$(ASM) \
$(COMMONS_LOGGING) \
$(GUAVA) \
$(LOG4J_OVER_SLF4J) \
Expand All @@ -207,7 +256,10 @@ tsdb_DEPS = \
$(JAVACC) \
$(JEXL) \
$(JGRAPHT) \
$(KRYO) \
$(MINLOG) \
$(NETTY) \
$(REFLECTASM) \
$(SLF4J_API) \
$(SUASYNC) \
$(APACHE_MATH)
Expand Down Expand Up @@ -239,6 +291,9 @@ endif
test_SRC := \
test/core/SeekableViewsForTest.java \
test/core/BaseTsdbTest.java \
test/core/HistogramSeekableViewForTest.java \
test/core/LongHistogramDataPointForTest.java \
test/core/LongHistogramDataPointForTestDecoder.java \
test/core/TestAggregationIterator.java \
test/core/TestAggregators.java \
test/core/TestAppendDataPoints.java \
Expand All @@ -247,6 +302,14 @@ test_SRC := \
test/core/TestDownsampler.java \
test/core/TestDownsamplingSpecification.java \
test/core/TestFillingDownsampler.java \
test/core/TestHistogramAggregationIterator.java \
test/core/TestHistogramCodecManager.java \
test/core/TestHistogramDataPointsToDataPointsAdaptor.java \
test/core/TestHistogramDownsampler.java \
test/core/TestHistogramPojo.java \
test/core/TestHistogramRowSeq.java \
test/core/TestHistogramSpan.java \
test/core/TestHistogramSpanGroup.java \
test/core/TestIncomingDataPoints.java \
test/core/TestInternal.java \
test/core/TestMutableDataPoint.java \
Expand All @@ -270,6 +333,7 @@ test_SRC := \
test/core/TestTsdbQuerySaltedAppend.java \
test/core/TestTSQuery.java \
test/core/TestTSSubQuery.java \
test/core/TestTsdbTSConfig.java \
test/plugin/DummyPlugin.java \
test/meta/TestAnnotation.java \
test/meta/TestTSMeta.java \
Expand Down Expand Up @@ -310,6 +374,10 @@ test_SRC := \
test/query/pojo/TestOutput.java \
test/query/pojo/TestQuery.java \
test/query/pojo/TestTimeSpan.java \
test/rollup/TestRollupConfig.java \
test/rollup/TestRollupInterval.java \
test/rollup/TestRollupSeq.java \
test/rollup/TestRollupUtils.java \
test/search/TestSearchPlugin.java \
test/search/TestSearchQuery.java \
test/search/TestTimeSeriesLookup.java \
Expand All @@ -328,6 +396,7 @@ test_SRC := \
test/tree/TestTree.java \
test/tree/TestTreeBuilder.java \
test/tree/TestTreeRule.java \
test/tsd/BaseTestPutRpc.java \
test/tsd/NettyMocks.java \
test/tsd/TestAnnotationRpc.java \
test/tsd/TestGraphHandler.java \
Expand All @@ -338,6 +407,7 @@ test_SRC := \
test/tsd/TestQueryExecutor.java \
test/tsd/TestQueryRpc.java \
test/tsd/TestQueryRpcLastDataPoint.java \
test/tsd/TestRollupRpc.java \
test/tsd/TestRpcHandler.java \
test/tsd/TestRpcPlugin.java \
test/tsd/TestRpcManager.java \
Expand Down Expand Up @@ -640,17 +710,23 @@ install-data-etc:
destdataetcdir="$(DESTDIR)$(pkgdatadir)/etc" ; \
destdataconfdir="$$destdataetcdir/opentsdb" ; \
destdatainitdir="$$destdataetcdir/init.d" ; \
destdatasystemddir="$$destdataetcdir/systemd/system" ; \
echo " $(mkdir_p) $$destdataconfdir"; \
$(mkdir_p) "$$destdataconfdir" || exit 1; \
echo " $(mkdir_p) $$destdatainitdir"; \
$(mkdir_p) "$$destdatainitdir" || exit 1; \
echo " $(mkdir_p) $$destdatasystemddir"; \
$(mkdir_p) "$$destdatasystemddir" || exit 1; \
conf_files="$$conf_files $(top_srcdir)/build-aux/rpm/opentsdb.conf" ; \
conf_files="$$conf_files $(top_srcdir)/build-aux/rpm/logback.xml" ; \
echo " $(INSTALL_SCRIPT)" $$conf_files "$$destdataconfdir" ; \
$(INSTALL_DATA) $$conf_files "$$destdataconfdir" || exit 1; \
init_file="$(top_srcdir)/build-aux/rpm/init.d/opentsdb" ; \
echo " $(INSTALL_SCRIPT)" $$init_file "$$destdatainitdir" ; \
$(INSTALL_SCRIPT) $$init_file "$$destdatainitdir" || exit 1;
$(INSTALL_SCRIPT) $$init_file "$$destdatainitdir" || exit 1; \
systemd_file="$(top_srcdir)/build-aux/rpm/systemd/[email protected]" ; \
echo " $(INSTALL_SCRIPT)" $$systemd_file "$$destdatasystemddir" ; \
$(INSTALL_SCRIPT) $$systemd_file "$$destdatasystemddir" || exit 1;

uninstall-data-etc:
@$(NORMAL_UNINSTALL)
Expand Down Expand Up @@ -812,6 +888,44 @@ pom.xml: pom.xml.in Makefile
} >$@-t
mv $@-t ../$@

# Generates a maven pom called fat-jar-pom.xml that builds a fat jar
# containing all the dependencies required to run opentsdb
fat-jar-pom.xml: ./fat-jar/fat-jar-pom.xml.in Makefile
(cd $(top_srcdir) ; ./fat-jar/create-src-dir-overlay.sh)
{ \
echo '<!-- Generated by Makefile on '`date`' -->'; \
sed <$< \
-e 's/@ASYNCHBASE_VERSION@/$(ASYNCHBASE_VERSION)/' \
-e 's/@ASYNCBIGTABLE_VERSION@/$(ASYNCBIGTABLE_VERSION)/' \
-e 's/@ASYNCCASSANDRA_VERSION@/$(ASYNCCASSANDRA_VERSION)/' \
-e 's/@GUAVA_VERSION@/$(GUAVA_VERSION)/' \
-e 's/@GWT_VERSION@/$(GWT_VERSION)/' \
-e 's/@GWT_THEME_VERSION@/$(GWT_THEME_VERSION)/' \
-e 's/@HAMCREST_VERSION@/$(HAMCREST_VERSION)/' \
-e 's/@JACKSON_VERSION@/$(JACKSON_VERSION)/' \
-e 's/@JAVASSIST_VERSION@/$(JAVASSIST_VERSION)/' \
-e 's/@JUNIT_VERSION@/$(JUNIT_VERSION)/' \
-e 's/@KRYO_VERSION@/$(KRYO_VERSION)/' \
-e 's/@LOG4J_OVER_SLF4J_VERSION@/$(LOG4J_OVER_SLF4J_VERSION)/' \
-e 's/@LOGBACK_CLASSIC_VERSION@/$(LOGBACK_CLASSIC_VERSION)/' \
-e 's/@LOGBACK_CORE_VERSION@/$(LOGBACK_CORE_VERSION)/' \
-e 's/@MOCKITO_VERSION@/$(MOCKITO_VERSION)/' \
-e 's/@NETTY_VERSION@/$(NETTY_VERSION)/' \
-e 's/@OBJENESIS_VERSION@/$(OBJENESIS_VERSION)/' \
-e 's/@POWERMOCK_MOCKITO_VERSION@/$(POWERMOCK_MOCKITO_VERSION)/' \
-e 's/@SLF4J_API_VERSION@/$(SLF4J_API_VERSION)/' \
-e 's/@SUASYNC_VERSION@/$(SUASYNC_VERSION)/' \
-e 's/@ZOOKEEPER_VERSION@/$(ZOOKEEPER_VERSION)/' \
-e 's/@APACHE_MATH_VERSION@/$(APACHE_MATH_VERSION)/' \
-e 's/@JEXL_VERSION@/$(JEXL_VERSION)/' \
-e 's/@JGRAPHT_VERSION@/$(JGRAPHT_VERSION)/' \
-e 's/@spec_title@/$(spec_title)/' \
-e 's/@spec_vendor@/$(spec_vendor)/' \
-e 's/@spec_version@/$(PACKAGE_VERSION)/' \
; \
} >$@-t
mv $@-t ../$@

TIMESTAMP := $(shell date +"%Y%m%d%H%M%S")
RPM_REVISION := 1
RPM_TARGET := noarch
Expand Down
17 changes: 16 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
OpenTSDB - User visible changes.
OpenTSDB - Changelog

* Version 2.4.0 RC2 (2017-10-08)

Noteworthy Changes:
- Modify the RPC handler plugin system so that it parses only the first part of
the URI instead of the entire path. Now plugins can implement sub-paths.
- Return the HTML 5 doctype for built-in UI pages
- Add an optional byte and/or data point limit to the amount of data fetched
from storage. This allows admins to prevent OOMing TSDs due to massive queries.
- Allow a start time via config when enabling the date tiered compaction in HBase
- Provide the option of using an LRU for caching UIDs to avoid OOMing writers and
readers with too many strings
- Optionally avoid writing to the forward or reverse UID maps when a specific TSD
operational mode is enabled to avoid wasting memory on maps that will never be
used.

* Version 2.3.2 (2018-12-16)

Expand Down
9 changes: 9 additions & 0 deletions THANKS
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ copyright assignment.

Adrian Goll
Adrian Muraru <[email protected]>
Adrian Goll
Adrien Mogenet <[email protected]>
Alex Ioffe <[email protected]>
Andre Pech
Expand All @@ -19,6 +20,7 @@ Aravind Gottipati <[email protected]>
Arvind Jayaprakash <[email protected]>
Berk D. Demir <[email protected]>
Bikrant Neupane
Bizhu Qiu
Bryan Hernandez <[email protected]>
Bryan Zubrod <[email protected]>
Camden Narzt
Expand All @@ -27,6 +29,7 @@ Carlos Devoto
Chaotian
Chris McClymont <[email protected]>
Cristian Sechel
Christos Soulios
Christophe Furmaniak
Dave Barr <[email protected]>
Davide D Amico
Expand All @@ -44,6 +47,7 @@ Hugo M Fernandes
Hugo Trippaers <[email protected]>
Ioanszilgyi
Isaiah Choe
Ioan Szilagyi
Ivan Babrou
Jacek Masiulaniec <[email protected]>
Jari Takkala <[email protected]>
Expand All @@ -60,10 +64,12 @@ John Seekins
Jonathan Works <[email protected]>
Josh Thomas <[email protected]>
Jsbali
Karan Mehta
Kevin Bowling
Kevin Landreth
Kieren Hynd <[email protected]>
Kimoon Kim <[email protected]>
Kousha Hamidi
Kris Beevers <[email protected]>
Kyle Brandt
Lex Herbert <[email protected]>
Expand All @@ -76,12 +82,14 @@ Marcin Januszkiewicz
Matt Jibson <[email protected]>
Matt Schallert <[email protected]>
Marc Tamsky
Marcin Januszkiewicz
Mark Smith <[email protected]>
Martin Jansen <[email protected]>
Max Meng
Michal Kimle
Mike Bryant <[email protected]>
Mike Kobyakov <[email protected]>
Misha Brukman
Nathan Owens
Nicole Nagele <[email protected]>
Neil Fordyce
Expand All @@ -96,6 +104,7 @@ Peter Edwards
Ping Yong
Pradeep Chhetri <[email protected]>
Rajesh G
Rohan Nog
Ryan Berdeen <[email protected]>
Sean Miller
Siddartha Guthikonda <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion build-aux/deb/control/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ case "$1" in
rm -rf /var/log/opentsdb

# remove **only** empty data dir
rmdir -p --ignore-fail-on-non-empty /tmp/opentsdb
rmdir --ignore-fail-on-non-empty /tmp/opentsdb
;;

purge)
Expand Down
3 changes: 2 additions & 1 deletion build-aux/rpm/init.d/opentsdb
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,15 @@ start() {

# Set a default value for JVMARGS
: ${JVMXMX:=-Xmx6000m}
: ${JVMARGS:=-DLOG_FILE_PREFIX=${LOG_FILE} -enableassertions -enablesystemassertions $JVMXMX -XX:OnOutOfMemoryError=/usr/share/opentsdb/tools/opentsdb_restart.py}
: ${JVMARGS:=-DLOG_FILE=${LOG_FILE}opentsdb.log -DQUERY_LOG=${LOG_FILE}queries.log -enableassertions -enablesystemassertions $JVMXMX -XX:OnOutOfMemoryError=/usr/share/opentsdb/tools/opentsdb_restart.py}
export JVMARGS

if [ "`id -u -n`" == root ] ; then
# Changes the owner of the log directory to allow non-root OpenTSDB
# daemons to create and rename log files.
chown $USER: $LOG_DIR > /dev/null 2>&1
chown $USER: ${LOG_FILE}*opentsdb.log > /dev/null 2>&1
chown $USER: ${LOG_FILE}*queries.log > /dev/null 2>&1
chown $USER: ${LOG_FILE}opentsdb.out > /dev/null 2>&1
chown $USER: ${LOG_FILE}opentsdb.err > /dev/null 2>&1

Expand Down
Loading

0 comments on commit bf69feb

Please sign in to comment.