You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/10/14 08:20:18 UTC

[GitHub] [pulsar] nodece opened a new pull request, #18050: [fix][broker] Make full async call in PulsarAuthorizationProvider

nodece opened a new pull request, #18050:
URL: https://github.com/apache/pulsar/pull/18050

   ### Motivation
   
   Fix the thread blocked.
   
   ```
   2022-10-14T06:11:23,621+0000 [pulsar-io-4-1] ERROR org.apache.pulsar.broker.authorization.PulsarAuthorizationProvider - Failed to get tenant staging
   org.apache.pulsar.metadata.api.MetadataStoreException: Failed to get data from /admin/policies/staging
   	at org.apache.pulsar.broker.resources.BaseResources.get(BaseResources.java:87) ~[io.streamnative-pulsar-broker-common-2.10.0.4.jar:2.10.0.4]
   	at org.apache.pulsar.broker.resources.TenantResources.getTenant(TenantResources.java:61) ~[io.streamnative-pulsar-broker-common-2.10.0.4.jar:2.10.0.4]
   	at org.apache.pulsar.broker.authorization.PulsarAuthorizationProvider.lambda$validateTenantAdminAccess$25(PulsarAuthorizationProvider.java:697) ~[io.streamnative-pulsar-broker-common-2.10.0.4.jar:2.10.0.4]
   	at java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1106) [?:?]
   	at java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2235) [?:?]
   	at org.apache.pulsar.broker.authorization.PulsarAuthorizationProvider.validateTenantAdminAccess(PulsarAuthorizationProvider.java:691) [io.streamnative-pulsar-broker-common-2.10.0.4.jar:2.10.0.4]
   	at org.apache.pulsar.broker.authorization.PulsarAuthorizationProvider.allowTopicOperationAsync(PulsarAuthorizationProvider.java:627) [io.streamnative-pulsar-broker-common-2.10.0.4.jar:2.10.0.4]
   	at org.apache.pulsar.broker.authorization.AuthorizationService.allowTopicOperationAsync(AuthorizationService.java:555) [io.streamnative-pulsar-broker-common-2.10.0.4.jar:2.10.0.4]
   	at org.apache.pulsar.broker.service.ServerCnx.isTopicOperationAllowed(ServerCnx.java:386) [io.streamnative-pulsar-broker-2.10.0.4.jar:2.10.0.4]
   	at org.apache.pulsar.broker.service.ServerCnx.handlePartitionMetadataRequest(ServerCnx.java:515) [io.streamnative-pulsar-broker-2.10.0.4.jar:2.10.0.4]
   	at org.apache.pulsar.common.protocol.PulsarDecoder.channelRead(PulsarDecoder.java:121) [io.streamnative-pulsar-common-2.10.0.4.jar:2.10.0.4]
   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [io.netty-netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [io.netty-netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [io.netty-netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.handler.flow.FlowControlHandler.dequeue(FlowControlHandler.java:200) [io.netty-netty-handler-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.handler.flow.FlowControlHandler.channelRead(FlowControlHandler.java:162) [io.netty-netty-handler-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [io.netty-netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [io.netty-netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [io.netty-netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:327) [io.netty-netty-codec-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:314) [io.netty-netty-codec-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:435) [io.netty-netty-codec-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:279) [io.netty-netty-codec-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [io.netty-netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [io.netty-netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [io.netty-netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [io.netty-netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [io.netty-netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [io.netty-netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [io.netty-netty-transport-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:800) [io.netty-netty-transport-classes-epoll-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:487) [io.netty-netty-transport-classes-epoll-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:385) [io.netty-netty-transport-classes-epoll-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:995) [io.netty-netty-common-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [io.netty-netty-common-4.1.77.Final.jar:4.1.77.Final]
   	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [io.netty-netty-common-4.1.77.Final.jar:4.1.77.Final]
   	at java.lang.Thread.run(Thread.java:829) [?:?]
   Caused by: java.util.concurrent.TimeoutException
   	at java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1886) ~[?:?]
   	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2021) ~[?:?]
   	at org.apache.pulsar.broker.resources.BaseResources.get(BaseResources.java:82) ~[io.streamnative-pulsar-broker-common-2.10.0.4.jar:2.10.0.4]
   	... 36 more
   ```
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. Please attach the local preview screenshots (run `sh start.sh` at `pulsar/site2/website`) to your PR description, or else your PR might not get merged. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->
   
   ### Matching PR in forked repository
   
   PR in forked repository: <!-- ENTER URL HERE -->
   
   <!--
   After opening this PR, the build in apache/pulsar will fail and instructions will
   be provided for opening a PR in the PR author's forked repository.
   
   apache/pulsar pull requests should be first tested in your own fork since the 
   apache/pulsar CI based on GitHub Actions has constrained resources and quota.
   GitHub Actions provides separate quota for pull requests that are executed in 
   a forked repository.
   
   The tests will be run in the forked repository until all PR review comments have
   been handled, the tests pass and the PR is approved by a reviewer.
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [pulsar] nodece merged pull request #18050: [fix][broker] Make full async call in PulsarAuthorizationProvider

Posted by GitBox <gi...@apache.org>.
nodece merged PR #18050:
URL: https://github.com/apache/pulsar/pull/18050


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org