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

Refactors the bolts from storm to be independent workers in online. With... #395

Merged
merged 11 commits into from
Dec 5, 2013

Conversation

ianoc
Copy link
Collaborator

@ianoc ianoc commented Dec 4, 2013

... just a base bolt in storm to do the functions there

…ith just a base bolt in storm to do the functions there

}

object InflightTuples {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems like a metrics concept.

// If we incremented on something that was 0 or negative
// And not in a failed state, then this is an error
if((newS.counter - by <= 0) && !newS.failed) {
throw new Exception("Invalid call on an inputstate, we had already decremented to 0 and not failed.")
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this should be in incrBy. It should not allow a faulty transition (or at least, it should be a method on the state, so we don't change states in a fault.

}
}

def fail(fn: (T => Unit)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

similar: def fail(fn: T => U): U = {

@ianoc
Copy link
Collaborator Author

ianoc commented Dec 4, 2013

@johnynek should be all updated per comments

val futWithFail = tick.onFailure { thr =>
responses.put(((List(), Failure(thr))))
}
val fut = handleSuccess(futWithFail)
Copy link
Collaborator

Choose a reason for hiding this comment

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

line 46 - 52 is duplicated on 58 - 63. Can we make one function and call that in both places?

johnynek added a commit that referenced this pull request Dec 5, 2013
Refactors the bolts from storm to be independent workers in online. With...
@johnynek johnynek merged commit 8481330 into develop Dec 5, 2013
@johnynek johnynek deleted the feature/branchE branch December 5, 2013 00:43
snoble pushed a commit to snoble/summingbird that referenced this pull request Sep 8, 2017
twitterGH-388: Fix CMS test issue caused by roundtripping depth->delta->depth
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.

2 participants