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

[Improve] simplify sink schema check #121

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

nlu90
Copy link
Collaborator

@nlu90 nlu90 commented Mar 31, 2023

(If this PR fixes a github issue, please add Fixes #<xyz>.)

Fixes #114

(or if this PR is one task of a github issue, please add Master Issue: #<xyz> to link to the master issue.)

Master Issue: #113

Motivation

The sink will do schema uploading and compatibility check, which can be achieved with the pulsar producer.
When creating the producer, if the topic doesn't exist or topic doesn't have schema, then the schema passed will be uploaded.
If the topic has an existing schema, and it's not compatible with the one used in spark application, an PulsarClientException.IncompatibileSchema exception will be thrown.

Modifications

  1. remove schema uploading via admin
  2. stop checking schema compatibility

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Documentation

Check the box below.

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

@nlu90 nlu90 requested a review from a team as a code owner March 31, 2023 20:33
@nlu90 nlu90 self-assigned this Mar 31, 2023
@nlu90 nlu90 changed the title simplify sink schema check [Improve] simplify sink schema check Mar 31, 2023
@github-actions github-actions bot added the no-need-doc This pr does not need any document label Mar 31, 2023
@nlu90 nlu90 added this to the 2023-04 v3.2.0.2 milestone Mar 31, 2023
@nlu90 nlu90 merged commit bfa7586 into master Apr 3, 2023
3 of 4 checks passed
@delete-merged-branch delete-merged-branch bot deleted the neng/simplify-sink-schema-check branch April 3, 2023 16:49
nlu90 added a commit that referenced this pull request Apr 3, 2023
nlu90 added a commit that referenced this pull request Apr 7, 2023
* Revert "Expose some monitor metrics (#106)"

This reverts commit d7d955c.

* Reader need closed when exception (#115)

* fix: Reader did not closed when an exception occurred in readNext

* fix: Reader did not closed when an exception occurred in readNext

* [Improve] replace admin calls with client or consumer calls in PulsarHelper (#118)

* introduce pulsar consumer for pulsar management

* use consumer cache

* lint error

* remove admin url from source related components (#120)

* simplify sink schema check (#121)

---------

Co-authored-by: obobj <vinicolor.violet.end@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-need-doc This pr does not need any document
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Error: Writing to a topic which have incompatible schema - even with same Schema Type Pulsar.STRING
3 participants