public class IdleVerifyUtility extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IdleVerifyUtility.IdleChecker
Idle checker.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
GRID_NOT_IDLE_MSG
Cluster not idle message.
|
| Modifier and Type | Method and Description |
|---|---|
static @Nullable PartitionHashRecordV2 |
calculatePartitionHash(PartitionKeyV2 partKey,
Object updCntr,
Object consId,
GridDhtPartitionState state,
boolean isPrimary,
long partSize,
GridIterator<CacheDataRow> it) |
static void |
checkPartitionsPageCrcSum(IgniteThrowableSupplier<FilePageStore> pageStoreSup,
int partId,
byte pageType)
Checks CRC sum of pages with
pageType page type stored in partition with partId id
and associated with cache group. |
static void |
checkPartitionsPageCrcSum(IgniteThrowableSupplier<FilePageStore> pageStoreSup,
int partId,
byte pageType,
@Nullable BiConsumer<Long,ByteBuffer> pagePostProcessor)
Checks CRC sum of pages with
pageType page type stored in partition with partId id
and associated with cache group. |
static List<Integer> |
compareUpdateCounters(IgniteEx ign,
Map<Integer,Map<Integer,PartitionUpdateCounter>> cntrsIn,
Integer grpId)
Compares two sets with partitions and upd counters per group distribution.
|
static List<Integer> |
compareUpdateCounters(IgniteEx ign,
Map<Integer,Map<Integer,PartitionUpdateCounter>> cntrsEth,
Map<Integer,Map<Integer,PartitionUpdateCounter>> curCntrs)
Compares two sets with partitions and upd counters per group distribution.
|
static String |
formatUpdateCountersDiff(IgniteEx ig,
List<Integer> diff)
Prints diff between incoming update counters snapshots.
|
static Map<Integer,Map<Integer,PartitionUpdateCounter>> |
getUpdateCountersSnapshot(IgniteEx ign,
Set<Integer> grpIds)
Gather updateCounters info.
|
public static final String GRID_NOT_IDLE_MSG
public static void checkPartitionsPageCrcSum(IgniteThrowableSupplier<FilePageStore> pageStoreSup, int partId, byte pageType)
pageType page type stored in partition with partId id
and associated with cache group.pageStoreSup - Page store supplier.partId - Partition id.pageType - Page type. Possible types PageIdAllocator.FLAG_DATA, PageIdAllocator.FLAG_IDX
and PageIdAllocator.FLAG_AUX.public static void checkPartitionsPageCrcSum(IgniteThrowableSupplier<FilePageStore> pageStoreSup, int partId, byte pageType, @Nullable @Nullable BiConsumer<Long,ByteBuffer> pagePostProcessor)
pageType page type stored in partition with partId id
and associated with cache group.pageStoreSup - Page store supplier.partId - Partition id.pageType - Page type. Possible types PageIdAllocator.FLAG_DATA, PageIdAllocator.FLAG_IDX
and PageIdAllocator.FLAG_AUX.pagePostProcessor - Page post processor closure.public static Map<Integer,Map<Integer,PartitionUpdateCounter>> getUpdateCountersSnapshot(IgniteEx ign, Set<Integer> grpIds)
PartitionUpdateCounter.copy() of update counters.ign - Ignite instance.grpIds - Group Id`s.public static String formatUpdateCountersDiff(IgniteEx ig, List<Integer> diff)
ig - Ignite instance.diff - Compared groups diff.public static List<Integer> compareUpdateCounters(IgniteEx ign, Map<Integer,Map<Integer,PartitionUpdateCounter>> cntrsIn, Integer grpId)
ign - Ignite instance.cntrsIn - Group id`s with counters per partitions per groups distribution.grpId - Group id to compare.public static List<Integer> compareUpdateCounters(IgniteEx ign, Map<Integer,Map<Integer,PartitionUpdateCounter>> cntrsEth, Map<Integer,Map<Integer,PartitionUpdateCounter>> curCntrs)
ign - Ignite instance.cntrsEth - Ethalon group id`s with counters per partitions per groups distribution.curCntrs - Group id`s with counters per partitions per groups distribution compare with.@Nullable public static @Nullable PartitionHashRecordV2 calculatePartitionHash(PartitionKeyV2 partKey, Object updCntr, Object consId, GridDhtPartitionState state, boolean isPrimary, long partSize, GridIterator<CacheDataRow> it) throws IgniteCheckedException
partKey - Partition key.updCntr - Partition update counter prior check.consId - Local node consistent id.state - Partition state to check.isPrimary - true if partition is primary.partSize - Partition size on disk.it - Iterator though partition data rows.IgniteCheckedException - If fails.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023