Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 20, 2022. It is now read-only.

Conversation

@johnynek
Copy link
Collaborator

The comments summarize this one. But the take away is:

  1. We need to look at even more robust tests, and try to think about what a correctness proof for the plans would look like.

  2. There are still many opportunities to make storm plans with fewer bolts. We should take a look at that as we look to squeeze all the perf we can out of storm.

@johnynek
Copy link
Collaborator Author

@johnynek
Copy link
Collaborator Author

"StormPlatform matches Scala for single step jobs"

Was the test that failed. I don't know if this is one of the cases of noisy storm tests. Can anyone comment if we have some reason to think this is a false alarm?

Copy link
Collaborator

Choose a reason for hiding this comment

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

any reason to prefer sys.error over the new Exception? is there any difference? (just curious)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We used sys.error below, and I thought it would be nice to be consistent. If you ask me, I prefer sys.error when you are really signalling a state that can't be handled. I generally like assert, require, and error over throwing the Java exceptions because they cover the three most common cases I see for exceptions.

Copy link
Collaborator

Choose a reason for hiding this comment

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

is this right? I presume the Set function before was to eliminate dupes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The Set looks really dangerous and I think I put it there because Set1 is a very (in terms of memory) Iterable. I'm afraid down-stream of this we are going to get strange effects with chaining. Let's be direct and just use Iterator here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

do we need to distinct on the key's at that point though?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

also, if we want to eliminate dupes, we should say so in the documentation (and the method name). Eliminating dupes is not part of the mapKeys contract. It is just the keys analog to mapValues.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok thats fine with me if we don't think its in the contract (mapKey's on a map per say would eliminate dupes as part of the operation since it would return a map also).

@ianoc
Copy link
Collaborator

ianoc commented Jun 24, 2014

Other than the last question about mapKeys it LGTM when we get a green build. -- We may need a more concise fix if we are to release a bug fix release on the 0.4.x series with it though.

@johnynek
Copy link
Collaborator Author

@ianoc what about this is not concise enough? I think there are only two logical changes: 1) the actual bug fix and tests. 2) The removal of the dangerous use of Set, which I can't see any really good reason for.

@ianoc
Copy link
Collaborator

ianoc commented Jun 24, 2014

I'm more than happy to merge to develop, but for back porting into a 0.4.x release we are going with absolute minimums. so if we can do this with a 1 line change that the downstream consumers can vet then I'm for doing that in a patch release branch.

ianoc added a commit that referenced this pull request Jun 24, 2014
Fix online plan bug with multiple serial summers and certain no-ops
@ianoc ianoc merged commit 9e687a8 into develop Jun 24, 2014
@ianoc ianoc deleted the oscar-onlineplan branch June 24, 2014 23:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants