Skip to content

Use InvalidMessageException and add test#2

Merged
dpkp merged 2 commits into
dpkp:decompress_error_codefrom
ijuma:KAFKA-3160-lz4-fixup
May 9, 2016
Merged

Use InvalidMessageException and add test#2
dpkp merged 2 commits into
dpkp:decompress_error_codefrom
ijuma:KAFKA-3160-lz4-fixup

Conversation

@ijuma

@ijuma ijuma commented May 9, 2016

Copy link
Copy Markdown

No description provided.

@gwenshap

gwenshap commented May 9, 2016

Copy link
Copy Markdown

LGTM.
Love the new low-level test methods and love having negative tests.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Just noticed a typo in this method name. Will fix it.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Fixed.

@ijuma ijuma force-pushed the KAFKA-3160-lz4-fixup branch from dedd599 to 7733f28 Compare May 9, 2016 17:17
@dpkp dpkp merged this pull request into dpkp:decompress_error_code May 9, 2016
@junrao

junrao commented May 10, 2016

Copy link
Copy Markdown

The patch LGTM. It's a bit weird that Errors and ErrorMapping map error code 2 to different exception names. Perhaps we can add a comment in InvalidMessageException that when we phase out the old scala clients, we can replace InvalidMessageException with CorruptRecordException.

@ijuma

ijuma commented May 10, 2016

Copy link
Copy Markdown
Author

@junrao We kind of say that already:

* InvalidMessageException extends CorruptRecordException for temporary compatibility with the old Scala clients.

@ijuma

ijuma commented May 10, 2016

Copy link
Copy Markdown
Author

But perhaps that could be made clearer.

@ijuma ijuma deleted the KAFKA-3160-lz4-fixup branch January 3, 2017 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants