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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]