Skip to content

Commit b44b12c

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents d3ca178 + a409dab commit b44b12c

File tree

872 files changed

+30724
-9490
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

872 files changed

+30724
-9490
lines changed

.github/workflows/pipe-it-2cluster.yml

Lines changed: 68 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
paths-ignore:
1010
- 'docs/**'
1111
- 'site/**'
12+
- 'iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/**' #queryengine
1213
pull_request:
1314
branches:
1415
- master
@@ -17,6 +18,7 @@ on:
1718
paths-ignore:
1819
- 'docs/**'
1920
- 'site/**'
21+
- 'iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/**' #queryengine
2022
# allow manually run the action:
2123
workflow_dispatch:
2224

@@ -37,7 +39,7 @@ jobs:
3739
matrix:
3840
java: [17]
3941
# StrongConsistencyClusterMode is ignored now because RatisConsensus has not been supported yet.
40-
cluster: [LightWeightStandaloneMode, ScalableSingleNodeMode, HighPerformanceMode]
42+
cluster: [LightWeightStandaloneMode, ScalableSingleNodeMode, HighPerformanceMode, PipeConsensusBatchMode, PipeConsensusStreamMode]
4143
os: [ ubuntu-latest ]
4244
runs-on: ${{ matrix.os }}
4345
steps:
@@ -47,6 +49,9 @@ jobs:
4749
with:
4850
distribution: liberica
4951
java-version: ${{ matrix.java }}
52+
- name: Sleep for a random duration between 0 and 10000 milliseconds
53+
run: |
54+
sleep $(( $(( RANDOM % 10000 + 1 )) / 1000))
5055
- name: IT Test
5156
shell: bash
5257
# we do not compile client-cpp for saving time, it is tested in client.yml
@@ -74,7 +79,7 @@ jobs:
7479
matrix:
7580
java: [17]
7681
# StrongConsistencyClusterMode is ignored now because RatisConsensus has not been supported yet.
77-
cluster1: [LightWeightStandaloneMode, ScalableSingleNodeMode, HighPerformanceMode]
82+
cluster1: [LightWeightStandaloneMode, ScalableSingleNodeMode, HighPerformanceMode, PipeConsensusBatchMode, PipeConsensusStreamMode]
7883
cluster2: [LightWeightStandaloneMode, ScalableSingleNodeMode, HighPerformanceMode]
7984
os: [ ubuntu-latest ]
8085
exclude:
@@ -90,6 +95,14 @@ jobs:
9095
cluster2: LightWeightStandaloneMode
9196
- cluster1: HighPerformanceMode
9297
cluster2: HighPerformanceMode
98+
- cluster1: PipeConsensusBatchMode
99+
cluster2: LightWeightStandaloneMode
100+
- cluster1: PipeConsensusBatchMode
101+
cluster2: HighPerformanceMode
102+
- cluster1: PipeConsensusStreamMode
103+
cluster2: LightWeightStandaloneMode
104+
- cluster1: PipeConsensusStreamMode
105+
cluster2: HighPerformanceMode
93106
runs-on: ${{ matrix.os }}
94107
steps:
95108
- uses: actions/checkout@v4
@@ -98,6 +111,9 @@ jobs:
98111
with:
99112
distribution: liberica
100113
java-version: ${{ matrix.java }}
114+
- name: Sleep for a random duration between 0 and 10000 milliseconds
115+
run: |
116+
sleep $(( $(( RANDOM % 10000 + 1 )) / 1000))
101117
- name: IT Test
102118
shell: bash
103119
# we do not compile client-cpp for saving time, it is tested in client.yml
@@ -125,7 +141,7 @@ jobs:
125141
matrix:
126142
java: [ 17 ]
127143
# StrongConsistencyClusterMode is ignored now because RatisConsensus has not been supported yet.
128-
cluster1: [ LightWeightStandaloneMode, ScalableSingleNodeMode, HighPerformanceMode ]
144+
cluster1: [ ScalableSingleNodeMode ]
129145
cluster2: [ ScalableSingleNodeMode ]
130146
os: [ ubuntu-latest ]
131147
runs-on: ${{ matrix.os }}
@@ -136,6 +152,9 @@ jobs:
136152
with:
137153
distribution: liberica
138154
java-version: ${{ matrix.java }}
155+
- name: Sleep for a random duration between 0 and 10000 milliseconds
156+
run: |
157+
sleep $(( $(( RANDOM % 10000 + 1 )) / 1000))
139158
- name: IT Test
140159
shell: bash
141160
# we do not compile client-cpp for saving time, it is tested in client.yml
@@ -174,6 +193,9 @@ jobs:
174193
with:
175194
distribution: liberica
176195
java-version: ${{ matrix.java }}
196+
- name: Sleep for a random duration between 0 and 10000 milliseconds
197+
run: |
198+
sleep $(( $(( RANDOM % 10000 + 1 )) / 1000))
177199
- name: IT Test
178200
shell: bash
179201
# we do not compile client-cpp for saving time, it is tested in client.yml
@@ -212,6 +234,9 @@ jobs:
212234
with:
213235
distribution: liberica
214236
java-version: ${{ matrix.java }}
237+
- name: Sleep for a random duration between 0 and 10000 milliseconds
238+
run: |
239+
sleep $(( $(( RANDOM % 10000 + 1 )) / 1000))
215240
- name: IT Test
216241
shell: bash
217242
# we do not compile client-cpp for saving time, it is tested in client.yml
@@ -232,3 +257,43 @@ jobs:
232257
name: cluster-log-subscription-regression-misc-java${{ matrix.java }}-${{ runner.os }}-${{ matrix.cluster1 }}-${{ matrix.cluster2 }}
233258
path: integration-test/target/cluster-logs
234259
retention-days: 30
260+
table-model:
261+
strategy:
262+
fail-fast: false
263+
max-parallel: 15
264+
matrix:
265+
java: [17]
266+
# StrongConsistencyClusterMode is ignored now because RatisConsensus has not been supported yet.
267+
cluster: [LightWeightStandaloneMode, ScalableSingleNodeMode, HighPerformanceMode]
268+
os: [ ubuntu-latest ]
269+
runs-on: ${{ matrix.os }}
270+
steps:
271+
- uses: actions/checkout@v4
272+
- name: Set up JDK ${{ matrix.java }}
273+
uses: actions/setup-java@v4
274+
with:
275+
distribution: liberica
276+
java-version: ${{ matrix.java }}
277+
- name: Sleep for a random duration between 0 and 10000 milliseconds
278+
run: |
279+
sleep $(( $(( RANDOM % 10000 + 1 )) / 1000))
280+
- name: IT Test
281+
shell: bash
282+
# we do not compile client-cpp for saving time, it is tested in client.yml
283+
# we can skip influxdb-protocol because it has been tested separately in influxdb-protocol.yml
284+
run: |
285+
mvn clean verify \
286+
-P with-integration-tests \
287+
-DskipUTs \
288+
-DintegrationTest.forkCount=1 -DConfigNodeMaxHeapSize=256 -DDataNodeMaxHeapSize=1024 -DDataNodeMaxDirectMemorySize=768 \
289+
-DClusterConfigurations=${{ matrix.cluster }},${{ matrix.cluster }} \
290+
-pl integration-test \
291+
-am -PMultiClusterIT2TableModel \
292+
-ntp
293+
- name: Upload Artifact
294+
if: failure()
295+
uses: actions/upload-artifact@v4
296+
with:
297+
name: cluster-log-table-model-java${{ matrix.java }}-${{ runner.os }}-${{ matrix.cluster }}-${{ matrix.cluster }}
298+
path: integration-test/target/cluster-logs
299+
retention-days: 30
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: vulnerability-check
2+
on:
3+
schedule:
4+
# Run at UTC 00:00 every week (CST 03:00 AM)
5+
- cron: '0 0 * * 3'
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
env:
11+
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
12+
MAVEN_ARGS: --batch-mode --no-transfer-progress
13+
DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
14+
15+
jobs:
16+
dependency-check:
17+
strategy:
18+
fail-fast: false
19+
max-parallel: 15
20+
matrix:
21+
java: [ 17 ]
22+
os: [ ubuntu-latest ]
23+
runs-on: ${{ matrix.os }}
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
- name: Set up JDK ${{ matrix.java }}
28+
uses: actions/setup-java@v4
29+
with:
30+
distribution: corretto
31+
java-version: ${{ matrix.java }}
32+
- name: Cache Maven packages
33+
uses: actions/cache@v4
34+
with:
35+
path: ~/.m2
36+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
37+
restore-keys: ${{ runner.os }}-m2-
38+
- name: Do the dependency-check:check
39+
shell: bash
40+
run: mvn org.owasp:dependency-check-maven:check
41+
- name: Do the dependency-check:aggregate
42+
shell: bash
43+
run: mvn org.owasp:dependency-check-maven:aggregate
44+
- name: Upload Artifact
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: vulnerability-check-result-${{ runner.os }}
48+
path: target/dependency-check-report.html
49+
retention-days: 15

LICENSE

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -204,23 +204,16 @@
204204
APACHE IOTDB SUBCOMPONENTS
205205
--------------------------------------------------------------------------------
206206

207-
The following class is copied from maven-wrapper (https://github.com/takari/maven-wrapper),
208-
which is under Apache License 2.0:
209-
210-
mvnw files from https://github.com/apache/maven-wrapper Apache 2.0
211-
212-
--------------------------------------------------------------------------------
213-
214207
The following files include code modified from Apache HBase project.
215208

216-
./iotdb-core/confignode/src/main/java/org/apache/iotdb/procedure/Procedure.java
217-
./iotdb-core/confignode/src/main/java/org/apache/iotdb/procedure/ProcedureExecutor.java
218-
./iotdb-core/confignode/src/main/java/org/apache/iotdb/procedure/StateMachineProcedure.java
219-
./iotdb-core/confignode/src/main/java/org/apache/iotdb/procedure/TimeoutExecutorThread.java
220-
./iotdb-core/confignode/src/main/java/org/apache/iotdb/procedure/StoppableThread.java
209+
./iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/Procedure.java
210+
./iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/ProcedureExecutor.java
211+
./iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/StateMachineProcedure.java
212+
./iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/TimeoutExecutorThread.java
213+
./iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/StoppableThread.java
221214

222215
Project page: https://github.com/apache/hbase
223-
License: http://www.apache.org/licenses/LICENSE-2.0
216+
License: https://github.com/apache/hbase/blob/master/LICENSE.txt
224217

225218
--------------------------------------------------------------------------------
226219

@@ -242,30 +235,32 @@ License: https://github.com/ggalmazor/lt_downsampling_java8/blob/main/LICENSE
242235

243236
The following files include code modified from Micrometer project.
244237

245-
./iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/jvm/JvmClassLoaderMetrics
246-
./iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/jvm/JvmCompileMetrics
247-
./iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/jvm/JvmGcMetrics
248-
./iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/jvm/JvmMemoryMetrics
249-
./iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/jvm/JvmThreadMetrics
250-
./iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/predefined/logback/LogbackMetrics
251-
./iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/utils/JvmUtils
238+
./iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/metricsets/jvm/JvmClassLoaderMetrics.java
239+
./iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/metricsets/jvm/JvmCompileMetrics.java
240+
./iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/metricsets/jvm/JvmGcMetrics.java
241+
./iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/metricsets/jvm/JvmMemoryMetrics.java
242+
./iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/metricsets/jvm/JvmThreadMetrics.java
243+
./iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/metricsets/JvmUtils.java
244+
./iotdb-core/metrics/interface/src/main/java/org/apache/iotdb/metrics/logback/logback/LogbackMetrics.java
252245

253246
Copyright: 2017 VMware
254247
Project page: https://github.com/micrometer-metrics/micrometer
255248
License: https://github.com/micrometer-metrics/micrometer/blob/main/LICENSE
256249

257250
--------------------------------------------------------------------------------
258251

259-
The following files include code modified from Trino project(https://github.com/trinodb/trino),
260-
which is under Apache License 2.0:
252+
The following files include code modified from Trino project.
261253

262254
./iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/QueryState.java
263255
./iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/StateMachine.java
264256
./iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/driver/Driver.java
265257
./iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/fragment/FragmentInstanceState.java
266258
./iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/fragment/FragmentInstanceStateMachine.java
267259
./iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/LocalExecutionPlanner.java
268-
./iotdb-core/tsfile/src/main/java/org/apache/iotdb/tsfile/read/common/block/*
260+
261+
Trino is open source software licensed under the Apache License 2.0 and supported by the Trino Software Foundation.
262+
Project page: https://github.com/trinodb/trino
263+
License: https://github.com/trinodb/trino/blob/master/LICENSE
269264

270265
--------------------------------------------------------------------------------
271266

@@ -274,4 +269,4 @@ The following files include code modified from Apache Kafka project.
274269
./iotdb-client/session/src/main/java/org/apache/iotdb/session/subscription/util/PollTimer.java
275270

276271
Project page: https://github.com/apache/kafka
277-
License: http://www.apache.org/licenses/LICENSE-2.0
272+
License: https://github.com/apache/kafka/blob/trunk/LICENSE

0 commit comments

Comments
 (0)