You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/03/21 09:22:32 UTC

[GitHub] [pulsar] murong00 commented on a change in pull request #6574: [Issue 5901] Added support to offload all partitions of a partitioned topic

murong00 commented on a change in pull request #6574: [Issue 5901] Added support to offload all partitions of a partitioned topic
URL: https://github.com/apache/pulsar/pull/6574#discussion_r395976976
 
 

 ##########
 File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/v2/PersistentTopics.java
 ##########
 @@ -1046,6 +1047,41 @@ public void triggerOffload(
         internalTriggerOffload(authoritative, messageId);
     }
 
+    @PUT
+    @Path("/{tenant}/{namespace}/{topic}/partitioned-offload")
 
 Review comment:
   I've actually tried to use `offload` whose parameter is `MessageId`, however there seems to be no way to cast `MessageIdImpl` back to an object that contains `Map<partition,MessageIdImpl>` at the moment. Maybe we can get rid of parameter `MessageId` and obtain it within `PersistentTopicsBase.internalTriggerOffload` but it is an API breaking change.

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