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 2022/08/15 02:53:03 UTC

[GitHub] [pulsar] Technoboy- commented on issue #17086: [Bug] [Broker]Topic level Offload policies set failed when use method pusarAdmin.topicPolicies().setOffloadPolicies()

Technoboy- commented on issue #17086:
URL: https://github.com/apache/pulsar/issues/17086#issuecomment-1214557955

   Ah, we find that there is a bug here :
   ```
   if (metadata.partitions > 0) {
                       List<CompletableFuture<Void>> futures = new ArrayList<>(metadata.partitions);
                       for (int i = 0; i < metadata.partitions; i++) {
                           futures.add(internalUpdateOffloadPolicies(offloadPolicies, topicName.getPartition(i)));
                       }
                       return FutureUtil.waitForAll(futures);
                   } else {
                       return internalUpdateOffloadPolicies(offloadPolicies, topicName);
                   }
   ```
   We don't need to update all the partitions, only partition-0 is needed.  
   Could you push a fix for this ?


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org