mirror of https://github.com/apache/druid.git
Reduce excessive logging (#4680)
* Reduce excessive logging * Refactoring code as per comments
This commit is contained in:
parent
ab28dc3b97
commit
dba7c7d3cd
|
@ -193,7 +193,16 @@ public class LoadQueuePeon
|
||||||
|
|
||||||
private void processSegmentChangeRequest()
|
private void processSegmentChangeRequest()
|
||||||
{
|
{
|
||||||
if (currentlyProcessing == null) {
|
if (currentlyProcessing != null) {
|
||||||
|
log.debug(
|
||||||
|
"Server[%s] skipping processSegmentChangeRequest because something is currently loading[%s].",
|
||||||
|
basePath,
|
||||||
|
currentlyProcessing.getSegmentIdentifier()
|
||||||
|
);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!segmentsToDrop.isEmpty()) {
|
if (!segmentsToDrop.isEmpty()) {
|
||||||
currentlyProcessing = segmentsToDrop.firstEntry().getValue();
|
currentlyProcessing = segmentsToDrop.firstEntry().getValue();
|
||||||
log.info("Server[%s] dropping [%s]", basePath, currentlyProcessing.getSegmentIdentifier());
|
log.info("Server[%s] dropping [%s]", basePath, currentlyProcessing.getSegmentIdentifier());
|
||||||
|
@ -280,13 +289,6 @@ public class LoadQueuePeon
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
failAssign(e);
|
failAssign(e);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
log.info(
|
|
||||||
"Server[%s] skipping doNext() because something is currently loading[%s].",
|
|
||||||
basePath,
|
|
||||||
currentlyProcessing.getSegmentIdentifier()
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void actionCompleted()
|
private void actionCompleted()
|
||||||
|
|
Loading…
Reference in New Issue