while (it.hasNextX()) { CacheDataRow row = it.nextX();
while (it.hasNextX()) { CacheDataRow row = it.nextX();
while (it.hasNextX()) { CacheDataRow row = it.nextX();
/** * Removes some entries from H2 trees skipping partition updates. This effectively breaks the index. */ private void breakSqlIndex(Ignite ig, String cacheName) throws Exception { GridQueryProcessor qry = ((IgniteEx)ig).context().query(); GridCacheContext<Object, Object> ctx = ((IgniteEx)ig).cachex(cacheName).context(); GridDhtLocalPartition locPart = ctx.topology().localPartitions().get(0); GridIterator<CacheDataRow> it = ctx.group().offheap().partitionIterator(locPart.id()); for (int i = 0; i < 500; i++) { if (!it.hasNextX()) { System.out.println("Early exit for index corruption, keys processed: " + i); break; } CacheDataRow row = it.nextX(); ctx.shared().database().checkpointReadLock(); try { qry.remove(ctx, row); } finally { ctx.shared().database().checkpointReadUnlock(); } } }
long processedNumber = 0; while (it.hasNextX()) { if (enoughIssues) break;
while (it.hasNextX()) { CacheDataRow row = it.nextX();
while (it.hasNextX()) { CacheDataRow row = it.nextX();
while (it.hasNextX()) { CacheDataRow row = it.nextX();
long processedNumber = 0; while (it.hasNextX()) { if (enoughIssues) break;