Skip to content

Commit

Permalink
Fix up.
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekrb19 committed May 21, 2024
1 parent fb018bb commit a51d92a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ private void resolveWaitingFutures()
*/
private boolean shouldAnnounce()
{
return serverTypeConfig.getServerType().isSegmentServer() || !segmentManager.canHandleSegments();
return serverTypeConfig.getServerType().isSegmentServer() || segmentManager.canHandleSegments();
}

private static class BackgroundSegmentAnnouncer implements AutoCloseable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public void writeSegmentInfoToCache(final DataSegment segment)
}

File segmentInfoCacheFile = new File(infoDir, segment.getId().toString());
log.info("Written seg[%s] to [%s]", segment.getId(), segmentInfoCacheFile);
try {
jsonMapper.writeValue(segmentInfoCacheFile, segment);
}
Expand Down

0 comments on commit a51d92a

Please sign in to comment.