Skip to content

Commit

Permalink
Add log within allocateExistingUnassignedShards
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitasr committed Jul 23, 2024
1 parent 387e73a commit c6d42bc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,10 @@ private void allocateExistingUnassignedShards(RoutingAllocation allocation) {
Currently AllocationService will not run any custom Allocator that implements allocateAllUnassignedShards
*/
allocateAllUnassignedShards(allocation);
logger.info(
"[Custom Log] AllocationService, allocateExistingUnassignedShards latency: {} ms",
TimeValue.nsecToMSec(System.nanoTime() - latencyStartTimeInNs)
);
return;
}
logger.warn("Falling back to single shard assignment since batch mode disable or multiple custom allocators set");
Expand Down

0 comments on commit c6d42bc

Please sign in to comment.