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

The loadbalancer should avoid offload the heartbeat namespace #12252

Commits on Sep 30, 2021

  1. The loadbalancer should avoid offload the heartbeat namespace

    The heartbeat namespace is sticky to a broker, so it will not owned by other brokers, It will not make any sense for rebalancing the heartbeat namespace.
    
    ```
    09:49:55.946 [pulsar-load-manager-1-1] WARN  org.apache.pulsar.broker.loadbalance.impl.ModularLoadManagerImpl - Error when trying to perform load shedding on pulsar/pluster-2/10.1.131.232:8080/0x00000000_0xffffffff for broker 10.1.131.232:8080 org.apache.pulsar.client.admin.PulsarAdminException$NotFoundException: Namespace does not exist
            at org.apache.pulsar.client.admin.internal.BaseResource.getApiException(BaseResource.java:220)
            at org.apache.pulsar.client.admin.internal.BaseResource$1.failed(BaseResource.java:130)
            at org.glassfish.jersey.client.JerseyInvocation$1.failed(JerseyInvocation.java:839)
            at org.glassfish.jersey.client.JerseyInvocation$1.completed(JerseyInvocation.java:820)
            at org.glassfish.jersey.client.ClientRuntime.processResponse(ClientRuntime.java:229)
            at org.glassfish.jersey.client.ClientRuntime.access$200(ClientRuntime.java:62)
            at org.glassfish.jersey.client.ClientRuntime$2.lambda$response$0(ClientRuntime.java:173)
            at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248)
            at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244)
            at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
            at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
            at org.glassfish.jersey.internal.Errors.process(Errors.java:244)
            at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:288)
            at org.glassfish.jersey.client.ClientRuntime$2.response(ClientRuntime.java:173)
            at org.apache.pulsar.client.admin.internal.http.AsyncHttpConnector.lambda$apply$1(AsyncHttpConnector.java:212)
            at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)
            at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)
            at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)
            at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1975)
            at org.apache.pulsar.client.admin.internal.http.AsyncHttpConnector.lambda$retryOperation$3(AsyncHttpConnector.java:253)
            at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:774)
            at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:750)
            at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)
            at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1975)
            at org.asynchttpclient.netty.NettyResponseFuture.loadContent(NettyResponseFuture.java:222)
            at org.asynchttpclient.netty.NettyResponseFuture.done(NettyResponseFuture.java:257)
            at org.asynchttpclient.netty.handler.AsyncHttpClientHandler.finishUpdate(AsyncHttpClientHandler.java:241)
            at org.asynchttpclient.netty.handler.HttpHandler.handleChunk(HttpHandler.java:114)
            at org.asynchttpclient.netty.handler.HttpHandler.handleRead(HttpHandler.java:143)
            at org.asynchttpclient.netty.handler.AsyncHttpClientHandler.channelRead(AsyncHttpClientHandler.java:78)
            at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
            at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
            at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
            at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
            at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
            at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
            at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
     ```
    codelipenghui committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    b644e79 View commit details
    Browse the repository at this point in the history
  2. Fix checkstyle

    codelipenghui committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    f930c01 View commit details
    Browse the repository at this point in the history