mirror of https://github.com/apache/druid.git
1) Better logging of master doing version checking
2) Exception out when the scv cannot find its indexer
This commit is contained in:
parent
2bd34f1454
commit
4c165b4880
|
@ -3,6 +3,7 @@ package com.metamx.druid.merger.common.actions;
|
|||
import com.fasterxml.jackson.core.type.TypeReference;
|
||||
import com.google.common.base.Charsets;
|
||||
import com.google.common.base.Throwables;
|
||||
import com.metamx.common.ISE;
|
||||
import com.metamx.common.logger.Logger;
|
||||
import com.metamx.druid.merger.common.task.Task;
|
||||
import com.metamx.http.client.HttpClient;
|
||||
|
@ -63,6 +64,10 @@ public class RemoteTaskActionClient implements TaskActionClient
|
|||
final int port;
|
||||
final String path = "/mmx/merger/v1/action";
|
||||
|
||||
if (instance == null) {
|
||||
throw new ISE("Cannot find instance of indexer to talk to!");
|
||||
}
|
||||
|
||||
host = instance.getAddress();
|
||||
|
||||
if (instance.getSslPort() != null && instance.getSslPort() > 0) {
|
||||
|
|
|
@ -526,6 +526,7 @@ public class DruidMaster
|
|||
final Integer binaryVersion = dataSegment.getBinaryVersion();
|
||||
|
||||
if (binaryVersion == null || binaryVersion < IndexIO.CURRENT_VERSION_ID) {
|
||||
log.info("Upgrading version on segment[%s]", dataSegment.getIdentifier());
|
||||
indexingServiceClient.upgradeSegment(dataSegment);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue