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

Handling 0 byte reads in BatchSizeManager #4

Merged
merged 6 commits into from
May 17, 2017

Conversation

shubhrojroy
Copy link
Contributor

No description provided.

@@ -28,11 +29,11 @@ trait CommitterActorStates {

def waitingToRestart: Receive

def becomePreparingToCommitBatch(batch: CastleMessageBatch, metadata: Option[String]): Unit
def becomePreparingToCommitBatch(message: Either[Success,NoMessages], metadata: Option[String]): Unit
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be:
message: Either[CastleMessageBatch, NoMessages]


def preparingToCommitBatch: Receive

def becomeCommittingBatch(userCommitters: IndexedSeq[Committer], batch: CastleMessageBatch, metadata: Option[String]): Unit
def becomeCommittingBatch(userCommitters: IndexedSeq[Committer], message: Either[Success,NoMessages], metadata: Option[String]): Unit
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be:
message: Either[CastleMessageBatch, NoMessages]

}

case success: FetchData.Success =>
becomePreparingToCommitBatch(Left(success), consumerMetadata)
Copy link
Contributor

Choose a reason for hiding this comment

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

becomePreparingToCommitBatch(Left(success.batch), consumerMetadata)



private[committer] trait PreparingToCommitBatch extends CommitterActorBase with CommitterActorStates {
self: Actor with RouterRequestManager with Logging =>

private case class CommitBatch(userCommitters: IndexedSeq[Committer], batch: CastleMessageBatch, metadata: Option[String])
private case class CommitBatch(userCommitters: IndexedSeq[Committer], message: Either[Success, NoMessages], metadata: Option[String])
Copy link
Contributor

Choose a reason for hiding this comment

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

batch: Either[CastleMessageBatch, NoMessages]


override def becomePreparingToCommitBatch(batch: CastleMessageBatch, metadata: Option[String]): Unit = {
override def becomePreparingToCommitBatch(message: Either[Success, NoMessages], metadata: Option[String]): Unit = {
Copy link
Contributor

Choose a reason for hiding this comment

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

message -> batch

version.sbt Outdated
@@ -1 +1 @@
version := "1.0.1"
version := "1.0.2"
Copy link
Contributor

Choose a reason for hiding this comment

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

let's not change the version as part of this commit

@denisgrenader denisgrenader merged commit 3499789 into master May 17, 2017
@denisgrenader denisgrenader deleted the BatchSizeManagerFix branch May 17, 2017 05:35
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