-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Broker] Fix read schema compatibility strategy priority #13938
Merged
codelipenghui
merged 1 commit into
apache:master
from
nodece:fix_schema_compatibility_strategy
Jan 26, 2022
Merged
[Broker] Fix read schema compatibility strategy priority #13938
codelipenghui
merged 1 commit into
apache:master
from
nodece:fix_schema_compatibility_strategy
Jan 26, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi @Jason918, could you take a look this? |
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/AbstractTopic.java
Outdated
Show resolved
Hide resolved
nodece
force-pushed
the
fix_schema_compatibility_strategy
branch
2 times, most recently
from
January 25, 2022 10:56
599c6f6
to
39e7749
Compare
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/SchemasResourceBase.java
Outdated
Show resolved
Hide resolved
...st/java/org/apache/pulsar/broker/admin/AdminApiNamespaceSchemaCompatibilityStrategyTest.java
Outdated
Show resolved
Hide resolved
...r/src/test/java/org/apache/pulsar/schema/compatibility/SchemaTypeCompatibilityCheckTest.java
Show resolved
Hide resolved
github-actions
bot
added
the
doc-required
Your PR changes impact docs and you will update later.
label
Jan 25, 2022
nodece
force-pushed
the
fix_schema_compatibility_strategy
branch
from
January 25, 2022 17:03
39e7749
to
3e76c3e
Compare
nodece
force-pushed
the
fix_schema_compatibility_strategy
branch
3 times, most recently
from
January 26, 2022 02:49
74c508f
to
67719fe
Compare
/pulsarbot rerun-failure-checks |
congbobo184
reviewed
Jan 26, 2022
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/NamespacesBase.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
nodece
force-pushed
the
fix_schema_compatibility_strategy
branch
from
January 26, 2022 04:21
67719fe
to
9282042
Compare
congbobo184
approved these changes
Jan 26, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
codelipenghui
approved these changes
Jan 26, 2022
codelipenghui
pushed a commit
that referenced
this pull request
Jan 27, 2022
Signed-off-by: Zixuan Liu <nodeces@gmail.com> When we defined the `schemaCompatibilityStrategy=ALWAYS_INCOMPATIBLE` in `broker.conf`, and a namespace policies so like: ``` schema_auto_update_compatibility_strategy = SchemaAutoUpdateCompatibilityStrategy.Full schema_compatibility_strategy = null ``` We should get `SchemaCompatibilityStrategy.FULL` by `pulsar-admin namespaces get-schema-compatibility-strategy <ns>`, but got `SchemaCompatibilityStrategy.ALWAYS_INCOMPATIBLE`, this is incorrect response. - Use `null` as `Policies#schema_auto_update_compatibility_strategy` value - Use `FULL` as `schemaCompatibilityStrategy` value in `broker.conf` and update configuration code - Only return `Policies#schema_compatibility_strategy` when get schema compatibility strategy of namespace - Change the read schema compatibility strategy priority (cherry picked from commit c18d645)
codelipenghui
added
cherry-picked/branch-2.8
Archived: 2.8 is end of life
and removed
cherry-picked/branch-2.8
Archived: 2.8 is end of life
labels
Jan 27, 2022
codelipenghui
pushed a commit
that referenced
this pull request
Jan 29, 2022
Signed-off-by: Zixuan Liu <nodeces@gmail.com> ### Motivation When we defined the `schemaCompatibilityStrategy=ALWAYS_INCOMPATIBLE` in `broker.conf`, and a namespace policies so like: ``` schema_auto_update_compatibility_strategy = SchemaAutoUpdateCompatibilityStrategy.Full schema_compatibility_strategy = null ``` We should get `SchemaCompatibilityStrategy.FULL` by `pulsar-admin namespaces get-schema-compatibility-strategy <ns>`, but got `SchemaCompatibilityStrategy.ALWAYS_INCOMPATIBLE`, this is incorrect response. ### Modifications - Use `null` as `Policies#schema_auto_update_compatibility_strategy` value - Use `FULL` as `schemaCompatibilityStrategy` value in `broker.conf` and update configuration code - Only return `Policies#schema_compatibility_strategy` when get schema compatibility strategy of namespace - Change the read schema compatibility strategy priority (cherry picked from commit c18d645)
zymap
pushed a commit
that referenced
this pull request
Jan 30, 2022
Signed-off-by: Zixuan Liu <nodeces@gmail.com> When we defined the `schemaCompatibilityStrategy=ALWAYS_INCOMPATIBLE` in `broker.conf`, and a namespace policies so like: ``` schema_auto_update_compatibility_strategy = SchemaAutoUpdateCompatibilityStrategy.Full schema_compatibility_strategy = null ``` We should get `SchemaCompatibilityStrategy.FULL` by `pulsar-admin namespaces get-schema-compatibility-strategy <ns>`, but got `SchemaCompatibilityStrategy.ALWAYS_INCOMPATIBLE`, this is incorrect response. - Use `null` as `Policies#schema_auto_update_compatibility_strategy` value - Use `FULL` as `schemaCompatibilityStrategy` value in `broker.conf` and update configuration code - Only return `Policies#schema_compatibility_strategy` when get schema compatibility strategy of namespace - Change the read schema compatibility strategy priority (cherry picked from commit c18d645)
@Anonymitaet Done, thanks. |
Anonymitaet
added
doc-complete
Your PR changes impact docs and the related docs have been already added.
and removed
doc-required
Your PR changes impact docs and you will update later.
labels
Feb 7, 2022
1 task
Merged
13 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/broker
cherry-picked/branch-2.8
Archived: 2.8 is end of life
cherry-picked/branch-2.9
Archived: 2.9 is end of life
doc-complete
Your PR changes impact docs and the related docs have been already added.
doc-not-needed
Your PR changes do not impact docs
release/2.8.3
release/2.9.2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Zixuan Liu nodeces@gmail.com
Motivation
When we defined the
schemaCompatibilityStrategy=ALWAYS_INCOMPATIBLE
inbroker.conf
, and a namespace policies so like:We should get
SchemaCompatibilityStrategy.FULL
bypulsar-admin namespaces get-schema-compatibility-strategy <ns>
, but gotSchemaCompatibilityStrategy.ALWAYS_INCOMPATIBLE
, this is incorrect response.Modifications
null
asPolicies#schema_auto_update_compatibility_strategy
valueFULL
asschemaCompatibilityStrategy
value inbroker.conf
and update configuration codePolicies#schema_compatibility_strategy
when get schema compatibility strategy of namespaceVerifying this change
Documentation
doc-required
- [Doc] Add schema configuration to conf file and reference documentation #13983