Skip to content

Commit

Permalink
Additional coordinator logs to figure out when racey things might be …
Browse files Browse the repository at this point in the history
…happening
  • Loading branch information
fjy committed Apr 30, 2015
1 parent 40121bc commit a7f9bb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Expand Up @@ -507,6 +507,7 @@ private void becomeLeader()
}

log.info("I am the leader of the coordinators, all must bow!");
log.info("Starting coordination in [%s]", config.getCoordinatorStartDelay());
try {
leaderCounter++;
leader = true;
Expand Down
Expand Up @@ -38,6 +38,8 @@ public DruidCoordinatorSegmentInfoLoader(DruidCoordinator coordinator)
@Override
public DruidCoordinatorRuntimeParams run(DruidCoordinatorRuntimeParams params)
{
log.info("Starting coordination. Getting available segments.");

// Display info about all available segments
final Set<DataSegment> availableSegments = coordinator.getOrderedAvailableDataSegments();
if (log.isDebugEnabled()) {
Expand All @@ -47,6 +49,8 @@ public DruidCoordinatorRuntimeParams run(DruidCoordinatorRuntimeParams params)
}
}

log.info("Found [%,d] available segments.", availableSegments.size());

return params.buildFromExisting()
.withAvailableSegments(availableSegments)
.build();
Expand Down

0 comments on commit a7f9bb1

Please sign in to comment.