Skip to content

Commit

Permalink
Merge branch 'integration' into task/replace-deprecated-option-builder
Browse files Browse the repository at this point in the history
  • Loading branch information
SethSmucker authored Aug 19, 2024
2 parents f355595 + 2df2941 commit 44d7443
Show file tree
Hide file tree
Showing 124 changed files with 3,520 additions and 199 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
java-version: ${{env.JAVA_VERSION}}
maven-version: 3.9.5
cache: 'maven'
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Format code
env:
USER_NAME: ${{ secrets.USER_NAME }}
Expand All @@ -42,6 +46,7 @@ jobs:
- name: Commit Changes
run: |
if [ "$diffs_found" = true ]; then
git checkout -b ${{ steps.extract_branch.outputs.branch }}
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git commit -am "Formatting job fix"
Expand Down
2 changes: 1 addition & 1 deletion common-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.nsa.datawave</groupId>
<artifactId>datawave-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
</parent>
<artifactId>datawave-common-test</artifactId>
<name>${project.artifactId}</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ admin.enableServer=false"

# You may override DW_ACCUMULO_DIST_URI in your env ahead of time, and set as file:///path/to/file.tar.gz for local tarball, if needed
# DW_ACCUMULO_DIST_URI should, if possible, be using https. There are potential security risks by using http.
DW_ACCUMULO_DIST_URI="${DW_ACCUMULO_DIST_URI:-https://dlcdn.apache.org/accumulo/2.1.2/accumulo-2.1.2-bin.tar.gz}"
DW_ACCUMULO_DIST_URI="${DW_ACCUMULO_DIST_URI:-https://dlcdn.apache.org/accumulo/2.1.3/accumulo-2.1.3-bin.tar.gz}"
# The sha512 checksum for the tarball. Value should be the hash value only and does not include the file name. Cannot be left blank.
DW_ACCUMULO_DIST_SHA512_CHECKSUM="${DW_ACCUMULO_DIST_SHA512_CHECKSUM:-27778c1c3f1d88ab128649fd0671d3be97ba052216ab43f1169395960e8c7d16375a51f940c2262437b836ea31f83f73f08f7a3d8cadda443e5e8bb31d9b23c5}"
DW_ACCUMULO_DIST_SHA512_CHECKSUM="${DW_ACCUMULO_DIST_SHA512_CHECKSUM:-1a27a144dc31f55ccc8e081b6c1bc6cc0362a8391838c53c166cb45291ff8f35867fd8e4729aa7b2c540f8b721f8c6953281bf589fc7fe320e4dc4d20b87abc4}"
# shellcheck disable=SC2034
DW_ACCUMULO_DIST="$( downloadTarball "${DW_ACCUMULO_DIST_URI}" "${DW_ACCUMULO_SERVICE_DIR}" && echo "${tarball}" )"
DW_ACCUMULO_BASEDIR="accumulo-install"
Expand Down
6 changes: 3 additions & 3 deletions contrib/datawave-quickstart/docker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@
<parent>
<groupId>gov.nsa.datawave</groupId>
<artifactId>datawave-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>quickstart</artifactId>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<properties>
<!-- These distributions and URLs should match what is listed in each service's bootstrap.sh script -->
<dist.accumulo>accumulo-2.1.2-bin.tar.gz</dist.accumulo>
<dist.accumulo>accumulo-2.1.3-bin.tar.gz</dist.accumulo>
<dist.hadoop>hadoop-3.3.6.tar.gz</dist.hadoop>
<dist.maven>apache-maven-3.8.8-bin.tar.gz</dist.maven>
<dist.wildfly>wildfly-17.0.1.Final.tar.gz</dist.wildfly>
<dist.zookeeper>apache-zookeeper-3.7.2-bin.tar.gz</dist.zookeeper>
<skipIngest>false</skipIngest>
<url.accumulo>https://dlcdn.apache.org/accumulo/2.1.2/${dist.accumulo}</url.accumulo>
<url.accumulo>https://dlcdn.apache.org/accumulo/2.1.3/${dist.accumulo}</url.accumulo>
<url.hadoop>https://dlcdn.apache.org/hadoop/common/hadoop-3.3.6/${dist.hadoop}</url.hadoop>
<url.maven>https://dlcdn.apache.org/maven/maven-3/3.8.8/binaries/${dist.maven}</url.maven>
<url.wildfly>https://download.jboss.org/wildfly/17.0.1.Final/${dist.wildfly}</url.wildfly>
Expand Down
2 changes: 1 addition & 1 deletion core/cached-results/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.nsa.datawave.core</groupId>
<artifactId>datawave-core-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
</parent>
<artifactId>datawave-core-cached-results</artifactId>
<name>${project.artifactId}</name>
Expand Down
2 changes: 1 addition & 1 deletion core/common-util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.nsa.datawave.core</groupId>
<artifactId>datawave-core-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
</parent>
<artifactId>datawave-core-common-util</artifactId>
<name>${project.artifactId}</name>
Expand Down
2 changes: 1 addition & 1 deletion core/common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.nsa.datawave.core</groupId>
<artifactId>datawave-core-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
</parent>
<artifactId>datawave-core-common</artifactId>
<name>${project.artifactId}</name>
Expand Down
2 changes: 1 addition & 1 deletion core/connection-pool/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.nsa.datawave.core</groupId>
<artifactId>datawave-core-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
</parent>
<artifactId>datawave-core-connection-pool</artifactId>
<name>${project.artifactId}</name>
Expand Down
2 changes: 1 addition & 1 deletion core/map-reduce/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.nsa.datawave.core</groupId>
<artifactId>datawave-core-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
</parent>
<artifactId>datawave-core-map-reduce</artifactId>
<name>${project.artifactId}</name>
Expand Down
2 changes: 1 addition & 1 deletion core/modification/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.nsa.datawave.core</groupId>
<artifactId>datawave-core-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
</parent>
<artifactId>datawave-core-modification</artifactId>
<name>${project.artifactId}</name>
Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.nsa.datawave</groupId>
<artifactId>datawave-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
</parent>
<groupId>gov.nsa.datawave.core</groupId>
<artifactId>datawave-core-parent</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion core/query/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.nsa.datawave.core</groupId>
<artifactId>datawave-core-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
</parent>
<artifactId>datawave-core-query</artifactId>
<name>${project.artifactId}</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ public class GenericQueryConfiguration implements Serializable {
// use a value like 'env:PASS' to pull from the environment
private String accumuloPassword = "";

private String connPoolName;

// Whether or not this query emits every result or performs some kind of result reduction
protected boolean reduceResults = false;

Expand Down Expand Up @@ -100,6 +102,7 @@ public GenericQueryConfiguration(GenericQueryConfiguration genericConfig) {
this.setBaseIteratorPriority(genericConfig.getBaseIteratorPriority());
this.setBypassAccumulo(genericConfig.getBypassAccumulo());
this.setAccumuloPassword(genericConfig.getAccumuloPassword());
this.setConnPoolName(genericConfig.getConnPoolName());
this.setAuthorizations(genericConfig.getAuthorizations());
this.setBeginDate(genericConfig.getBeginDate());
this.setClient(genericConfig.getClient());
Expand Down Expand Up @@ -278,6 +281,14 @@ public void setAccumuloPassword(String password) {
this.accumuloPassword = EnvProvider.resolve(password);
}

public String getConnPoolName() {
return connPoolName;
}

public void setConnPoolName(String connPoolName) {
this.connPoolName = connPoolName;
}

public Map<String,ScannerBase.ConsistencyLevel> getTableConsistencyLevels() {
return tableConsistencyLevels;
}
Expand Down Expand Up @@ -336,12 +347,13 @@ && getBypassAccumulo() == that.getBypassAccumulo() && Objects.equals(getAuthoriz
&& Objects.equals(getBeginDate(), that.getBeginDate()) && Objects.equals(getEndDate(), that.getEndDate())
&& Objects.equals(getMaxWork(), that.getMaxWork()) && Objects.equals(getTableName(), that.getTableName())
&& Objects.equals(getQueries(), that.getQueries()) && Objects.equals(getAccumuloPassword(), that.getAccumuloPassword())
&& Objects.equals(isReduceResults(), that.isReduceResults());
&& Objects.equals(getConnPoolName(), that.getConnPoolName()) && Objects.equals(isReduceResults(), that.isReduceResults());
}

@Override
public int hashCode() {
return Objects.hash(isCheckpointable(), getAuthorizations(), getQuery(), getQueryString(), getBeginDate(), getEndDate(), getMaxWork(),
getBaseIteratorPriority(), getTableName(), getQueries(), getBypassAccumulo(), getAccumuloPassword(), isReduceResults());
getBaseIteratorPriority(), getTableName(), getQueries(), getBypassAccumulo(), getConnPoolName(), getAccumuloPassword(),
isReduceResults());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public abstract class BaseQueryLogic<T> implements QueryLogic<T> {
private int maxPageSize = 0;
private long pageByteTrigger = 0;
private boolean collectQueryMetrics = true;
private String _connPoolName;
private Set<String> authorizedDNs;

protected ProxiedUserDetails currentUser;
Expand Down Expand Up @@ -79,7 +78,6 @@ public BaseQueryLogic(BaseQueryLogic<T> other) {
setPageByteTrigger(other.getPageByteTrigger());
setCollectQueryMetrics(other.getCollectQueryMetrics());
this.authorizedDNs = other.authorizedDNs;
setConnPoolName(other.getConnPoolName());
setRequiredRoles(other.getRequiredRoles());
setSelectorExtractor(other.getSelectorExtractor());
setCurrentUser(other.getCurrentUser());
Expand Down Expand Up @@ -330,13 +328,13 @@ public void setCollectQueryMetrics(boolean collectQueryMetrics) {
/** {@inheritDoc} */
@Override
public String getConnPoolName() {
return _connPoolName;
return getConfig().getConnPoolName();
}

/** {@inheritDoc} */
@Override
public void setConnPoolName(final String connPoolName) {
_connPoolName = connPoolName;
getConfig().setConnPoolName(connPoolName);
}

/** {@inheritDoc} */
Expand Down
2 changes: 1 addition & 1 deletion core/utils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.nsa.datawave.core</groupId>
<artifactId>datawave-core-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
</parent>
<groupId>gov.nsa.datawave.core</groupId>
<artifactId>datawave-utils-parent</artifactId>
Expand Down
6 changes: 5 additions & 1 deletion docker/config/application-query.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ datawave:
reverseIndexTableName: ${warehouse.tables.reverseIndex.name}
maxResults: -1
queryThreads: ${warehouse.defaults.queryThreads}
maxConcurrentTasks: ${warehouse.defaults.queryThreads}
indexLookupThreads: ${warehouse.defaults.indexLookupThreads}
dateIndexThreads: ${warehouse.defaults.dateIndexThreads}
fullTableScanEnabled: ${warehouse.defaults.fullTableScanEnabled}
Expand Down Expand Up @@ -218,7 +219,6 @@ datawave:
statsdHost: ${warehouse.statsd.host}
statsdPort: ${warehouse.statsd.port}
evaluationOnlyFields: ""
maxConcurrentTasks: 10
requiredRoles:
- "AuthorizedUser"

Expand Down Expand Up @@ -305,6 +305,7 @@ datawave:
maxResults: 25000
maxWork: -1
queryThreads: 16
maxConcurrentTasks: 16
auditType: "NONE"
logicDescription: "Retrieve graph edges matching the search term(s)"
querySyntaxParsers:
Expand Down Expand Up @@ -334,6 +335,7 @@ datawave:
maxResults: -1
maxWork: -1
queryThreads: ${warehouse.defaults.queryThreads}
maxConcurrentTasks: ${warehouse.defaults.queryThreads}
modelTableName: ${warehouse.tables.model.name}
modelName: "DATAWAVE"
maxUniqueValues: 20000
Expand All @@ -349,6 +351,7 @@ datawave:
maxResults: -1
maxWork: -1
queryThreads: ${warehouse.defaults.queryThreads}
maxConcurrentTasks: ${warehouse.defaults.queryThreads}
modelTableName: ${warehouse.errorTables.model.name}
modelName: "DATAWAVE"
maxUniqueValues: 20000
Expand Down Expand Up @@ -410,6 +413,7 @@ datawave:
indexTableName: ${warehouse.tables.index.name}
reverseIndexTableName: ${warehouse.tables.reverseIndex.name}
queryThreads: ${warehouse.defaults.indexLookupThreads}
maxConcurrentTasks: ${warehouse.defaults.indexLookupThreads}
fullTableScanEnabled: ${warehouse.defaults.fullTableScanEnabled}
minimumSelectivity: .2
includeDataTypeAsField: false
Expand Down
2 changes: 1 addition & 1 deletion docs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.nsa.datawave</groupId>
<artifactId>datawave-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
</parent>
<artifactId>datawave-docs</artifactId>
<!-- Declare all datawave modules as dependencies in order to have the javadoc include all the datawave source. -->
Expand Down
2 changes: 1 addition & 1 deletion microservices/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.nsa.datawave</groupId>
<artifactId>datawave-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
</parent>
<groupId>gov.nsa.datawave.microservice</groupId>
<artifactId>datawave-microservice-build-parent</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion microservices/services/mapreduce-query
2 changes: 1 addition & 1 deletion microservices/services/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.nsa.datawave.microservice</groupId>
<artifactId>datawave-microservice-build-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
</parent>
<artifactId>datawave-microservice-service-build-parent</artifactId>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion microservices/starters/cached-results
Submodule cached-results updated 1 files
+3 −3 pom.xml
2 changes: 1 addition & 1 deletion microservices/starters/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.nsa.datawave.microservice</groupId>
<artifactId>datawave-microservice-build-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
</parent>
<artifactId>datawave-microservice-starter-build-parent</artifactId>
<packaging>pom</packaging>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>gov.nsa.datawave</groupId>
<artifactId>datawave-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>DataWave</name>
<description>DataWave is a Java-based ingest and query framework that leverages Apache Accumulo to provide fast, secure access to your data.</description>
Expand Down Expand Up @@ -56,7 +56,7 @@
<version.commons-lang>2.6</version.commons-lang>
<version.commons-logging>1.2</version.commons-logging>
<version.commons-pool>1.6</version.commons-pool>
<version.commons-text>1.8</version.commons-text>
<version.commons-text>1.11.0</version.commons-text>
<version.curator>5.2.0</version.curator>
<version.curator.test>5.2.0</version.curator.test>
<version.deltaspike>1.9.0</version.deltaspike>
Expand Down
2 changes: 1 addition & 1 deletion warehouse/accumulo-extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.nsa.datawave</groupId>
<artifactId>datawave-warehouse-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
</parent>
<artifactId>datawave-accumulo-extensions</artifactId>
<name>${project.artifactId}</name>
Expand Down
2 changes: 1 addition & 1 deletion warehouse/age-off-utils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.nsa.datawave</groupId>
<artifactId>datawave-warehouse-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
</parent>
<artifactId>datawave-age-off-utils</artifactId>
<name>${project.artifactId}</name>
Expand Down
2 changes: 1 addition & 1 deletion warehouse/age-off/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.nsa.datawave</groupId>
<artifactId>datawave-warehouse-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
</parent>
<artifactId>datawave-age-off</artifactId>
<name>${project.artifactId}</name>
Expand Down
2 changes: 1 addition & 1 deletion warehouse/assemble/datawave/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.nsa.datawave</groupId>
<artifactId>assemble-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
</parent>
<artifactId>assemble-datawave</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion warehouse/assemble/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>gov.nsa.datawave</groupId>
<artifactId>datawave-warehouse-parent</artifactId>
<version>7.3.0-SNAPSHOT</version>
<version>7.4.0-SNAPSHOT</version>
</parent>
<artifactId>assemble-parent</artifactId>
<packaging>pom</packaging>
Expand Down
Loading

0 comments on commit 44d7443

Please sign in to comment.