Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detangle Kinesis shard stuff from logplex formatter #69

Merged
merged 2 commits into from Apr 27, 2016

Conversation

freeformz
Copy link
Contributor

I don't know why I +1'd the commit that added that.

It's:

  1. racy
  2. mixes kinesis and logplex stuff together un-necessarily

I decided to use a batch level shard counter instead of doing a
package level variable. This won't produce the same results exactly, but
I don't think anyone is really relying on the previous behavior.

I don't know why I +1'd the commit that added that.

It's:

1. racy
2. mixes kinesis and logplex stuff together un-necessarily

I decided to use a batch level shard counter instead of doing a
package level variable. This won't produce the same results exactly, but
I don't think anyone is really relying on the previous behavior.
@freeformz freeformz mentioned this pull request Apr 26, 2016
@freeformz
Copy link
Contributor Author

/cc @heroku/cedar @dpiddy

for i, record := range kf.records {
cs = determineShard(cs, config.KinesisShards)
Copy link
Contributor

Choose a reason for hiding this comment

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

Use kf.shards here? Not sure if it matters.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I decided to just remove shards from KinesisFormatter.

@danp
Copy link
Contributor

danp commented Apr 26, 2016

👍 with one comment

We use a config.KinesisShards in a closure and keep state in a local
variable.
@freeformz freeformz merged commit 48c983b into master Apr 27, 2016
@voidlock voidlock deleted the detangleKinesis branch October 3, 2016 23:05
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.

None yet

2 participants