Merge branch 'master' into feature/seq_no
This commit is contained in:
commit
1e67ef85c6
|
@ -125,9 +125,6 @@ if (projectsPrefix.isEmpty()) {
|
||||||
vcs = 'Git'
|
vcs = 'Git'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tasks.cleanIdea {
|
|
||||||
delete '.idea'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// eclipse configuration
|
// eclipse configuration
|
||||||
|
|
|
@ -106,7 +106,7 @@ public class UnassignedInfo implements ToXContent, Writeable<UnassignedInfo> {
|
||||||
private final Reason reason;
|
private final Reason reason;
|
||||||
private final long unassignedTimeMillis; // used for display and log messages, in milliseconds
|
private final long unassignedTimeMillis; // used for display and log messages, in milliseconds
|
||||||
private final long unassignedTimeNanos; // in nanoseconds, used to calculate delay for delayed shard allocation
|
private final long unassignedTimeNanos; // in nanoseconds, used to calculate delay for delayed shard allocation
|
||||||
private long lastComputedLeftDelayNanos = 0l; // how long to delay shard allocation, not serialized (always positive, 0 means no delay)
|
private volatile long lastComputedLeftDelayNanos = 0l; // how long to delay shard allocation, not serialized (always positive, 0 means no delay)
|
||||||
private final String message;
|
private final String message;
|
||||||
private final Throwable failure;
|
private final Throwable failure;
|
||||||
|
|
||||||
|
|
|
@ -196,7 +196,7 @@ public abstract class ReplicaShardAllocator extends AbstractComponent {
|
||||||
// calculate delay and store it in UnassignedInfo to be used by RoutingService
|
// calculate delay and store it in UnassignedInfo to be used by RoutingService
|
||||||
long delay = shard.unassignedInfo().updateDelay(timeNowNanos, settings, indexMetaData.getSettings());
|
long delay = shard.unassignedInfo().updateDelay(timeNowNanos, settings, indexMetaData.getSettings());
|
||||||
if (delay > 0) {
|
if (delay > 0) {
|
||||||
logger.debug("[{}][{}]: delaying allocation of [{}] for [{}]", shard.index(), shard.id(), shard, TimeValue.timeValueMillis(delay));
|
logger.debug("[{}][{}]: delaying allocation of [{}] for [{}]", shard.index(), shard.id(), shard, TimeValue.timeValueNanos(delay));
|
||||||
/**
|
/**
|
||||||
* mark it as changed, since we want to kick a publishing to schedule future allocation,
|
* mark it as changed, since we want to kick a publishing to schedule future allocation,
|
||||||
* see {@link org.elasticsearch.cluster.routing.RoutingService#clusterChanged(ClusterChangedEvent)}).
|
* see {@link org.elasticsearch.cluster.routing.RoutingService#clusterChanged(ClusterChangedEvent)}).
|
||||||
|
|
Loading…
Reference in New Issue