AmatyaAvadhanula commented on code in PR #16162:
URL: https://github.com/apache/druid/pull/16162#discussion_r1578962586


##########
server/src/main/java/org/apache/druid/segment/realtime/appenderator/StreamAppenderator.java:
##########
@@ -1098,16 +1104,16 @@ SinkSchemaAnnouncer getSinkSchemaAnnouncer()
   /**
    * Unannounces the given base segment and all its upgraded versions.
    */
-  private void unannounceAllVersionsOfSegment(DataSegment baseSegment) throws 
IOException
+  private void unannounceAllVersionsOfSegment(DataSegment baseSegment)
   {
-    segmentAnnouncer.unannounceSegment(baseSegment);
-
-    final Set<SegmentIdWithShardSpec> upgradedVersionsOfSegment
-        = baseSegmentToUpgradedVersions.remove(baseSegment.getId());

Review Comment:
   We would like to have all the upgraded segments of a base segment to be 
present to facilitate queries directed to them such as MSQ task based queries.
   Unannouncement of all these segments happens simultaneously when the sink is 
being dropped.
   I have made a change to the steps in Part 2 of the description of this PR 
accordingly.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to