-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Kafka 0.10 support #282
Kafka 0.10 support #282
Changes from 2 commits
c03682d
dd92b03
5f20535
f4d006d
d6e3513
2835dd5
73356af
091f205
180ee24
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ libraryDependencies ++= Seq( | |
"org.slf4j" % "log4j-over-slf4j" % "1.7.12", | ||
"com.adrianhurt" %% "play-bootstrap3" % "0.4.5-P24", | ||
"org.clapper" %% "grizzled-slf4j" % "1.0.2", | ||
"org.apache.kafka" %% "kafka" % "0.9.0.1" exclude("log4j","log4j") exclude("org.slf4j", "slf4j-log4j12") force(), | ||
"org.apache.kafka" %% "kafka" % "0.10.0.1" exclude("log4j","log4j") exclude("org.slf4j", "slf4j-log4j12") force(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Surely this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Kafka client is backwards complient with 0.9. Havn't checked for older versions. Tested with a 0.9 cluster. |
||
"com.beachape" %% "enumeratum" % "1.4.4", | ||
"org.scalatest" %% "scalatest" % "2.2.1" % "test", | ||
"org.apache.curator" % "curator-test" % "2.10.0" % "test", | ||
|
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.
Generally wouldn't look for something in a Exception case as it may not exist so maybe the
${clusterContext.config.name}
should be removedThere 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.
It already proved very convenient to me. Why do you want to hide helpful information?
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.
Do not want to hide it, but if you access a variable that doesn't exist in the Exception case then what will catch that exception?
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.
Sorry, but this review isn't helpful.
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.
@whithajess, in general, you have a point that if a variable is undefined in a catch, then there's no point in catching the first exception if we just generate another one anyway. However, in this case
${clusterContext.config.name}
is already used on line 242, and everything is wrapped in a try anyway. This change wouldn't be executed if${clusterContext.config.name}
wasn't defined.