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

Skip abnormaly small messages in AvroConfluent format #13941

Conversation

gervarela
Copy link

@gervarela gervarela commented Aug 21, 2020

This PR fixes the issue #13710

When using Kafka table engine and AvroConfluent input format, gracefully skip malformed message that do not comply with the minumum requirements of AvroConfluent format and thus, do not include at least the 'magic byte' number and the 'schema identifier'.

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Corrected an error in AvroConfluent format that caused the Kafka table engine to stop processing messages when an abnormally small, malformed, message was received.

Detailed description / Documentation draft:

When using Kafka table engine and AvroConfluent input format, gracefully skip malformed message that do not comply with the minumum requirements of AvroConfluent format and thus, do not include at least the 'magic byte' number and the 'schema identifier'.

… least the AvroConfluent magic number and the schema id definition.
@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Aug 21, 2020
@robot-clickhouse robot-clickhouse added pr-improvement Pull request with some product improvements and removed pr-bugfix Pull request with bugfix, not backported by default labels Aug 25, 2020
@alexey-milovidov alexey-milovidov self-assigned this Aug 25, 2020
@alexey-milovidov
Copy link
Member

There are no tests for this change. But as the change is minor, it's passable.
Also changed "bugfix" to "improvement" because there were no bugs.

@alexey-milovidov
Copy link
Member

Integration tests (release) — fail: 1, passed: 778, error: 0

Not enough timeout in operations because our CI environment is too chaotic. #14117

@alexey-milovidov
Copy link
Member

AST fuzzer has found a new issue: #14118

@alexey-milovidov alexey-milovidov merged commit 65ee7dc into ClickHouse:master Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-improvement Pull request with some product improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants