kfaraz commented on PR #16667:
URL: https://github.com/apache/druid/pull/16667#issuecomment-2205060939

   @AmatyaAvadhanula , let's finalize the following structure for the responses 
of the task actions.
   
   `RetrieveUpgradedFromSegmentIdsAction` should return
   
   ```java
   class UpgradedFromSegmentsResponse
   {
         // Map from a segment ID to the segment ID from which it was upgraded
         // There should be no entry in the map for an original non-upgraded 
segment
         private final Map<String, String> upgradedFromSegmentIds;
   }
   ```
   
   `RetrieveUpgradedToSegmentIdsAction` should return
   
   ```java
   class UpgradedToSegmentsResponse
   {
         // Map from a segment ID to a set containing
         // 1. all segment IDs that were upgraded from it AND are still present 
in the metadata store
         // 2. the segment ID itself if and only if it is a non-upgraded 
segment AND is still present in the metadata store
         private final Map<String, Set<String>> upgradedFromSegmentIds;
   }
   ```


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