Skip to content

Add more detail information of retry errors - #7341

Merged
sijie merged 4 commits into
apache:masterfrom
zymap:update-log
Jul 6, 2020
Merged

Add more detail information of retry errors#7341
sijie merged 4 commits into
apache:masterfrom
zymap:update-log

Conversation

@zymap

@zymap zymap commented Jun 23, 2020

Copy link
Copy Markdown
Member

Motivation

Currently, when you connecting to a wrong address, the error
log does not show the detail information to let you know why
it failed. Add the failed reason to know more about the error.

Before adding the error log:

bin/pulsar-admin topics list public/default
null

Reason: java.util.concurrent.CompletionException: org.apache.pulsar.client.admin.internal.http.AsyncHttpConnector$RetryException: Could not complete the operation. Number of retries has been exhausted.

After adding the error log:

bin/pulsar-admin topics list public/default
null

Reason: java.util.concurrent.CompletionException: org.apache.pulsar.client.admin.internal.http.AsyncHttpConnector$RetryException: Could not complete the operation. Number of retries has been exhausted.Connection refused: localhost/127.0.0.1:8081

---

*Motivation*

Currently, when you connecting to a wrong address, the error
log does not show the detail information to let you know why
it failed. Add the failed reason to know more about the error.

Before adding the error log:

```
bin/pulsar-admin topics list public/default
null

Reason: java.util.concurrent.CompletionException: org.apache.pulsar.client.admin.internal.http.AsyncHttpConnector$RetryException: Could not complete the operation. Number of retries has been exhausted.
```

After adding the error log:

```
bin/pulsar-admin topics list public/default
null

Reason: java.util.concurrent.CompletionException: org.apache.pulsar.client.admin.internal.http.AsyncHttpConnector$RetryException: Could not complete the operation. Number of retries has been exhausted.Connection refused: localhost/127.0.0.1:8081
```

@codelipenghui codelipenghui left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you please take a look at the check style issue?

@zymap

zymap commented Jun 29, 2020

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@zymap

zymap commented Jun 30, 2020

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

3 similar comments
@zymap

zymap commented Jun 30, 2020

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@zymap

zymap commented Jun 30, 2020

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@zymap

zymap commented Jul 1, 2020

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@zymap

zymap commented Jul 1, 2020

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

5 similar comments
@zymap

zymap commented Jul 2, 2020

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@zymap

zymap commented Jul 2, 2020

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@zymap

zymap commented Jul 2, 2020

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@zymap

zymap commented Jul 3, 2020

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@zymap

zymap commented Jul 6, 2020

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@sijie
sijie merged commit f4547ec into apache:master Jul 6, 2020
codelipenghui pushed a commit to streamnative/pulsar-archived that referenced this pull request Jul 14, 2020
---

*Motivation*

Currently, when you connecting to a wrong address, the error
log does not show the detail information to let you know why
it failed. Add the failed reason to know more about the error.

Before adding the error log:

```
bin/pulsar-admin topics list public/default
null

Reason: java.util.concurrent.CompletionException: org.apache.pulsar.client.admin.internal.http.AsyncHttpConnector$RetryException: Could not complete the operation. Number of retries has been exhausted.
```

After adding the error log:

```
bin/pulsar-admin topics list public/default
null

Reason: java.util.concurrent.CompletionException: org.apache.pulsar.client.admin.internal.http.AsyncHttpConnector$RetryException: Could not complete the operation. Number of retries has been exhausted.Connection refused: localhost/127.0.0.1:8081
```

(cherry picked from commit f4547ec)
wolfstudy pushed a commit that referenced this pull request Jul 29, 2020
---

*Motivation*

Currently, when you connecting to a wrong address, the error
log does not show the detail information to let you know why
it failed. Add the failed reason to know more about the error.

Before adding the error log:

```
bin/pulsar-admin topics list public/default
null

Reason: java.util.concurrent.CompletionException: org.apache.pulsar.client.admin.internal.http.AsyncHttpConnector$RetryException: Could not complete the operation. Number of retries has been exhausted.
```

After adding the error log:

```
bin/pulsar-admin topics list public/default
null

Reason: java.util.concurrent.CompletionException: org.apache.pulsar.client.admin.internal.http.AsyncHttpConnector$RetryException: Could not complete the operation. Number of retries has been exhausted.Connection refused: localhost/127.0.0.1:8081
```

(cherry picked from commit f4547ec)
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
---

*Motivation*

Currently, when you connecting to a wrong address, the error
log does not show the detail information to let you know why
it failed. Add the failed reason to know more about the error.

Before adding the error log:

```
bin/pulsar-admin topics list public/default
null

Reason: java.util.concurrent.CompletionException: org.apache.pulsar.client.admin.internal.http.AsyncHttpConnector$RetryException: Could not complete the operation. Number of retries has been exhausted.
```

After adding the error log:

```
bin/pulsar-admin topics list public/default
null

Reason: java.util.concurrent.CompletionException: org.apache.pulsar.client.admin.internal.http.AsyncHttpConnector$RetryException: Could not complete the operation. Number of retries has been exhausted.Connection refused: localhost/127.0.0.1:8081
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants