Skip to content

Conversation

@kl0u
Copy link
Contributor

@kl0u kl0u commented May 11, 2017

There are two commits that address both FLINK-6536 and FLINK-6255.

R @aljoscha

Copy link
Contributor

@aljoscha aljoscha left a comment

Choose a reason for hiding this comment

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

LGTM once Travis says it's green! 👍

previousTimestamp + ". This can indicate that the element belonging to the previous " +
"relation has been already pruned, even though you expect it to be still there.");
previousTimestamp + ". This can indicate that either you did not implement " +
"the equals() and hashCode() methods, of your input elements properly or that " +
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the comma is superfluous.

"relation has been already pruned, even though you expect it to be still there.");
previousTimestamp + ". This can indicate that either you did not implement " +
"the equals() and hashCode() methods of your input elements properly or that " +
"the element belonging to that entry has been already pruned.");
Copy link
Contributor

Choose a reason for hiding this comment

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

Been thinking about this exception message and those two reasons for the exception come from "two different worlds".

  1. if element has been pruned - from user perspective this means some error in CEP library occured and the user can not do much about it.
  2. the equals() and hashCode() are obvious user mistakes.

Not sure if we should do sth with it, but just wanted to express my thoughts on it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right @dawidwys but I think that now the message makes clear that you should always implement equals() and hashCode(). So far it was only in the docs.

@kl0u
Copy link
Contributor Author

kl0u commented May 17, 2017

Merged.

@kl0u kl0u closed this May 17, 2017
@kl0u kl0u deleted the cep-misc branch February 13, 2018 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants