jon-wei commented on a change in pull request #8870: Additional Kinesis 
resharding fixes
URL: https://github.com/apache/incubator-druid/pull/8870#discussion_r351542596
 
 

 ##########
 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) {
 
 Review comment:
   Added a comment there. I think the check could make sense across all task 
types, but would need more testing, so for this test I'm just limiting it to 
the seekable stream tasks

----------------------------------------------------------------
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]

Reply via email to