You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2019/05/24 00:23:22 UTC
[GitHub] [incubator-pinot] mcvsubbu commented on a change in pull request
#4233: Remove depependency on Kafka stream implementation classes from
pinot-core and pinot-controller tests
mcvsubbu commented on a change in pull request #4233: Remove depependency on Kafka stream implementation classes from pinot-core and pinot-controller tests
URL: https://github.com/apache/incubator-pinot/pull/4233#discussion_r287178667
##########
File path: pinot-core/src/test/java/org/apache/pinot/core/data/manager/realtime/LLRealtimeSegmentDataManagerTest.java
##########
@@ -717,7 +743,7 @@ protected void start() {
protected boolean consumeLoop()
throws Exception {
if (_throwExceptionFromConsume) {
- throw new PermanentConsumerException(Errors.OFFSET_OUT_OF_RANGE.exception());
+ throw new PermanentConsumerException(new Throwable("Offset out of range"));
Review comment:
To add to Neha's comment, the class being tested behaves differently based on whether PermanentConsumerException is thrown or transient one is thrown. It is up to the stream to decide if an exception is permanent or transient. The higher layer has no idea. So we need to wrap.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org