Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[improve][misc] Upgrade slf4j to 2.0.12 #33

Closed
wants to merge 55 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
a51bbdd
[improve][broker] Deprecate unused enableNamespaceIsolationUpdateOnTi…
BewareMyPower Apr 8, 2024
57a616e
[fix][broker] Fix consumer stops receiving messages when with large b…
Technoboy- Apr 8, 2024
b162d46
[cleanup][broker] remove useless code comment (#22459)
thetumbled Apr 9, 2024
3bdb30c
[fix][build] Fix ps command (#22451)
nodece Apr 9, 2024
6de711d
[improve][test] Add operation authentication test for namespace API (…
coderzc Apr 9, 2024
9555504
[improve][admin] Add authorization test for schema and align auth for…
liangyepianzhou Apr 9, 2024
f3d14a6
[improve][test] Replace usage of curl in Java test and fix stream lea…
lhotari Apr 9, 2024
fb5caeb
[fix][broker] Update topic partition failed when config maxNumPartiti…
hanmz Apr 9, 2024
cea1a9b
[fix][broker] Fix message drop record in producer stat (#22458)
zhangqian321 Apr 10, 2024
b42d941
[improve][broker] Recover susbcription creation on the broken schema …
rdhabalia Apr 11, 2024
094742d
[fix][broker] Do not migrate internal topics during Blue-Green Migrat…
heesung-sn Apr 11, 2024
4a5400f
[improve][misc] Upgrade to Bookkeeper 4.16.5 (#22484)
lhotari Apr 12, 2024
7984cc2
[feat][admin] Enable Gzip Compression by Default in Admin Client (#22…
lhotari Apr 12, 2024
dbe1a48
[improve][broker] Reduce the duplicated null check for LeaderElection…
BewareMyPower Apr 12, 2024
b857300
[improve][broker] backlog quota exceed limit log replaced with `debug…
mukesh154 Apr 12, 2024
d174857
[fix][test] Fix NPE in BookKeeperClusterTestCase tearDown (#22493)
lhotari Apr 12, 2024
15ed659
[improve][broker] Improve Gzip compression, allow excluding specific …
lhotari Apr 12, 2024
97153dc
[fix][test] Move ExtensibleLoadManagerImplTest to flaky tests (#22495)
lhotari Apr 12, 2024
51ecd02
[cleanup][broker] Remove unused NamespaceBundleFactory parameter when…
BewareMyPower Apr 13, 2024
7009071
[fix][broker] Optimize /metrics, fix unbounded request queue issue an…
lhotari Apr 13, 2024
837f8bc
[fix] [broker] Prevent long deduplication cursor backlog so that topi…
poorbarcode Apr 14, 2024
5d18ff7
[fix][txn]Handle exceptions in the transaction pending ack init (#21274)
liangyepianzhou Apr 15, 2024
d9a43dd
[fix][test] Flaky-test: testMessageExpiryWithTimestampNonRecoverableE…
shibd Apr 15, 2024
9d72e6b
[improve][test] Add topic operation checker for topic API (#22468)
coderzc Apr 15, 2024
20915d1
[fix][sec] Upgrade Bouncycastle to 1.78 (#22509)
izumo27 Apr 15, 2024
bbff29d
[fix][io] Kafka Source connector maybe stuck (#22511)
shibd Apr 16, 2024
203f305
[fix][broker] Fix Replicated Topic unload bug when ExtensibleLoadMana…
heesung-sn Apr 16, 2024
70b401b
[improve][fn] Expose `RuntimeFlags` as CLI option for Pulsar Function…
freeznet Apr 16, 2024
ffdfc0c
[fix][test] SchemaMap in AutoConsumeSchema has been reused (#22500)
Denovo1998 Apr 16, 2024
4ca4e28
[improve] Make the config `metricsBufferResponse` description more ef…
dao-jun Apr 16, 2024
d5b36da
[improve][broker] Add topic name to emitted error messages. (#22506)
dao-jun Apr 16, 2024
1dd82a0
[improve][broker] Repeat the handleMetadataChanges callback when conf…
hanmz Apr 17, 2024
94f6c7c
[improve][broker] Optimize gzip compression for /metrics endpoint by …
lhotari Apr 17, 2024
8ca01cd
[improve][admin] Align the auth and check it at the first place for …
Technoboy- Apr 17, 2024
56970b7
[improve][test] Move ShadowManagedLedgerImplTest to flaky tests (#22526)
lhotari Apr 17, 2024
d0b9d47
[fix][broker] Check the broker is available for the SLA monitor bundl…
Demogorgon314 Apr 18, 2024
72474d7
[fix][broker] Fix a deadlock in SystemTopicBasedTopicPoliciesService …
heesung-sn Apr 18, 2024
990b8d0
[improve][build] Upgrade OWASP Dependency check version to 9.1.0 (#22…
lhotari Apr 18, 2024
7acbc4c
[improve] Run Trivy image scanner with the current image (#22386)
merlimat Apr 18, 2024
7aedb6b
[fix][broker] Fix typos in Consumer class (#22532)
hanmz Apr 18, 2024
2badcf6
[fix][broker] Fix NPE causing dispatching to stop when using Key_Shar…
poorbarcode Apr 19, 2024
fbf4cb7
[improve][offload] Apply autoSkipNonRecoverableData configuration to …
shibd Apr 19, 2024
59daac6
[fix][broker] Fix broken topic policy implementation compatibility wi…
rdhabalia Apr 19, 2024
21647a1
[fix] Bump golang.org/x/net from 0.17.0 to 0.23.0 in /pulsar-function…
dependabot[bot] Apr 20, 2024
4a88721
[improve][broker] Support X-Forwarded-For and HA Proxy Protocol for r…
lhotari Apr 22, 2024
3a0f908
[improve][test] Add topic policy test for topic API (#22546)
Technoboy- Apr 22, 2024
e81f370
[fix][offload] Increase file upload limit from 2048MiB to 4096MiB for…
lhotari Apr 22, 2024
35599b7
[fix][ml] Fix NPE of getValidPositionAfterSkippedEntries when recover…
coderzc Apr 22, 2024
a037fa3
[improve][misc] Upgrade to Bookkeeper 4.17.0 (#22551)
lhotari Apr 22, 2024
c72c135
[improve] Update Oxia client to 0.1.6 (#22525)
merlimat Apr 22, 2024
4924052
[fix] [broker] Part-1: Replicator can not created successfully due to…
poorbarcode Apr 23, 2024
bfebe26
[improve][misc] Upgrade slf4j to 2.0.13
nodece Apr 23, 2024
0bfc087
Fix rabbitmq test
nodece Apr 23, 2024
cbb2d63
Fix build
nodece Apr 23, 2024
962852c
Fix build
nodece Apr 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 0 additions & 66 deletions .github/workflows/ci-trivy-container-scan.yaml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/pulsar-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,23 @@ jobs:
- name: Check binary licenses
run: src/check-binary-license.sh ./distribution/server/target/apache-pulsar-*-bin.tar.gz && src/check-binary-license.sh ./distribution/shell/target/apache-pulsar-shell-*-bin.tar.gz

- name: Run Trivy container scan
uses: aquasecurity/trivy-action@master
if: ${{ github.repository == 'apache/pulsar' && github.event_name != 'pull_request' }}
with:
image-ref: "apachepulsar/pulsar:latest"
scanners: vuln
severity: CRITICAL,HIGH,MEDIUM,LOW
limit-severities-for-sarif: true
format: 'sarif'
output: 'trivy-results.sarif'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
if: ${{ github.repository == 'apache/pulsar' && github.event_name != 'pull_request' }}
with:
sarif_file: 'trivy-results.sarif'

- name: Clean up disk space
run: |
# release disk space since saving docker image consumes local disk space
Expand Down
6 changes: 3 additions & 3 deletions bouncy-castle/bc/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,6 @@
This projects includes binary packages with the following licenses:
Bouncy Castle License
* Bouncy Castle -- licenses/LICENSE-bouncycastle.txt
- org.bouncycastle-bcpkix-jdk18on-1.75.jar
- org.bouncycastle-bcprov-jdk18on-1.75.jar
- org.bouncycastle-bcprov-ext-jdk18on-1.75.jar
- org.bouncycastle-bcpkix-jdk18on-1.78.jar
- org.bouncycastle-bcprov-jdk18on-1.78.jar
- org.bouncycastle-bcprov-ext-jdk18on-1.78.jar
10 changes: 8 additions & 2 deletions buildtools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<maven.compiler.target>1.8</maven.compiler.target>
<surefire.version>3.1.0</surefire.version>
<log4j2.version>2.23.1</log4j2.version>
<slf4j.version>1.7.32</slf4j.version>
<slf4j.version>2.0.13</slf4j.version>
<testng.version>7.7.1</testng.version>
<commons-lang3.version>3.11</commons-lang3.version>
<license-maven-plugin.version>4.1</license-maven-plugin.version>
Expand Down Expand Up @@ -100,6 +100,12 @@
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>${testng.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
Expand All @@ -111,7 +117,7 @@
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<artifactId>log4j-slf4j2-impl</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
Expand Down
21 changes: 16 additions & 5 deletions conf/broker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ advertisedAddress=
# If true, the real IP addresses of consumers and producers can be obtained when getting topic statistics data.
haProxyProtocolEnabled=false

# Enable or disable the use of HA proxy protocol for resolving the client IP for http/https requests.
webServiceHaProxyProtocolEnabled=false

# Trust X-Forwarded-For header for resolving the client IP for http/https requests. Default is false.
webServiceTrustXForwardedFor=false

# Add detailed client/remote and server/local addresses and ports to http/https request logging.
# Defaults to true when either webServiceHaProxyProtocolEnabled or webServiceTrustXForwardedFor is enabled.
webServiceLogDetailedAddresses=

# Number of threads to config Netty Acceptor. Default is 1
numAcceptorThreads=

Expand Down Expand Up @@ -1660,10 +1670,10 @@ s3ManagedLedgerOffloadBucket=
# For Amazon S3 ledger offload, Alternative endpoint to connect to (useful for testing)
s3ManagedLedgerOffloadServiceEndpoint=

# For Amazon S3 ledger offload, Max block size in bytes. (64MB by default, 5MB minimum)
# For Amazon S3 ledger offload, Max block size in bytes. (64MiB by default, 5MiB minimum)
s3ManagedLedgerOffloadMaxBlockSizeInBytes=67108864

# For Amazon S3 ledger offload, Read buffer size in bytes (1MB by default)
# For Amazon S3 ledger offload, Read buffer size in bytes (1MiB by default)
s3ManagedLedgerOffloadReadBufferSizeInBytes=1048576

# For Google Cloud Storage ledger offload, region where offload bucket is located.
Expand All @@ -1673,10 +1683,11 @@ gcsManagedLedgerOffloadRegion=
# For Google Cloud Storage ledger offload, Bucket to place offloaded ledger into
gcsManagedLedgerOffloadBucket=

# For Google Cloud Storage ledger offload, Max block size in bytes. (64MB by default, 5MB minimum)
gcsManagedLedgerOffloadMaxBlockSizeInBytes=67108864
# For Google Cloud Storage ledger offload, Max block size in bytes. (128MiB by default, 5MiB minimum)
# Since JClouds limits the maximum number of blocks to 32, the maximum size of a ledger is 32 times the block size.
gcsManagedLedgerOffloadMaxBlockSizeInBytes=134217728

# For Google Cloud Storage ledger offload, Read buffer size in bytes (1MB by default)
# For Google Cloud Storage ledger offload, Read buffer size in bytes (1MiB by default)
gcsManagedLedgerOffloadReadBufferSizeInBytes=1048576

# For Google Cloud Storage, path to json file containing service account credentials.
Expand Down
10 changes: 10 additions & 0 deletions conf/functions_worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ workerHostname: localhost
workerPort: 6750
workerPortTls: 6751

# Enable or disable the use of HA proxy protocol for resolving the client IP for http/https requests.
webServiceHaProxyProtocolEnabled: false

# Trust X-Forwarded-For header for resolving the client IP for http/https requests. Default is false.
webServiceTrustXForwardedFor: false

# Add detailed client/remote and server/local addresses and ports to http/https request logging.
# Defaults to true when either webServiceHaProxyProtocolEnabled or webServiceTrustXForwardedFor is enabled.
webServiceLogDetailedAddresses: null

# The Configuration metadata store url
# Examples:
# * zk:my-zk-1:2181,my-zk-2:2181,my-zk-3:2181
Expand Down
16 changes: 14 additions & 2 deletions conf/proxy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ advertisedAddress=
# If true, the real IP addresses of consumers and producers can be obtained when getting topic statistics data.
haProxyProtocolEnabled=false

# Enable or disable the use of HA proxy protocol for resolving the client IP for http/https requests.
webServiceHaProxyProtocolEnabled=false

# Trust X-Forwarded-For header for resolving the client IP for http/https requests. Default is false.
webServiceTrustXForwardedFor=false

# Add detailed client/remote and server/local addresses and ports to http/https request logging.
# Defaults to true when either webServiceHaProxyProtocolEnabled or webServiceTrustXForwardedFor is enabled.
webServiceLogDetailedAddresses=

# Enables zero-copy transport of data across network interfaces using the splice system call.
# Zero copy mode cannot be used when TLS is enabled or when proxyLogLevel is > 0.
proxyZeroCopyModeEnabled=true
Expand Down Expand Up @@ -376,5 +386,7 @@ zooKeeperCacheExpirySeconds=-1
enableProxyStatsEndpoints=true
# Whether the '/metrics' endpoint requires authentication. Defaults to true
authenticateMetricsEndpoint=true
# Enable cache metrics data, default value is false
metricsBufferResponse=false
# Time in milliseconds that metrics endpoint would time out. Default is 30s.
# Set it to 0 to disable timeout.
metricsServletTimeoutMs=30000

10 changes: 10 additions & 0 deletions conf/standalone.conf
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ advertisedAddress=
# If true, the real IP addresses of consumers and producers can be obtained when getting topic statistics data.
haProxyProtocolEnabled=false

# Enable or disable the use of HA proxy protocol for resolving the client IP for http/https requests.
webServiceHaProxyProtocolEnabled=false

# Trust X-Forwarded-For header for resolving the client IP for http/https requests. Default is false.
webServiceTrustXForwardedFor=false

# Add detailed client/remote and server/local addresses and ports to http/https request logging.
# Defaults to true when either webServiceHaProxyProtocolEnabled or webServiceTrustXForwardedFor is enabled.
webServiceLogDetailedAddresses=

# Number of threads to use for Netty IO. Default is set to 2 * Runtime.getRuntime().availableProcessors()
numIOThreads=

Expand Down
10 changes: 10 additions & 0 deletions conf/websocket.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ statusFilePath=
# Hostname or IP address the service binds on, default is 0.0.0.0.
bindAddress=0.0.0.0

# Enable or disable the use of HA proxy protocol for resolving the client IP for http/https requests.
webServiceHaProxyProtocolEnabled=false

# Trust X-Forwarded-For header for resolving the client IP for http/https requests. Default is false.
webServiceTrustXForwardedFor=false

# Add detailed client/remote and server/local addresses and ports to http/https request logging.
# Defaults to true when either webServiceHaProxyProtocolEnabled or webServiceTrustXForwardedFor is enabled.
webServiceLogDetailedAddresses=

# Name of the pulsar cluster to connect to
clusterName=

Expand Down
29 changes: 29 additions & 0 deletions distribution/licenses/LICENSE-Reactive-gRPC.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
BSD 3-Clause License

Copyright (c) 2019, Salesforce.com, Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 changes: 1 addition & 1 deletion distribution/server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<artifactId>log4j-slf4j2-impl</artifactId>
</dependency>

<dependency>
Expand Down
Loading
Loading