clintropolis commented on a change in pull request #8870: Additional Kinesis
resharding fixes
URL: https://github.com/apache/incubator-druid/pull/8870#discussion_r351526563
##########
File path:
server/src/main/java/org/apache/druid/segment/realtime/appenderator/BaseAppenderatorDriver.java
##########
@@ -551,10 +551,19 @@ protected AppenderatorDriverAddResult append(
)
{
if (segmentsAndMetadata.getSegments().isEmpty()) {
- log.debug("Nothing to publish, skipping publish step.");
- final SettableFuture<SegmentsAndMetadata> retVal =
SettableFuture.create();
- retVal.set(segmentsAndMetadata);
- return retVal;
+ if (!publisher.supportsEmptyPublish()) {
+ log.info("Nothing to publish, skipping publish step.");
+ final SettableFuture<SegmentsAndMetadata> retVal =
SettableFuture.create();
+ retVal.set(segmentsAndMetadata);
+ return retVal;
+ } else {
+ if (appenderator.getTotalRowCount() != 0) {
+ throw new ISE(
+ "Attemping to publish with empty segment set, but total row
count was not 0: [%s].",
Review comment:
Attemping -> Attempting
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]