Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
8320b0b
build: Security-driven dependency updates for 3.0 branch.
SeanPMiller Jun 30, 2026
bad2174
test(common): PowerMock->Mockito migration, test fixes, and build fix.
SeanPMiller Jun 30, 2026
f3868b4
test(core): PowerMock->Mockito migration and test fixes.
SeanPMiller Jun 30, 2026
bd2b112
test(executors/http): PowerMock->Mockito migration and test fixes.
SeanPMiller Jun 30, 2026
b4bfadf
test(implementation/athenz): PowerMock->Mockito migration and test fi…
SeanPMiller Jun 30, 2026
080ebb8
test(implementation/aws-secrets): PowerMock->Mockito migration and te…
SeanPMiller Jun 30, 2026
3fdabec
test(implementation/egads): PowerMock->Mockito migration and test fixes.
SeanPMiller Jun 30, 2026
31ee52f
test(implementation/elasticsearch): PowerMock->Mockito migration and …
SeanPMiller Jun 30, 2026
956104c
test(implementation/http-config): PowerMock->Mockito migration and te…
SeanPMiller Jun 30, 2026
ac8662f
test(implementation/influx): PowerMock->Mockito migration and test fi…
SeanPMiller Jun 30, 2026
7311cba
test(implementation/okta): PowerMock->Mockito migration and test fixes.
SeanPMiller Jun 30, 2026
62a1815
test(implementation/prometheus): PowerMock->Mockito migration and tes…
SeanPMiller Jun 30, 2026
8a73d26
test(implementation/protobuf): PowerMock->Mockito migration and test …
SeanPMiller Jun 30, 2026
72ab42f
test(implementation/query-runner): PowerMock->Mockito migration and t…
SeanPMiller Jun 30, 2026
6735e0d
test(implementation/redis): PowerMock->Mockito migration and test fixes.
SeanPMiller Jun 30, 2026
45c6f39
test(implementation/server-undertow): PowerMock->Mockito migration an…
SeanPMiller Jun 30, 2026
3b6805f
test(implementation/servlet): PowerMock->Mockito migration and test f…
SeanPMiller Jun 30, 2026
e10d1ea
test(implementation/tracer-brave): PowerMock->Mockito migration and t…
SeanPMiller Jun 30, 2026
8bd0d60
test(storage/asynchbase): PowerMock->Mockito migration and test fixes.
SeanPMiller Jun 30, 2026
925dc9d
test(storage/bigtable): PowerMock->Mockito migration and test fixes.
SeanPMiller Jun 30, 2026
d2beda1
test(storage/googlepubsub): PowerMock->Mockito migration and test fixes.
SeanPMiller Jun 30, 2026
973fdf1
fix(common): Skip serde round-trip in ConfigurationEntrySchema.valida…
SeanPMiller Jun 30, 2026
457c01d
fix(common): Validate directory argument in PluginLoader.loadJARs.
SeanPMiller Jun 30, 2026
f10b82d
fix(planner): Snapshot predecessors before graph mutation in DefaultQ…
SeanPMiller Jun 30, 2026
b48dcb9
fix(asynchbase): Reset current_result after push-mode scanner complet…
SeanPMiller Jun 30, 2026
845bebf
style: Whitespace-only cleanup.
SeanPMiller Jun 30, 2026
0675e7a
test: Remove unused PowerMock test dependencies from non-migrated mod…
SeanPMiller Jun 30, 2026
eed4ef9
fix: Share a single protobuf-java across storage and implementation m…
SeanPMiller Jul 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 9 additions & 10 deletions common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,8 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<groupId>org.mockito</groupId>
<artifactId>mockito-inline</artifactId>
<scope>test</scope>
</dependency>

Expand All @@ -123,7 +118,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<version>${maven.plugin.jar.version}</version>
<configuration>
<archive>
<manifestEntries>
Expand All @@ -144,13 +139,17 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<version>1.6.0</version>
<executions>
<execution>
<id>create-plugin-test-jar</id>
<!-- TODO: Put the jar in the target dir and fix surefire conf. -->
<configuration>
<executable>jar</executable>
<!-- Resolve the JDK 'jar' tool via JAVA_HOME; it lives in
$JAVA_HOME/bin but is not always on the CI runner's PATH.
$JAVA_HOME/bin/jar is correct on JDK 8 and 9+ alike,
whereas java.home differs between them ($JDK/jre vs $JDK). -->
<executable>${env.JAVA_HOME}/bin/jar</executable>
<arguments>
<argument>cvfm</argument>
<argument>plugin_test.jar</argument>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,19 @@
// limitations under the License.
package net.opentsdb.collections;

import java.io.Closeable;
import java.math.BigInteger;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import sun.misc.Unsafe;

import java.io.Closeable;
import java.math.BigInteger;

/**
* A linear probing Map for long keys and int values. Stores data off heap.
*
// * NOTE: There is now a hacky, ugly way to rehash the map without resizing when
// * deletes start to result in too many scans for missed entries. If the average
// * NOTE: There is now a hacky, ugly way to rehash the map without resizing when
// * deletes start to result in too many scans for missed entries. If the average
* number of scans per operation (any operation) exceeds the scan rehash threshold
* then we'll pick the next prime number from the primes set to hash with. It will
* roll over but by that time the key set should hopefully be fairly new.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@
// limitations under the License.
package net.opentsdb.collections;

import java.io.Closeable;
import java.math.BigInteger;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import sun.misc.Unsafe;

import java.io.Closeable;
import java.math.BigInteger;

/**
* A linear probing primitive Map for long keys and long values. Stores data off heap.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
// limitations under the License.
package net.opentsdb.collections;

import sun.misc.Unsafe;

import java.lang.reflect.Field;


import sun.misc.Unsafe;

/**
* An internal helper class to access {@link Unsafe}.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@
import java.util.TreeSet;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import javax.script.Bindings;
import javax.script.ScriptContext;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;

import net.opentsdb.utils.Config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import net.opentsdb.utils.Config;

/**
* <p>Title: ConfigArgP</p>
* <p>Description: Wraps {@link Config} and {@link ArgP} instances for a consolidated configuration and command line handler</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,13 @@ public ValidationResult validate(final Object value) {
if (value == null && nullable) {
return ConfigurationValueValidator.OK;
}

// If the given value already has the expected type, then we need no round
// trip. By skipping convertValue() below, we avoid problems with classes
// that do not round-trip successfully through serde.
if (type != null && value.getClass().equals(type)) {
return ConfigurationValueValidator.OK;
}

try {
if (type_reference != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Properties;
import java.util.Set;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Properties;
import java.util.Set;

import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@
// limitations under the License.
package net.opentsdb.configuration.provider;

import net.opentsdb.configuration.Configuration;
import net.opentsdb.configuration.ConfigurationOverride;

import java.io.Closeable;
import java.util.Map;

import io.netty.util.TimerTask;
import net.opentsdb.configuration.Configuration;
import net.opentsdb.configuration.ConfigurationOverride;

/**
* The base class for a {@link Configuration} provider. It maintains a reference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import java.io.InputStream;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.Map.Entry;
import java.util.Set;
import java.util.concurrent.TimeUnit;

import org.slf4j.Logger;
Expand Down
5 changes: 3 additions & 2 deletions common/src/main/java/net/opentsdb/core/Registry.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
import java.util.Map;
import java.util.concurrent.ExecutorService;

import com.google.common.reflect.TypeToken;
import com.stumbleupon.async.Deferred;

import com.google.common.reflect.TypeToken;

import net.opentsdb.data.TimeSeriesDataType;
import net.opentsdb.pools.ObjectPool;
import net.opentsdb.query.QueryIteratorFactory;
import net.opentsdb.query.interpolation.QueryInterpolatorFactory;
import net.opentsdb.query.QueryNodeFactory;
import net.opentsdb.query.interpolation.QueryInterpolatorFactory;

/**
* A shared location for registering context, mergers, plugins, etc.
Expand Down
1 change: 1 addition & 0 deletions common/src/main/java/net/opentsdb/core/TSDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.util.concurrent.ExecutorService;

import com.stumbleupon.async.Deferred;

import io.netty.util.Timer;
import net.opentsdb.configuration.Configuration;
import net.opentsdb.query.QueryContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
// limitations under the License.
package net.opentsdb.data;

import java.io.IOException;
import java.util.Arrays;

import net.opentsdb.data.LowLevelMetricData.HashedLowLevelMetricData;
import net.opentsdb.pools.CloseablePooledObject;
import net.opentsdb.pools.PooledObject;
import net.opentsdb.storage.TimeSeriesDataConsumer.WriteCallback;
import net.opentsdb.storage.WriteStatus;

import java.io.IOException;
import java.util.Arrays;

/**
* A wrapper used when forwarding data to another consumer but some of that
* data needs to be skipped.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@
// limitations under the License.
package net.opentsdb.data;

import java.util.Map;

import com.google.common.collect.Maps;
import com.google.common.reflect.TypeToken;
import net.opentsdb.common.Const;

import java.util.Map;
import net.opentsdb.common.Const;

public class LowLevelMetricDataStringIdWrapper implements TimeSeriesDatumStringId {
public class LowLevelMetricDataStringIdWrapper implements TimeSeriesDatumStringId {

private LowLevelMetricData data;
private Map<String, String> tags;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@

import java.util.List;

import com.google.common.reflect.TypeToken;
import com.stumbleupon.async.Deferred;

import com.google.common.reflect.TypeToken;

import net.opentsdb.core.TSDBPlugin;
import net.opentsdb.query.QueryNodeConfig;
import net.opentsdb.query.QueryNodeFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
// limitations under the License.
package net.opentsdb.data;

import com.google.common.reflect.TypeToken;

import java.io.Closeable;
import java.util.Iterator;

import com.google.common.reflect.TypeToken;

/**
* An iterator for {@link TimeSeriesValue}s that lets us determine the
* type of the underlying data without having to resolve the types.
*
* @since 3.0
*/
public interface TypedTimeSeriesIterator<T extends TimeSeriesDataType>
public interface TypedTimeSeriesIterator<T extends TimeSeriesDataType>
extends Iterator<TimeSeriesValue<T>>, Closeable {

/**
Expand Down
7 changes: 4 additions & 3 deletions common/src/main/java/net/opentsdb/meta/BatchMetaQuery.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
// limitations under the License.
package net.opentsdb.meta;

import com.google.common.hash.HashCode;
import net.opentsdb.data.TimeStamp;

import java.util.ArrayList;
import java.util.List;

import com.google.common.hash.HashCode;

import net.opentsdb.data.TimeStamp;

public interface BatchMetaQuery {

public static enum QueryType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;

import com.google.common.reflect.TypeToken;

import java.util.Set;
import net.opentsdb.data.TimeSeriesId;
import net.opentsdb.utils.Pair;
import net.opentsdb.utils.UniqueKeyPair;
Expand Down
1 change: 1 addition & 0 deletions common/src/main/java/net/opentsdb/meta/MetaQuery.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package net.opentsdb.meta;

import com.google.common.hash.HashCode;

import net.opentsdb.query.filter.QueryFilter;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,32 @@
// limitations under the License.
package net.opentsdb.query;

import java.util.List;
import java.util.Map;


import com.stumbleupon.async.Deferred;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.fasterxml.jackson.core.type.TypeReference;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
import com.stumbleupon.async.Deferred;

import net.opentsdb.auth.AuthState;
import net.opentsdb.configuration.ConfigurationEntrySchema;
import net.opentsdb.core.BaseTSDBPlugin;
import net.opentsdb.core.TSDB;
import net.opentsdb.meta.BatchMetaQuery;
import net.opentsdb.meta.MetaQuery;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;
import java.util.Map;

/**
* A chain of query context filters processed in the order of definition.
*
* @since 3.0
*/
public class ChainedQueryContextFilter extends BaseTSDBPlugin
implements QueryContextFilter {
implements QueryContextFilter {
private static final Logger LOG = LoggerFactory.getLogger(
ChainedQueryContextFilter.class);

Expand Down
3 changes: 2 additions & 1 deletion common/src/main/java/net/opentsdb/query/QueryContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
import java.util.List;
import java.util.Map;

import com.google.common.reflect.TypeToken;
import com.stumbleupon.async.Deferred;

import com.google.common.reflect.TypeToken;

import net.opentsdb.auth.AuthState;
import net.opentsdb.core.TSDB;
import net.opentsdb.data.TimeSeriesId;
Expand Down
7 changes: 4 additions & 3 deletions common/src/main/java/net/opentsdb/query/QueryNodeConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
// limitations under the License.
package net.opentsdb.query;

import com.google.common.hash.HashCode;
import net.opentsdb.configuration.Configuration;

import java.util.List;
import java.util.Map;

import com.google.common.hash.HashCode;

import net.opentsdb.configuration.Configuration;

/**
* The configuration interface for a particular query node. Queries will populate
* the configs when instantiating a DAG.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@

import java.util.Collection;

import com.google.common.reflect.TypeToken;
import com.stumbleupon.async.Deferred;

import com.google.common.reflect.TypeToken;

import net.opentsdb.core.TSDB;
import net.opentsdb.data.TimeSeriesDataSource;
import net.opentsdb.data.TimeSeriesId;
Expand Down
Loading