-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
@@ -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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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]) |
There was a problem hiding this comment.
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 = { |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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
No description provided.