apache / apache/pulsar

[Bug] finishConnect(..) failed: Connection refused:

Open
#22,060 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.

### Version

Ubuntu 20.04.6
Apache Pulsar 3.2.0

### Minimal reproduce step

Use the following command to start a docker container:

```
docker run --detach -p 6650:6650 -p 3072:8080 --restart unless-stopped --mount source=pulsardata,target=/pulsar/data --mount source=pulsarconf,target=/pulsar/conf apachepulsar/pulsar:3.2.0 bin/pulsar standalone
```

### What did you expect to see?

No errors.

### What did you see instead?

I get the following error on docker log:

```
2024-02-16T10:32:41,590+0000 [pulsar-io-18-11] ERROR org.apache.bookkeeper.proto.PerChannelBookieClient - C ould not connect to bookie: [id: 0xaa72b664, L:/172.17.0.6:58520]/172.17.0.7:40643, current state CONNECTIN G :
io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Connection refused: / 172.17.0.7:40643
Caused by: java.net.ConnectException: finishConnect(..) failed: Connection refused
```

### Anything else?

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Reproduce the report with the provided docker run command on Ubuntu 20.04.6 and inspect container logs around the BookKeeper PerChannelBookieClient connection to 172.17.0.7:40643. No source file or test is named; completion would require isolating the refused connection and documenting or fixing the confirmed cause with a regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java
Domain
distributed-systems, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.