mirror of https://github.com/apache/druid.git
Reduce coordinator logs (#17566)
This commit is contained in:
parent
29ab12ccd7
commit
0335bdd90f
|
@ -491,10 +491,9 @@ public class DataSourceCompactibleSegmentIterator implements CompactionSegmentIt
|
||||||
remainingStart = skipInterval.getEnd();
|
remainingStart = skipInterval.getEnd();
|
||||||
} else {
|
} else {
|
||||||
// Ignore this skipInterval
|
// Ignore this skipInterval
|
||||||
log.warn(
|
log.debug(
|
||||||
"skipInterval[%s] is not contained in remainingInterval[%s]",
|
"skipInterval[%s] is not contained in remainingInterval[%s]",
|
||||||
skipInterval,
|
skipInterval, new Interval(remainingStart, remainingEnd)
|
||||||
new Interval(remainingStart, remainingEnd)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,14 +76,10 @@ import java.util.concurrent.atomic.AtomicReference;
|
||||||
public class HttpLoadQueuePeon implements LoadQueuePeon
|
public class HttpLoadQueuePeon implements LoadQueuePeon
|
||||||
{
|
{
|
||||||
public static final TypeReference<List<DataSegmentChangeRequest>> REQUEST_ENTITY_TYPE_REF =
|
public static final TypeReference<List<DataSegmentChangeRequest>> REQUEST_ENTITY_TYPE_REF =
|
||||||
new TypeReference<List<DataSegmentChangeRequest>>()
|
new TypeReference<>() {};
|
||||||
{
|
|
||||||
};
|
|
||||||
|
|
||||||
public static final TypeReference<List<DataSegmentChangeResponse>> RESPONSE_ENTITY_TYPE_REF =
|
public static final TypeReference<List<DataSegmentChangeResponse>> RESPONSE_ENTITY_TYPE_REF =
|
||||||
new TypeReference<List<DataSegmentChangeResponse>>()
|
new TypeReference<>() {};
|
||||||
{
|
|
||||||
};
|
|
||||||
|
|
||||||
private static final EmittingLogger log = new EmittingLogger(HttpLoadQueuePeon.class);
|
private static final EmittingLogger log = new EmittingLogger(HttpLoadQueuePeon.class);
|
||||||
|
|
||||||
|
@ -389,9 +385,10 @@ public class HttpLoadQueuePeon implements LoadQueuePeon
|
||||||
log.info("Stopping load queue peon for server[%s].", serverId);
|
log.info("Stopping load queue peon for server[%s].", serverId);
|
||||||
stopped = true;
|
stopped = true;
|
||||||
|
|
||||||
// Cancel all queued requests
|
if (!queuedSegments.isEmpty()) {
|
||||||
queuedSegments.forEach(holder -> onRequestCompleted(holder, RequestStatus.CANCELLED));
|
queuedSegments.forEach(holder -> onRequestCompleted(holder, RequestStatus.CANCELLED));
|
||||||
log.info("Cancelled [%d] requests queued on server [%s].", queuedSegments.size(), serverId);
|
log.info("Cancelled [%d] requests queued on server[%s].", queuedSegments.size(), serverId);
|
||||||
|
}
|
||||||
|
|
||||||
segmentsToDrop.clear();
|
segmentsToDrop.clear();
|
||||||
segmentsToLoad.clear();
|
segmentsToLoad.clear();
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
package org.apache.druid.server.coordinator.loading;
|
package org.apache.druid.server.coordinator.loading;
|
||||||
|
|
||||||
import com.fasterxml.jackson.core.type.TypeReference;
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
import com.google.common.util.concurrent.Futures;
|
import com.google.common.util.concurrent.Futures;
|
||||||
import com.google.common.util.concurrent.ListenableFuture;
|
import com.google.common.util.concurrent.ListenableFuture;
|
||||||
|
@ -350,9 +349,8 @@ public class HttpLoadQueuePeonTest
|
||||||
httpResponseHandler.handleResponse(httpResponse, null);
|
httpResponseHandler.handleResponse(httpResponse, null);
|
||||||
try {
|
try {
|
||||||
List<DataSegmentChangeRequest> changeRequests = MAPPER.readValue(
|
List<DataSegmentChangeRequest> changeRequests = MAPPER.readValue(
|
||||||
request.getContent().array(), new TypeReference<List<DataSegmentChangeRequest>>()
|
request.getContent().array(),
|
||||||
{
|
HttpLoadQueuePeon.REQUEST_ENTITY_TYPE_REF
|
||||||
}
|
|
||||||
);
|
);
|
||||||
|
|
||||||
List<DataSegmentChangeResponse> statuses = new ArrayList<>(changeRequests.size());
|
List<DataSegmentChangeResponse> statuses = new ArrayList<>(changeRequests.size());
|
||||||
|
|
Loading…
Reference in New Issue