This is an automated email from the ASF dual-hosted git repository.
xyz pushed a change to branch branch-2.8
in repository https://gitbox.apache.org/repos/asf/pulsar.git
from 673ed2ce70a Revert "[fix][client-c++] Close `messages_` when
PartitionedConsumer is closed (#16887)"
new 735e823d22c [fix][authorization] Fix multiple roles authorization
(#16645)
new d461948b7e5 [fix][client] Remove redundant check for chunked message
TotalChunkMsgSize in ConsumerImpl (#16797)
new acb4eba0ec4 [improve][authentication] Improve get the basic
authentication config (#16526)
new 05b16e24ba8 [improve][test] Verify the authentication data in the
authorization provider (#16900)
new 71076570b4b Fix the compilation error when cherry-picking cdec98a
new a50159328b1 Forget to update memory usage when invalid message (#16835)
new 59339c42b54 [fix][client]Fix MaxQueueSize semaphore release leak in
createOpSendMsg (#16915)
new 6b3e46f20e7 Fix testProducerSemaphoreInvalidMessage by removing usages
of mockStatic
The 8 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
conf/broker.conf | 7 +
conf/proxy.conf | 7 +
conf/standalone.conf | 6 +
.../AuthenticationProviderBasic.java | 49 ++--
.../MultiRolesTokenAuthorizationProvider.java | 83 +++++-
.../authorization/PulsarAuthorizationProvider.java | 2 +-
.../AuthenticationProviderBasicTest.java | 91 +++++++
.../test/resources/authentication/basic/.htpasswd | 0
.../broker/auth/AuthorizationWithAuthDataTest.java | 298 +++++++++++++++++++++
.../MultiRolesTokenAuthorizationProviderTest.java | 231 ++++++++++++++++
.../client/impl/ProducerMemoryLimitTest.java | 27 ++
.../pulsar/client/impl/ProducerSemaphoreTest.java | 35 +++
.../client/impl/BatchMessageContainerImpl.java | 3 +
.../apache/pulsar/client/impl/ConsumerImpl.java | 8 +-
14 files changed, 815 insertions(+), 32 deletions(-)
create mode 100644
pulsar-broker-common/src/test/java/org/apache/pulsar/broker/authentication/AuthenticationProviderBasicTest.java
copy {pulsar-broker =>
pulsar-broker-common}/src/test/resources/authentication/basic/.htpasswd (100%)
create mode 100644
pulsar-broker/src/test/java/org/apache/pulsar/broker/auth/AuthorizationWithAuthDataTest.java
create mode 100644
pulsar-broker/src/test/java/org/apache/pulsar/client/api/MultiRolesTokenAuthorizationProviderTest.java