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

Not allow sub auto create by admin when disable topic auto create #6685

Merged
merged 3 commits into from
Apr 8, 2020

Conversation

jiazhai
Copy link
Member

@jiazhai jiazhai commented Apr 7, 2020

Motivation

Not allow sub auto create by admin when disable topic auto create

Modifications

change admin code to not allow sub auto create by admin when disable topic auto create
add tests

Verifying this change

ut passed

@jiazhai jiazhai merged commit 21f6dcd into apache:master Apr 8, 2020
sijie pushed a commit that referenced this pull request Apr 9, 2020
)

### Motivation

Not allow sub auto create by admin when disable topic auto create

### Modifications

change admin code to not allow sub auto create by admin when disable topic auto create
add tests

### Verifying this change
ut passed

* fix sub auto created by admin
* fix test error: create sub partition when update it
* fix flaky test
@sijie
Copy link
Member

sijie commented Apr 9, 2020

@tuteng I cherry-picked the issue into branch-2.5. So it can be released as part of 2.5.2.

sijie added a commit to sijie/pulsar that referenced this pull request Apr 9, 2020
*Motivation*

I cherry-picked the fix of apache#6685 into branch-2.5. But the cherry-pick missing one class import.

The pull request fixed the cherry-pick error.
@sijie sijie mentioned this pull request Apr 9, 2020
merlimat pushed a commit that referenced this pull request Apr 9, 2020
*Motivation*

I cherry-picked the fix of #6685 into branch-2.5. But the cherry-pick missing one class import.

The pull request fixed the cherry-pick error.
@tuteng
Copy link
Member

tuteng commented Apr 13, 2020

Add label release/2.5.1 and remove release/2.5.2

tuteng pushed a commit that referenced this pull request Apr 13, 2020
)

### Motivation

Not allow sub auto create by admin when disable topic auto create

### Modifications

change admin code to not allow sub auto create by admin when disable topic auto create
add tests

### Verifying this change
ut passed

* fix sub auto created by admin
* fix test error: create sub partition when update it
* fix flaky test

(cherry picked from commit 21f6dcd)
jiazhai added a commit to jiazhai/pulsar that referenced this pull request May 18, 2020
…ache#6685)

### Motivation

Not allow sub auto create by admin when disable topic auto create

### Modifications

change admin code to not allow sub auto create by admin when disable topic auto create
add tests

### Verifying this change
ut passed

* fix sub auto created by admin
* fix test error: create sub partition when update it
* fix flaky test
(cherry picked from commit 21f6dcd)
jiazhai pushed a commit to jiazhai/pulsar that referenced this pull request May 18, 2020
*Motivation*

I cherry-picked the fix of apache#6685 into branch-2.5. But the cherry-pick missing one class import.

The pull request fixed the cherry-pick error.
(cherry picked from commit 8fcbf43)
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
…ache#6685)

### Motivation

Not allow sub auto create by admin when disable topic auto create

### Modifications

change admin code to not allow sub auto create by admin when disable topic auto create
add tests

### Verifying this change
ut passed

* fix sub auto created by admin
* fix test error: create sub partition when update it
* fix flaky test
cbornet added a commit to cbornet/pulsar that referenced this pull request Nov 9, 2021
PR apache#6471 introduced the possibility to set auto topic creation settings at the namespace level
PR apache#6685 is a fix to take into account the auto topic creation setting when creating a subscription
but it uses the broker configuration and doesn't see the namespace level setting that was introduced in apache#6471

This fix uses the   method that fetches config overrides in ZK instead of the one from the broker configuration.
This way the  method of the pulsar-admin uses the value set for the namespace for auto-topic-creation
cbornet added a commit to cbornet/pulsar that referenced this pull request Nov 10, 2021
PR apache#6471 introduced the possibility to set auto topic creation settings at the namespace level
PR apache#6685 is a fix to take into account the auto topic creation setting when creating a subscription
but it uses the broker configuration and doesn't see the namespace level setting that was introduced in apache#6471

This fix uses the   method that fetches config overrides in ZK instead of the one from the broker configuration.
This way the  method of the pulsar-admin uses the value set for the namespace for auto-topic-creation
cbornet added a commit to cbornet/pulsar that referenced this pull request Nov 10, 2021
PR apache#6471 introduced the possibility to set auto topic creation settings at the namespace level
PR apache#6685 is a fix to take into account the auto topic creation setting when creating a subscription
but it uses the broker configuration and doesn't see the namespace level setting that was introduced in apache#6471

This fix uses the   method that fetches config overrides in ZK instead of the one from the broker configuration.
This way the  method of the pulsar-admin uses the value set for the namespace for auto-topic-creation
cbornet added a commit to cbornet/pulsar that referenced this pull request Nov 10, 2021
PR apache#6471 introduced the possibility to set auto topic creation settings at the namespace level
PR apache#6685 is a fix to take into account the auto topic creation setting when creating a subscription
but it uses the broker configuration and doesn't see the namespace level setting that was introduced in apache#6471

This fix uses the   method that fetches config overrides in ZK instead of the one from the broker configuration.
This way the  method of the pulsar-admin uses the value set for the namespace for auto-topic-creation
merlimat pushed a commit that referenced this pull request Dec 9, 2021
)

PR #6471 introduced the possibility to set auto topic creation settings at the namespace level
PR #6685 is a fix to take into account the auto topic creation setting when creating a subscription
but it uses the broker configuration and doesn't see the namespace level setting that was introduced in #6471

This fix uses the   method that fetches config overrides in ZK instead of the one from the broker configuration.
This way the  method of the pulsar-admin uses the value set for the namespace for auto-topic-creation
lhotari pushed a commit that referenced this pull request Dec 10, 2021
)

PR #6471 introduced the possibility to set auto topic creation settings at the namespace level
PR #6685 is a fix to take into account the auto topic creation setting when creating a subscription
but it uses the broker configuration and doesn't see the namespace level setting that was introduced in #6471

This fix uses the   method that fetches config overrides in ZK instead of the one from the broker configuration.
This way the  method of the pulsar-admin uses the value set for the namespace for auto-topic-creation

(cherry picked from commit 965a80f)
lhotari pushed a commit that referenced this pull request Dec 10, 2021
)

PR #6471 introduced the possibility to set auto topic creation settings at the namespace level
PR #6685 is a fix to take into account the auto topic creation setting when creating a subscription
but it uses the broker configuration and doesn't see the namespace level setting that was introduced in #6471

This fix uses the   method that fetches config overrides in ZK instead of the one from the broker configuration.
This way the  method of the pulsar-admin uses the value set for the namespace for auto-topic-creation

(cherry picked from commit 965a80f)
nicoloboschi pushed a commit to datastax/pulsar that referenced this pull request Dec 10, 2021
…che#12699)

PR apache#6471 introduced the possibility to set auto topic creation settings at the namespace level
PR apache#6685 is a fix to take into account the auto topic creation setting when creating a subscription
but it uses the broker configuration and doesn't see the namespace level setting that was introduced in apache#6471

This fix uses the   method that fetches config overrides in ZK instead of the one from the broker configuration.
This way the  method of the pulsar-admin uses the value set for the namespace for auto-topic-creation

(cherry picked from commit 965a80f)
(cherry picked from commit a034d14)
fxbing pushed a commit to fxbing/pulsar that referenced this pull request Dec 19, 2021
…che#12699)

PR apache#6471 introduced the possibility to set auto topic creation settings at the namespace level
PR apache#6685 is a fix to take into account the auto topic creation setting when creating a subscription
but it uses the broker configuration and doesn't see the namespace level setting that was introduced in apache#6471

This fix uses the   method that fetches config overrides in ZK instead of the one from the broker configuration.
This way the  method of the pulsar-admin uses the value set for the namespace for auto-topic-creation
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.

None yet

4 participants