Skip to content

[fix] [admin] set offload threshold should fail if ns policies is read-only#19383

Merged
lhotari merged 3 commits intoapache:masterfrom
poorbarcode:fix/read_only_ns_policy
Feb 2, 2023
Merged

[fix] [admin] set offload threshold should fail if ns policies is read-only#19383
lhotari merged 3 commits intoapache:masterfrom
poorbarcode:fix/read_only_ns_policy

Conversation

@poorbarcode
Copy link
Contributor

@poorbarcode poorbarcode commented Feb 1, 2023

Motivation

#19370 (comment) Thanks @lhotari for helping to check

Admin API set offload threshold should fail if namespace policies are read-only.

Modifications

solve the wrong logic and add test.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Feb 1, 2023
@poorbarcode poorbarcode changed the title [fix] [admin] set offload threshold should fail when ns policies is read-only [fix] [admin] set offload threshold should fail if ns policies is read-only Feb 1, 2023
// ignore.
}
// cleanup.
pulsar.getConfigurationMetadataStore().delete(NamespaceResources.POLICIES_READONLY_FLAG_PATH,
Copy link
Contributor

Choose a reason for hiding this comment

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

this must be done in a finally block otherwise, If the test fails, the current state is not cleaned

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Already fixed. Thanks

@lhotari
Copy link
Member

lhotari commented Feb 1, 2023

/pulsarbot rerun-failure-checks

@poorbarcode
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@lhotari lhotari merged commit add792b into apache:master Feb 2, 2023
@Technoboy- Technoboy- added this to the 3.0.0 milestone Feb 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants