Skip to content

Commit 8d4d7cd

Browse files
Merge branch 'apache:master' into s390x-jenkins-fix
2 parents 348df8f + 0cb298e commit 8d4d7cd

12 files changed

Lines changed: 59 additions & 21 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ jobs:
4848
timeout-minutes: 360
4949
runs-on: ubuntu-latest
5050
steps:
51-
- uses: actions/checkout@v6
51+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
5252
- name: Set up JDK ${{ matrix.profile.jdk }}
53-
uses: actions/setup-java@v5
53+
uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287 # v5.3.0
5454
with:
5555
java-version: ${{ matrix.profile.jdk }}
5656
distribution: temurin
@@ -67,21 +67,21 @@ jobs:
6767
MAVEN_OPTS: -Djansi.force=true
6868
- name: Upload unit test results
6969
if: ${{ failure() }}
70-
uses: actions/upload-artifact@v7
70+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
7171
with:
7272
name: surefire-reports-${{ matrix.profile.name }}
7373
path: ./**/target/surefire-reports/
7474
if-no-files-found: ignore
7575
- name: Upload integration test results
7676
if: ${{ failure() }}
77-
uses: actions/upload-artifact@v7
77+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
7878
with:
7979
name: failsafe-reports-${{ matrix.profile.name }}
8080
path: ./**/target/failsafe-reports/
8181
if-no-files-found: ignore
8282
- name: Upload cppunit test logs
8383
if: ${{ failure() }}
84-
uses: actions/upload-artifact@v7
84+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
8585
with:
8686
name: cppunit-logs-${{ matrix.profile.name }}
8787
path: ./zookeeper-client/zookeeper-client-c/target/c/TEST-*.txt
@@ -93,7 +93,7 @@ jobs:
9393
if: ${{ github.event_name == 'pull_request' }}
9494
runs-on: ubuntu-latest
9595
steps:
96-
- uses: actions/checkout@v6
96+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
9797
- name: Check typos
9898
uses: crate-ci/typos@v1.22.4
9999
# To run the typo check locally, you can follow these steps:

.github/workflows/e2e.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
timeout-minutes: 360
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@v6
34+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
3535
- name: Set up JDK ${{ matrix.jdk }}
36-
uses: actions/setup-java@v5
36+
uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287 # v5.3.0
3737
with:
3838
java-version: ${{ matrix.jdk }}
3939
distribution: temurin
@@ -51,7 +51,7 @@ jobs:
5151
- name: Cache ZooKeeper ${{ matrix.zk }}
5252
id: dist-cache
5353
if: matrix.zk != 'nightly'
54-
uses: actions/cache@v4
54+
uses: actions/cache@2c8a9bd7457de244a408f35966fab2fb45fda9c8 # v6.0.0
5555
with:
5656
key: apache-zookeeper-${{ matrix.zk }}-bin.tar.gz
5757
path: apache-zookeeper-${{ matrix.zk }}-bin.tar.gz

.github/workflows/manual.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ jobs:
4343
timeout-minutes: 360
4444
runs-on: ubuntu-latest
4545
steps:
46-
- uses: actions/checkout@v6
46+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
4747
with:
4848
ref: ${{ github.event.inputs.buildRef }}
4949
- name: Set up JDK 17
50-
uses: actions/setup-java@v5
50+
uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287 # v5.3.0
5151
with:
5252
java-version: 17
5353
distribution: temurin
@@ -64,14 +64,14 @@ jobs:
6464
MAVEN_OPTS: -Djansi.force=true
6565
- name: Upload unit test results
6666
if: ${{ failure() }}
67-
uses: actions/upload-artifact@v7
67+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
6868
with:
6969
name: surefire-reports
7070
path: ./**/target/surefire-reports/
7171
if-no-files-found: ignore
7272
- name: Upload integration test results
7373
if: ${{ failure() }}
74-
uses: actions/upload-artifact@v7
74+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
7575
with:
7676
name: failsafe-reports
7777
path: ./**/target/failsafe-reports/

.github/workflows/scripts.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
timeout-minutes: 3
3737
runs-on: ubuntu-latest
3838
steps:
39-
- uses: actions/checkout@v6
39+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
4040
- name: Show the first log message
4141
run: git log -n1
4242
- name: Install shfmt
@@ -49,7 +49,7 @@ jobs:
4949
timeout-minutes: 3
5050
runs-on: ubuntu-latest
5151
steps:
52-
- uses: actions/checkout@v6
52+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
5353
- name: Show the first log message
5454
run: git log -n1
5555
- name: Install shfmt

.github/workflows/website.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ jobs:
3232
timeout-minutes: 120
3333
runs-on: ubuntu-latest
3434
steps:
35-
- uses: actions/checkout@v7
36-
- name: Set up JDK 11
37-
uses: actions/setup-java@v5
35+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
36+
- name: Set up JDK 25
37+
uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287 # v5.3.0
3838
with:
3939
java-version: 25
4040
distribution: temurin
4141
cache: 'maven'
4242
- name: Set up Node.js 22
43-
uses: actions/setup-node@v6
43+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
4444
with:
4545
node-version: 22
4646
cache: 'npm'
@@ -64,14 +64,14 @@ jobs:
6464
MAVEN_OPTS: -Djansi.force=true
6565
- name: Upload website Playwright report
6666
if: ${{ failure() }}
67-
uses: actions/upload-artifact@v7
67+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
6868
with:
6969
name: website-playwright-report
7070
path: zookeeper-website/playwright-report/
7171
if-no-files-found: ignore
7272
- name: Upload website test results
7373
if: ${{ failure() }}
74-
uses: actions/upload-artifact@v7
74+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
7575
with:
7676
name: website-test-results
7777
path: zookeeper-website/test-results/

zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/QuorumPeer.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,6 +1712,12 @@ public void shutdown() {
17121712
LOG.warn("Error closing logs ", ie);
17131713
}
17141714
}
1715+
if (authServer != null) {
1716+
authServer.shutdown();
1717+
}
1718+
if (authLearner != null) {
1719+
authLearner.shutdown();
1720+
}
17151721
}
17161722

17171723
/**

zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/auth/NullQuorumAuthLearner.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,9 @@ public void authenticate(Socket sock, String hostname) {
3131
return; // simply return don't require auth
3232
}
3333

34+
@Override
35+
public void shutdown() {
36+
// no-op
37+
}
38+
3439
}

zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/auth/NullQuorumAuthServer.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,9 @@ public void authenticate(final Socket sock, final DataInputStream din) {
3232
// simply return don't require auth
3333
}
3434

35+
@Override
36+
public void shutdown() {
37+
// no-op
38+
}
39+
3540
}

zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/auth/QuorumAuthLearner.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,8 @@ public interface QuorumAuthLearner {
3838
*/
3939
void authenticate(Socket sock, String hostname) throws IOException;
4040

41+
/**
42+
* Shutdown the learner and release resources.
43+
*/
44+
void shutdown();
4145
}

zookeeper-server/src/main/java/org/apache/zookeeper/server/quorum/auth/QuorumAuthServer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,8 @@ public interface QuorumAuthServer {
3838
*/
3939
void authenticate(Socket sock, DataInputStream din) throws IOException;
4040

41+
/**
42+
* Shut down the server and release resources.
43+
*/
44+
void shutdown();
4145
}

0 commit comments

Comments
 (0)