Skip to content

fix peek messages failed with subscriptionName not exist #8182

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

Merged

Conversation

hangc0276
Copy link
Contributor

Motivation

When peek message with not exist subscriptionName, it will get the following exception:

$bin/pulsar-admin topics peek-messages -s test persistent://public/default/test-v1-partition-2

22:11:29.237 [AsyncHttpClient-7-1] WARN  org.apache.pulsar.client.admin.internal.TopicsImpl - Exception 'Subscription not found' occurred while trying to peek Messages.

Changes

When the given subscriptionName not exist, create a new subscription with given subscriptionName and earliest initial position.

@hangc0276
Copy link
Contributor Author

@sijie @codelipenghui Please take a look, thanks.

@hangc0276
Copy link
Contributor Author

/pulsarbot run-failure-checks

@sijie sijie added this to the 2.7.0 milestone Oct 2, 2020
@sijie sijie merged commit 8894b01 into apache:master Oct 2, 2020
lbenc135 pushed a commit to lbenc135/pulsar that referenced this pull request Oct 3, 2020
### Motivation
When peek message with not exist subscriptionName, it will get the following exception:
```shell
$bin/pulsar-admin topics peek-messages -s test persistent://public/default/test-v1-partition-2

22:11:29.237 [AsyncHttpClient-7-1] WARN  org.apache.pulsar.client.admin.internal.TopicsImpl - Exception 'Subscription not found' occurred while trying to peek Messages.
```

### Changes
When the given subscriptionName not exist, create a new subscription with given subscriptionName and earliest initial position.
wolfstudy pushed a commit that referenced this pull request Oct 30, 2020
### Motivation
When peek message with not exist subscriptionName, it will get the following exception:
```shell
$bin/pulsar-admin topics peek-messages -s test persistent://public/default/test-v1-partition-2

22:11:29.237 [AsyncHttpClient-7-1] WARN  org.apache.pulsar.client.admin.internal.TopicsImpl - Exception 'Subscription not found' occurred while trying to peek Messages.
```

### Changes
When the given subscriptionName not exist, create a new subscription with given subscriptionName and earliest initial position.

(cherry picked from commit 8894b01)
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Nov 13, 2020
### Motivation
When peek message with not exist subscriptionName, it will get the following exception:
```shell
$bin/pulsar-admin topics peek-messages -s test persistent://public/default/test-v1-partition-2

22:11:29.237 [AsyncHttpClient-7-1] WARN  org.apache.pulsar.client.admin.internal.TopicsImpl - Exception 'Subscription not found' occurred while trying to peek Messages.
```

### Changes
When the given subscriptionName not exist, create a new subscription with given subscriptionName and earliest initial position.
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.

3 participants