Skip to content

Commit 97db869

Browse files
authored
Merge branch 'apache:master' into master
2 parents 8cfd1dd + a974754 commit 97db869

File tree

2,168 files changed

+132964
-36853
lines changed

Some content is hidden

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

2,168 files changed

+132964
-36853
lines changed

.asf.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ github:
3131
rebase: false
3232
collaborators:
3333
- sullis
34-
- yashmayya
3534
- shounakmk219
3635
- itschrispeck
37-
- zhtaoxiang
38-
- soumitra-st
39-
- suddendust
4036
- vrajat
37+
- jackluo923
38+
- bziobrowski
4139
- deepthi912
42-
- timveil
40+
- soumitra-st
41+
- noob-se7en
42+
- rajagopr

.github/workflows/pinot_tests.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
cache: 'maven'
5959
- name: Linter Test
6060
env:
61-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
61+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
6262
MAVEN_OPTS: >
6363
-Xmx2G -DskipShade -DfailIfNoTests=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=25
6464
-Dmaven.wagon.http.retryHandler.count=30 -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
@@ -112,7 +112,7 @@ jobs:
112112
env:
113113
RUN_INTEGRATION_TESTS: false
114114
RUN_TEST_SET: ${{ matrix.testset }}
115-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
115+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
116116
MAVEN_OPTS: >
117117
-Xmx2G -DskipShade -DfailIfNoTests=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=25
118118
-Dmaven.wagon.http.retryHandler.count=30 -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
@@ -134,7 +134,7 @@ jobs:
134134
RUN_INTEGRATION_TESTS: false
135135
RUN_TEST_SET: ${{ matrix.testset }}
136136
PINOT_OFFHEAP_SKIP_BYTEBUFFER: ${{ matrix.skip_bytebuffer }}
137-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
137+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
138138
MAVEN_OPTS: >
139139
-Xmx2G -DskipShade -DfailIfNoTests=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=25
140140
-Dmaven.wagon.http.retryHandler.count=30 -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
@@ -152,12 +152,13 @@ jobs:
152152
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
153153
run: .github/workflows/scripts/pr-tests/.pinot_tests_unit.sh
154154
- name: Upload coverage to Codecov
155-
uses: codecov/codecov-action@v4
155+
uses: codecov/codecov-action@v5
156156
continue-on-error: true
157157
timeout-minutes: 5
158158
with:
159159
flags: unittests,unittests${{ matrix.testset }},${{matrix.distribution}},java-${{matrix.java}},skip-bytebuffers-${{matrix.skip_bytebuffer}}
160160
name: codecov-unit-tests
161+
token: 3cb787e5-09a8-4b23-8856-06410b11455f
161162
fail_ci_if_error: false
162163
verbose: true
163164

@@ -202,7 +203,7 @@ jobs:
202203
- name: Build Project
203204
env:
204205
RUN_INTEGRATION_TESTS: true
205-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
206+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
206207
MAVEN_OPTS: >
207208
-Xmx2G -DskipShade -DfailIfNoTests=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=25
208209
-Dmaven.wagon.http.retryHandler.count=30 -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
@@ -219,7 +220,7 @@ jobs:
219220
RUN_INTEGRATION_TESTS: true
220221
RUN_TEST_SET: ${{ matrix.testset }}
221222
PINOT_OFFHEAP_SKIP_BYTEBUFFER: ${{ matrix.skip_bytebuffer }}
222-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
223+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
223224
MAVEN_OPTS: >
224225
-Xmx2G -DskipShade -DfailIfNoTests=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=25
225226
-Dmaven.wagon.http.retryHandler.count=30 -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
@@ -232,20 +233,21 @@ jobs:
232233
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
233234
run: .github/workflows/scripts/pr-tests/.pinot_tests_integration.sh
234235
- name: Upload coverage to Codecov
235-
uses: codecov/codecov-action@v4
236+
uses: codecov/codecov-action@v5
236237
continue-on-error: true
237238
timeout-minutes: 5
238239
with:
239240
flags: integration,integration${{ matrix.testset }},${{matrix.distribution}},java-${{matrix.java}},skip-bytebuffers-${{matrix.skip_bytebuffer}}
240241
name: codecov-integration-tests
242+
token: 3cb787e5-09a8-4b23-8856-06410b11455f
241243
fail_ci_if_error: false
242244
verbose: true
243245
- name: Custom Integration Test
244246
if : ${{ matrix.testset == 1 }}
245247
env:
246248
RUN_INTEGRATION_TESTS: true
247249
RUN_TEST_SET: ${{ matrix.testset }}
248-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
250+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
249251
MAVEN_OPTS: >
250252
-Xmx2G -DskipShade -DfailIfNoTests=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=25
251253
-Dmaven.wagon.http.retryHandler.count=30 -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
@@ -259,12 +261,13 @@ jobs:
259261
run: .github/workflows/scripts/pr-tests/.pinot_tests_custom_integration.sh
260262
- name: Upload coverage to Codecov
261263
if : ${{ matrix.testset == 1 }}
262-
uses: codecov/codecov-action@v4
264+
uses: codecov/codecov-action@v5
263265
continue-on-error: true
264266
timeout-minutes: 5
265267
with:
266268
flags: integration,custom-integration${{ matrix.testset }},${{matrix.distribution}},java-${{matrix.java}}
267269
name: codecov-custom-integration-tests
270+
token: 3cb787e5-09a8-4b23-8856-06410b11455f
268271
fail_ci_if_error: false
269272
verbose: true
270273

@@ -277,7 +280,7 @@ jobs:
277280
matrix:
278281
test_suite: [ "compatibility-verifier/sample-test-suite" ]
279282
old_commit: [
280-
"release-1.0.0", "release-1.2.0", "master"
283+
"release-1.2.0", "release-1.3.0", "master"
281284
]
282285
name: Pinot Compatibility Regression Testing against ${{ matrix.old_commit }} on ${{ matrix.test_suite }}
283286
steps:
@@ -333,7 +336,7 @@ jobs:
333336
matrix:
334337
test_suite: [ "compatibility-verifier/multi-stage-query-engine-test-suite" ]
335338
old_commit: [
336-
"release-1.2.0", "master"
339+
"release-1.2.0", "release-1.3.0", "master"
337340
]
338341
name: Pinot Multi-Stage Query Engine Compatibility Regression Testing against ${{ matrix.old_commit }} on ${{ matrix.test_suite }}
339342
steps:
@@ -407,7 +410,7 @@ jobs:
407410
- uses: actions/cache@v4
408411
env:
409412
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 10
410-
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
413+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
411414
with:
412415
path: ~/.m2/repository
413416
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

.github/workflows/scripts/.pinot_quickstart.sh

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,29 @@
1818
# under the License.
1919
#
2020

21-
2221
cleanup () {
23-
# Terminate the process and wait for the clean up to be done
22+
# Terminate the process gracefully and wait up to 1 minute for it to exit
2423
kill "$1"
25-
while true;
26-
do
27-
kill -0 "$1" && sleep 1 || break
24+
timeout=60 # Max wait time in seconds
25+
26+
while ((timeout > 0)); do
27+
if kill -0 "$1" 2>/dev/null; then
28+
sleep 1 # Process still running, wait for 1 second
29+
((timeout--))
30+
else
31+
break # Process exited successfully
32+
fi
2833
done
2934

35+
# If the process is still running, kill it forcefully
36+
if kill -0 "$1" 2>/dev/null; then
37+
echo "Process $1 did not terminate within 60 seconds. Killing it forcefully."
38+
kill -9 "$1"
39+
fi
40+
3041
# Delete ZK directory
3142
rm -rf '/tmp/PinotAdmin/zkData'
43+
rm -rf '/tmp/pinot/data'
3244
}
3345

3446
# Print environment variables

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ cscope.*
33
.project
44
.svn
55
.java-version
6+
.sdkmanrc
67
.externalToolBuilders/
78
maven-eclipse.xml
89
target/
@@ -56,3 +57,4 @@ kubernetes/helm/**/Chart.lock
5657

5758
#Develocity
5859
.mvn/.gradle-enterprise/
60+
.mvn/.develocity/

.mvn/gradle-enterprise.xml renamed to .mvn/develocity.xml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,19 @@
1919
under the License.
2020
2121
-->
22-
<gradleEnterprise xmlns="https://www.gradle.com/gradle-enterprise-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.gradle.com/gradle-enterprise-maven https://www.gradle.com/schema/gradle-enterprise-maven.xsd">
22+
<develocity xmlns="https://www.gradle.com/develocity-maven" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.gradle.com/gradle-enterprise-maven https://www.gradle.com/schema/develocity-maven.xsd">
23+
<projectId>pinot</projectId>
2324
<server>
24-
<url>https://ge.apache.org</url>
25+
<url>https://develocity.apache.org</url>
2526
<allowUntrusted>false</allowUntrusted>
2627
</server>
2728
<buildScan>
28-
<capture>
29-
<goalInputFiles>true</goalInputFiles>
30-
<buildLogging>true</buildLogging>
31-
<testLogging>true</testLogging>
32-
</capture>
3329
<backgroundBuildScanUpload>#{isFalse(env['GITHUB_ACTIONS'])}</backgroundBuildScanUpload>
34-
<publish>ALWAYS</publish>
35-
<publishIfAuthenticated>true</publishIfAuthenticated>
30+
<publishing>
31+
<onlyIf>
32+
<![CDATA[authenticated]]>
33+
</onlyIf>
34+
</publishing>
3635
<obfuscation>
3736
<ipAddresses>#{{'0.0.0.0'}}</ipAddresses>
3837
</obfuscation>
@@ -45,4 +44,4 @@
4544
<enabled>false</enabled>
4645
</remote>
4746
</buildCache>
48-
</gradleEnterprise>
47+
</develocity>

.mvn/extensions.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.0.0 http://maven.apache.org/xsd/core-extensions-1.0.0.xsd">
2323
<extension>
2424
<groupId>com.gradle</groupId>
25-
<artifactId>gradle-enterprise-maven-extension</artifactId>
26-
<version>1.20.1</version>
25+
<artifactId>develocity-maven-extension</artifactId>
26+
<version>2.0</version>
2727
</extension>
2828
<extension>
2929
<groupId>com.gradle</groupId>
Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#
21
# Licensed to the Apache Software Foundation (ASF) under one
32
# or more contributor license agreements. See the NOTICE file
43
# distributed with this work for additional information
@@ -15,15 +14,6 @@
1514
# KIND, either express or implied. See the License for the
1615
# specific language governing permissions and limitations
1716
# under the License.
18-
#
19-
20-
apiVersion: v1
21-
kind: Namespace
22-
metadata:
23-
name: {{ include "pinot.namespace" . }}
24-
labels:
25-
{{- include "pinot.labels" . | nindent 4 }}
26-
{{- with .Values.namespaceAnnotations }}
27-
annotations:
28-
{{- toYaml . | nindent 4 }}
29-
{{- end }}
17+
wrapperVersion=3.3.2
18+
distributionType=only-script
19+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Identify a list of tests for the changes you have made. Depending on the scope o
139139
All source code files should have license headers. To automatically add the header for any new file you plan to checkin, run in `pinot` top-level folder:
140140

141141
```text
142-
mvn license:format
142+
./mvnw license:format
143143
```
144144

145145
Note
@@ -165,12 +165,12 @@ If attention to the licensing terms in not paid early on, they will be caught mu
165165
Run the following command to verify the code-style before posting a PR
166166

167167
```text
168-
mvn checkstyle:check
168+
./mvnw checkstyle:check
169169
```
170170

171171
* **Run tests**
172172

173-
Before you create a review request for the changes, make sure you have run the corresponding unit tests for your changes. You can run individual tests via the IDE or via maven command-line. Finally run all tests locally by running `mvn clean install -Pbin-dist`.
173+
Before you create a review request for the changes, make sure you have run the corresponding unit tests for your changes. You can run individual tests via the IDE or via maven command-line. Finally run all tests locally by running `./mvnw clean install -Pbin-dist`.
174174

175175
For changes that are related to performance issues or race conditions, it is hard to write reliable tests, so we recommend running manual stress tests to validate the changes. You `MUST` note the manual tests done in the PR description.
176176

0 commit comments

Comments
 (0)