Skip to content

Commit

Permalink
Merge branch 'apache:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
tieredblocks authored Jun 27, 2022
2 parents 4c66adc + 81c363e commit 3f3479d
Show file tree
Hide file tree
Showing 2,249 changed files with 124,271 additions and 115,836 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/cluster-it.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: New Cluster IT

on:
push:
branches:
- master
paths-ignore:
- 'docs/**'
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
# allow manually run the action:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3

jobs:
ClusterIT:
strategy:
fail-fast: false
max-parallel: 20
matrix:
java: [ 8, 11, 17 ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-
- name: Check Apache Rat
run: mvn -B apache-rat:check -P site -P code-coverage
- name: Adjust network dynamic TCP ports range
if: ${{ runner.os == 'Windows' }}
shell: pwsh
run: |
netsh int ipv4 set dynamicport tcp start=32768 num=32768
netsh int ipv4 set dynamicport udp start=32768 num=32768
netsh int ipv6 set dynamicport tcp start=32768 num=32768
netsh int ipv6 set dynamicport udp start=32768 num=32768
- name: Adjust Linux kernel somaxconn
if: ${{ runner.os == 'Linux' }}
shell: bash
run: sudo sysctl -w net.core.somaxconn=65535
- name: Adjust Mac kernel somaxconn
if: ${{ runner.os == 'macOS' }}
shell: bash
run: sudo sysctl -w kern.ipc.somaxconn=65535
- name: IT/UT Test
shell: bash
# we do not compile client-cpp for saving time, it is tested in client.yml
# we can skip influxdb-protocol because it has been tested separately in influxdb-protocol.yml
run: |
mvn clean verify \
-DskipUTs \
-pl integration-test \
-am -PClusterIT
- name: Upload Artifact
if: failure()
uses: actions/upload-artifact@v3
with:
name: cluster-log-java${{ matrix.java }}-${{ runner.os }}
path: integration-test/target/cluster-logs
retention-days: 1
52 changes: 0 additions & 52 deletions .github/workflows/cluster.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/sonar-coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ jobs:
-Dsonar.projectKey=apache_incubator-iotdb \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.login=${{ secrets.SONARCLOUD_TOKEN }} \
-DskipTests -pl '!distribution' -P '!testcontainer' -am
-DskipTests -pl '!distribution,!integration-test' -P '!testcontainer' -am
81 changes: 81 additions & 0 deletions .github/workflows/standalone-it-for-mpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: New Standalone IT

on:
push:
branches:
- master
paths-ignore:
- 'docs/**'
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
# allow manually run the action:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3

jobs:
StandaloneMppIT:
strategy:
fail-fast: false
max-parallel: 20
matrix:
java: [ 8, 11, 17 ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-
- name: Check Apache Rat
run: mvn -B apache-rat:check -P site -P code-coverage
- name: Adjust network dynamic TCP ports range
if: ${{ runner.os == 'Windows' }}
shell: pwsh
run: |
netsh int ipv4 set dynamicport tcp start=32768 num=32768
netsh int ipv4 set dynamicport udp start=32768 num=32768
netsh int ipv6 set dynamicport tcp start=32768 num=32768
netsh int ipv6 set dynamicport udp start=32768 num=32768
- name: Adjust Linux kernel somaxconn
if: ${{ runner.os == 'Linux' }}
shell: bash
run: sudo sysctl -w net.core.somaxconn=65535
- name: Adjust Mac kernel somaxconn
if: ${{ runner.os == 'macOS' }}
shell: bash
run: sudo sysctl -w kern.ipc.somaxconn=65535
- name: IT/UT Test
shell: bash
# we do not compile client-cpp for saving time, it is tested in client.yml
# we can skip influxdb-protocol because it has been tested separately in influxdb-protocol.yml
run: |
mvn clean verify \
-DskipUTs \
-DintegrationTest.forkCount=2 \
-pl integration-test \
-am -PLocalStandaloneOnMppIT
- name: Upload Artifact
if: failure()
uses: actions/upload-artifact@v3
with:
name: standalone-log-java${{ matrix.java }}-${{ runner.os }}
path: integration-test/target/cluster-logs
retention-days: 1

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ tsfile-jdbc/src/main/resources/output/queryRes.csv
*.gz
*.tar.gz
*.tar
*.tokens
#src/test/resources/logback.xml

### CSV ###
Expand Down
32 changes: 31 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,40 @@ License: http://www.apache.org/licenses/LICENSE-2.0

--------------------------------------------------------------------------------

The following files include code modified from Apache HBase project.

./confignode/src/main/java/org/apache/iotdb/procedure/Procedure.java
./confignode/src/main/java/org/apache/iotdb/procedure/ProcedureExecutor.java
./confignode/src/main/java/org/apache/iotdb/procedure/StateMachineProcedure.java
./confignode/src/main/java/org/apache/iotdb/procedure/TimeoutExecutorThread.java
./confignode/src/main/java/org/apache/iotdb/procedure/StoppableThread.java

Copyright: 2016-2018 Michael Burman and/or other contributors
Project page: https://github.com/burmanm/gorilla-tsc
License: http://www.apache.org/licenses/LICENSE-2.0

--------------------------------------------------------------------------------

The following files include code modified from Eclipse Collections project.

./tsfile/src/main/java/org/apache/iotdb/tsfile/utils/ByteArrayList.java

Copyright: 2021 Goldman Sachs
Project page: https://www.eclipse.org/collections
License: https://github.com/eclipse/eclipse-collections/blob/master/LICENSE-EDL-1.0.txt
License: https://github.com/eclipse/eclipse-collections/blob/master/LICENSE-EDL-1.0.txt

--------------------------------------------------------------------------------

The following files include code modified from Micrometer project.

./metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/jvm/JvmClassLoaderMetrics
./metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/jvm/JvmCompileMetrics
./metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/jvm/JvmGcMetrics
./metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/jvm/JvmMemoryMetrics
./metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/jvm/JvmThreadMetrics
./metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/logback/LogbackMetrics
./metrics/interface/src/main/java/org/apache/iotdb/metrics/utils/JvmUtils

Copyright: 2017 VMware
Project page: https://github.com/micrometer-metrics/micrometer
License: https://github.com/micrometer-metrics/micrometer/blob/main/LICENSE
18 changes: 2 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,26 +175,12 @@ and "`antlr/target/generated-sources/antlr4`" need to be added to sources roots
**In IDEA, you just need to right click on the root project name and choose "`Maven->Reload Project`" after
you run `mvn package` successfully.**
#### Spotless problem
**NOTE**: IF you are using JDK16+, you have to create a file called `jvm.config`,
put it under `.mvn/`, before you use `spotless:apply`. The file contains the following content:
```
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
```
This is [an issue of Spotless](https://github.com/diffplug/spotless/issues/834),
Once the issue is fixed, we can remove this file.
### Configurations
configuration files are under "conf" folder
* environment config module (`iotdb-env.bat`, `iotdb-env.sh`),
* system config module (`iotdb-engine.properties`)
* environment config module (`datanode-env.bat`, `datanode-env.sh`),
* system config module (`iotdb-datanode.properties`)
* log config module (`logback.xml`).
For more information, please see [Config Manual](https://iotdb.apache.org/UserGuide/Master/Reference/Config-Manual.html).
Expand Down
17 changes: 2 additions & 15 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,24 +161,11 @@ git checkout vx.x.x
**IDEA的操作方法:在上述maven命令编译好后,右键项目名称,选择"`Maven->Reload project`",即可。**
#### Spotless问题(JDK16+)
**NOTE**: 如果你在使用 JDK16+, 并且要做`spotless:apply`或者`spotless:check`,
那么需要在`.mvn/`文件夹下创建一个文件 `jvm.config`, 内容如下:
```
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
```
这是spotless依赖的googlecodeformat的 [问题](https://github.com/diffplug/spotless/issues/834),
近期可能会被官方解决。
### 配置
配置文件在"conf"文件夹下
* 环境配置模块(`iotdb-env.bat`, `iotdb-env.sh`),
* 系统配置模块(`iotdb-engine.properties`)
* 环境配置模块(`datanode-env.bat`, `datanode-env.sh`),
* 系统配置模块(`iotdb-datanode.properties`)
* 日志配置模块(`logback.xml`)。
有关详细信息,请参见[配置参数](https://iotdb.apache.org/zh/UserGuide/Master/Reference/Config-Manual.html)。
Expand Down
1 change: 1 addition & 0 deletions antlr/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<configuration>
<listener>false</listener>
<visitor>true</visitor>
<libDirectory>src/main/antlr4/org/apache/iotdb/db/qp/sql</libDirectory>
</configuration>
<goals>
<goal>antlr4</goal>
Expand Down
Loading

0 comments on commit 3f3479d

Please sign in to comment.