Skip to content

MINOR: improve Streams error message#5975

Merged
mjsax merged 2 commits intoapache:trunkfrom
mjsax:fix-rockdb-iterator-error-msg
Dec 17, 2018
Merged

MINOR: improve Streams error message#5975
mjsax merged 2 commits intoapache:trunkfrom
mjsax:fix-rockdb-iterator-error-msg

Conversation

@mjsax
Copy link
Copy Markdown
Member

@mjsax mjsax commented Nov 29, 2018

No description provided.

@mjsax mjsax added the streams label Nov 29, 2018
@mjsax
Copy link
Copy Markdown
Member Author

mjsax commented Nov 29, 2018

Found this by chance. Error message seems to be miss leading.

Call for review @guozhangwang @bbejeck @vvcephei

Copy link
Copy Markdown
Contributor

@guozhangwang guozhangwang left a comment

Choose a reason for hiding this comment

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

One nit. Feel free to merge afterwards.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: how about the underlying RocksDB store for this iterator has closed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

open does not indicate if the underlying store is closed or not -- it only indicates if the iterator was closed.

(Of course, if the store gets closed, the iterator will be closed, too, but if open==false we don't know if the store is closed or not.)

@mjsax
Copy link
Copy Markdown
Member Author

mjsax commented Nov 30, 2018

@guozhangwang Added a new log statement.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do we want to log it as WARN?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

For our own code base, this should never happen. For IQ, it's a different story. I though it might be helpful to expose potential bugs in our code base? We can also log at debug level if you prefer.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe we could put this to INFO but change the message slightly to say "This could be an issue for IQ" or something along those lines. Just a thought.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think @guozhangwang would prefer less verbose log level like DEBUG? Not sure.

Like the idea to mention IQ explicitly.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't have a strong opinion on the log level DEBUG is fine with me.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@mjsax I think I'm sold on your arguments, let's keep them as WARN then :)

Copy link
Copy Markdown
Member

@bbejeck bbejeck left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe we could put this to INFO but change the message slightly to say "This could be an issue for IQ" or something along those lines. Just a thought.

Copy link
Copy Markdown
Contributor

@guozhangwang guozhangwang left a comment

Choose a reason for hiding this comment

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

Please feel free to merge.

@mjsax mjsax force-pushed the fix-rockdb-iterator-error-msg branch from 14ed5ab to ce07a4c Compare December 6, 2018 18:59
@mjsax
Copy link
Copy Markdown
Member Author

mjsax commented Dec 6, 2018

Thanks @guozhangwang and @bbejeck

Rebased on trunk to make sure the new stricter checkstyle/spotbugs rules pass. Will merge after green build.

@mjsax
Copy link
Copy Markdown
Member Author

mjsax commented Dec 11, 2018

Retest this please

1 similar comment
@mjsax
Copy link
Copy Markdown
Member Author

mjsax commented Dec 16, 2018

Retest this please

@mjsax mjsax force-pushed the fix-rockdb-iterator-error-msg branch from ce07a4c to b1e7a87 Compare December 16, 2018 15:23
@mjsax mjsax merged commit c441528 into apache:trunk Dec 17, 2018
@mjsax mjsax deleted the fix-rockdb-iterator-error-msg branch December 17, 2018 12:57
pengxiaolong pushed a commit to pengxiaolong/kafka that referenced this pull request Jun 14, 2019
Reviewers: Bill Bejeck <bill@confluent.io>, Guozhang Wang <guozhang@confluent.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants