Fixed typo
This commit is contained in:
parent
c1cbb6cf6d
commit
e7e8196f29
1 changed files with 4 additions and 5 deletions
|
|
@ -43,7 +43,6 @@ import software.amazon.kinesis.metrics.MetricsFactory;
|
||||||
import software.amazon.kinesis.metrics.MetricsLevel;
|
import software.amazon.kinesis.metrics.MetricsLevel;
|
||||||
import software.amazon.kinesis.metrics.MetricsScope;
|
import software.amazon.kinesis.metrics.MetricsScope;
|
||||||
import software.amazon.kinesis.metrics.MetricsUtil;
|
import software.amazon.kinesis.metrics.MetricsUtil;
|
||||||
import software.amazon.kinesis.metrics.NullMetricsScope;
|
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.math.BigInteger;
|
import java.math.BigInteger;
|
||||||
|
|
@ -53,7 +52,6 @@ import java.util.Comparator;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.Executors;
|
import java.util.concurrent.Executors;
|
||||||
|
|
@ -77,7 +75,7 @@ class PeriodicShardSyncManager {
|
||||||
static final BigInteger MIN_HASH_KEY = BigInteger.ZERO;
|
static final BigInteger MIN_HASH_KEY = BigInteger.ZERO;
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
static final BigInteger MAX_HASH_KEY = new BigInteger("2").pow(128).subtract(BigInteger.ONE);
|
static final BigInteger MAX_HASH_KEY = new BigInteger("2").pow(128).subtract(BigInteger.ONE);
|
||||||
static final String PERODIC_SHARD_SYNC_MANAGER = "PeriodicShardSyncManager";
|
static final String PERIODIC_SHARD_SYNC_MANAGER = "PeriodicShardSyncManager";
|
||||||
private Map<StreamIdentifier, HashRangeHoleTracker> hashRangeHoleTrackerMap = new HashMap<>();
|
private Map<StreamIdentifier, HashRangeHoleTracker> hashRangeHoleTrackerMap = new HashMap<>();
|
||||||
|
|
||||||
private final String workerId;
|
private final String workerId;
|
||||||
|
|
@ -175,7 +173,8 @@ class PeriodicShardSyncManager {
|
||||||
if (leaderDecider.isLeader(workerId)) {
|
if (leaderDecider.isLeader(workerId)) {
|
||||||
log.info(String.format("WorkerId %s is leader, running the periodic shard sync task", workerId));
|
log.info(String.format("WorkerId %s is leader, running the periodic shard sync task", workerId));
|
||||||
|
|
||||||
final MetricsScope scope = MetricsUtil.createMetricsWithOperation(metricsFactory, PERODIC_SHARD_SYNC_MANAGER);
|
final MetricsScope scope = MetricsUtil.createMetricsWithOperation(metricsFactory,
|
||||||
|
PERIODIC_SHARD_SYNC_MANAGER);
|
||||||
int numStreamsWithPartialLeases = 0;
|
int numStreamsWithPartialLeases = 0;
|
||||||
int numStreamsToSync = 0;
|
int numStreamsToSync = 0;
|
||||||
boolean isRunSuccess = false;
|
boolean isRunSuccess = false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue