Search in sources :

Example 46 with MetricRegistry

use of org.apache.ignite.internal.processors.metric.MetricRegistry in project ignite by apache.

the class NodeSslConnectionMetricTest method testClientConnector.

/**
 * Tests SSL metrics produced by thin client connection.
 */
@Test
public void testClientConnector() throws Exception {
    MetricRegistry reg = mreg(startClusterNode(0), CLIENT_CONNECTOR_METRICS);
    assertEquals(0, reg.<LongMetric>findMetric(SENT_BYTES_METRIC_NAME).value());
    assertEquals(0, reg.<LongMetric>findMetric(RECEIVED_BYTES_METRIC_NAME).value());
    try (IgniteClient ignored = startClient(clientConfiguration("thinClient", "trusttwo", CIPHER_SUITE, "TLSv1.2"))) {
        checkSslCommunicationMetrics(reg, 1, 1, 0);
    }
    assertTrue(reg.<LongMetric>findMetric(SENT_BYTES_METRIC_NAME).value() > 0);
    assertTrue(reg.<LongMetric>findMetric(RECEIVED_BYTES_METRIC_NAME).value() > 0);
    checkSslCommunicationMetrics(reg, 1, 0, 0);
    // Tests untrusted certificate.
    assertThrowsWithCause(() -> startClient(clientConfiguration("client", "trustboth", CIPHER_SUITE, "TLSv1.2")), ClientConnectionException.class);
    checkSslCommunicationMetrics(reg, 2, 0, 1);
    // Tests unsupported cipher suites.
    assertThrowsWithCause(() -> startClient(clientConfiguration("thinClient", "trusttwo", UNSUPPORTED_CIPHER_SUITE, "TLSv1.2")), ClientConnectionException.class);
    checkSslCommunicationMetrics(reg, 3, 0, 2);
    // Tests mismatched protocol versions.
    assertThrowsWithCause(() -> startClient(clientConfiguration("thinClient", "trusttwo", null, "TLSv1.1")), ClientConnectionException.class);
    checkSslCommunicationMetrics(reg, 4, 0, 3);
}
Also used : IgniteClient(org.apache.ignite.client.IgniteClient) MetricRegistry(org.apache.ignite.internal.processors.metric.MetricRegistry) LongMetric(org.apache.ignite.spi.metric.LongMetric) GridCommonAbstractTest(org.apache.ignite.testframework.junits.common.GridCommonAbstractTest) Test(org.junit.Test)

Example 47 with MetricRegistry

use of org.apache.ignite.internal.processors.metric.MetricRegistry in project ignite by apache.

the class NodeSslConnectionMetricTest method testRestClientConnector.

/**
 * Tests SSL metrics produced by REST TCP client connection.
 */
@Test
public void testRestClientConnector() throws Exception {
    MetricRegistry reg = mreg(startClusterNode(0), REST_CONNECTOR_METRIC_REGISTRY_NAME);
    assertEquals(0, reg.<LongMetric>findMetric(SENT_BYTES_METRIC_NAME).value());
    assertEquals(0, reg.<LongMetric>findMetric(RECEIVED_BYTES_METRIC_NAME).value());
    try (GridClient ignored = start(gridClientConfiguration("connectorClient", "trustthree", CIPHER_SUITE, "TLSv1.2"))) {
        checkSslCommunicationMetrics(reg, 1, 1, 0);
    }
    assertTrue(reg.<LongMetric>findMetric(SENT_BYTES_METRIC_NAME).value() > 0);
    assertTrue(reg.<LongMetric>findMetric(RECEIVED_BYTES_METRIC_NAME).value() > 0);
    checkSslCommunicationMetrics(reg, 1, 0, 0);
    // Tests untrusted certificate.
    try (GridClient ignored = start(gridClientConfiguration("client", "trustthree", CIPHER_SUITE, "TLSv1.2"))) {
    // GridClient makes 2 additional silent connection attempts if an SSL error occurs.
    }
    checkSslCommunicationMetrics(reg, 4, 0, 3);
    // Tests unsupported cipher suite.
    try (GridClient ignored = start(gridClientConfiguration("connectorClient", "trustthree", UNSUPPORTED_CIPHER_SUITE, "TLSv1.2"))) {
    // GridClient makes 2 additional silent connection attempts if an SSL error occurs.
    }
    checkSslCommunicationMetrics(reg, 7, 0, 6);
    // Tests mismatched protocol versions.
    try (GridClient ignored = start(gridClientConfiguration("connectorClient", "trustthree", null, "TLSv1.1"))) {
    // GridClient makes 2 additional  silent connection attempts if an SSL error occurs.
    }
    checkSslCommunicationMetrics(reg, 10, 0, 9);
}
Also used : MetricRegistry(org.apache.ignite.internal.processors.metric.MetricRegistry) LongMetric(org.apache.ignite.spi.metric.LongMetric) GridClient(org.apache.ignite.internal.client.GridClient) GridCommonAbstractTest(org.apache.ignite.testframework.junits.common.GridCommonAbstractTest) Test(org.junit.Test)

Example 48 with MetricRegistry

use of org.apache.ignite.internal.processors.metric.MetricRegistry in project ignite by apache.

the class DiskPageCompressionIntegrationTest method doTestPageCompression.

/**
 * @throws Exception If failed.
 */
@Override
protected void doTestPageCompression() throws Exception {
    IgniteEx ignite = startGrid(0);
    ignite.cluster().active(true);
    String cacheName = "test";
    CacheConfiguration<Integer, TestVal> ccfg = new CacheConfiguration<Integer, TestVal>().setName(cacheName).setBackups(0).setAtomicityMode(ATOMIC).setIndexedTypes(Integer.class, TestVal.class).setDiskPageCompression(compression).setDiskPageCompressionLevel(compressionLevel);
    IgniteCache<Integer, TestVal> cache = ignite.getOrCreateCache(ccfg);
    int cnt = 2_000;
    for (int i = 0; i < cnt; i++) assertTrue(cache.putIfAbsent(i, new TestVal(i)));
    for (int i = 0; i < cnt; i += 2) assertEquals(new TestVal(i), cache.getAndRemove(i));
    GridCacheDatabaseSharedManager dbMgr = ((GridCacheDatabaseSharedManager) ignite.context().cache().context().database());
    dbMgr.forceCheckpoint("test compression").futureFor(FINISHED).get();
    FilePageStoreManager storeMgr = dbMgr.getFileStoreManager();
    checkFileIOFactory(storeMgr.getPageStoreFileIoFactory());
    // Wait for metrics update.
    Thread.sleep(100);
    long storeSize = ignite.dataStorageMetrics().getStorageSize();
    long sparseStoreSize = ignite.dataStorageMetrics().getSparseStorageSize();
    assertTrue("storeSize: " + storeSize, storeSize > 0);
    if (U.isLinux()) {
        assertTrue("sparseSize: " + sparseStoreSize, sparseStoreSize > 0);
        assertTrue(storeSize + " > " + sparseStoreSize, storeSize > sparseStoreSize);
    } else
        assertTrue(sparseStoreSize < 0);
    GridCacheContext<?, ?> cctx = ignite.cachex(cacheName).context();
    int cacheId = cctx.cacheId();
    int groupId = cctx.groupId();
    assertEquals(cacheId, groupId);
    MetricRegistry mreg = ignite.context().metric().registry(metricName(CACHE_GROUP_METRICS_PREFIX, cctx.group().cacheOrGroupName()));
    storeSize = mreg.<LongMetric>findMetric("StorageSize").value();
    sparseStoreSize = mreg.<LongMetric>findMetric("SparseStorageSize").value();
    assertTrue("storeSize: " + storeSize, storeSize > 0);
    if (U.isLinux()) {
        assertTrue("sparseSize: " + sparseStoreSize, sparseStoreSize > 0);
        assertTrue(storeSize + " > " + sparseStoreSize, storeSize > sparseStoreSize);
    } else
        assertTrue(sparseStoreSize < 0);
    int parts = cctx.affinity().partitions();
    for (int i = 0; i < parts; i++) {
        PageStore store = storeMgr.getStore(cacheId, i);
        long realSize = store.size();
        long virtualSize = store.getPageSize() * store.pages();
        long sparseSize = store.getSparseSize();
        assertTrue(virtualSize > 0);
        error("virt: " + virtualSize + ",  real: " + realSize + ",  sparse: " + sparseSize);
        if (!store.exists())
            continue;
        if (virtualSize > sparseSize)
            return;
    }
    fail("No files were compacted.");
}
Also used : GridCacheDatabaseSharedManager(org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager) MetricRegistry(org.apache.ignite.internal.processors.metric.MetricRegistry) PageStore(org.apache.ignite.internal.pagemem.store.PageStore) FilePageStoreManager(org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager) LongMetric(org.apache.ignite.spi.metric.LongMetric) IgniteEx(org.apache.ignite.internal.IgniteEx) CacheConfiguration(org.apache.ignite.configuration.CacheConfiguration)

Example 49 with MetricRegistry

use of org.apache.ignite.internal.processors.metric.MetricRegistry in project ignite by apache.

the class GridIoManager method start.

/**
 * {@inheritDoc}
 */
@Override
public void start() throws IgniteCheckedException {
    ctx.addNodeAttribute(DIRECT_PROTO_VER_ATTR, DIRECT_PROTO_VER);
    MessageFormatter[] formatterExt = ctx.plugins().extensions(MessageFormatter.class);
    if (formatterExt != null && formatterExt.length > 0) {
        if (formatterExt.length > 1)
            throw new IgniteCheckedException("More than one MessageFormatter extension is defined. Check your " + "plugins configuration and make sure that only one of them provides custom message format.");
        formatter = formatterExt[0];
    } else {
        formatter = new MessageFormatter() {

            @Override
            public MessageWriter writer(UUID rmtNodeId) throws IgniteCheckedException {
                assert rmtNodeId != null;
                return new DirectMessageWriter(U.directProtocolVersion(ctx, rmtNodeId));
            }

            @Override
            public MessageReader reader(UUID rmtNodeId, MessageFactory msgFactory) throws IgniteCheckedException {
                return new DirectMessageReader(msgFactory, rmtNodeId != null ? U.directProtocolVersion(ctx, rmtNodeId) : DIRECT_PROTO_VER);
            }
        };
    }
    MessageFactory[] msgs = ctx.plugins().extensions(MessageFactory.class);
    if (msgs == null)
        msgs = EMPTY;
    List<MessageFactory> compMsgs = new ArrayList<>();
    compMsgs.add(new GridIoMessageFactory());
    for (IgniteComponentType compType : IgniteComponentType.values()) {
        MessageFactory f = compType.messageFactory();
        if (f != null)
            compMsgs.add(f);
    }
    if (!compMsgs.isEmpty())
        msgs = F.concat(msgs, compMsgs.toArray(new MessageFactory[compMsgs.size()]));
    msgFactory = new IgniteMessageFactoryImpl(msgs);
    CommunicationSpi<Serializable> spi = getSpi();
    if ((CommunicationSpi<?>) spi instanceof TcpCommunicationSpi)
        getTcpCommunicationSpi().setConnectionRequestor(invConnHandler);
    startSpi();
    MetricRegistry ioMetric = ctx.metric().registry(COMM_METRICS);
    ioMetric.register(OUTBOUND_MSG_QUEUE_CNT, spi::getOutboundMessagesQueueSize, "Outbound messages queue size.");
    ioMetric.register(SENT_MSG_CNT, spi::getSentMessagesCount, "Sent messages count.");
    ioMetric.register(SENT_BYTES_CNT, spi::getSentBytesCount, "Sent bytes count.");
    ioMetric.register(RCVD_MSGS_CNT, spi::getReceivedMessagesCount, "Received messages count.");
    ioMetric.register(RCVD_BYTES_CNT, spi::getReceivedBytesCount, "Received bytes count.");
    getSpi().setListener(commLsnr = new CommunicationListenerEx<Serializable>() {

        @Override
        public void onMessage(UUID nodeId, Serializable msg, IgniteRunnable msgC) {
            try {
                onMessage0(nodeId, (GridIoMessage) msg, msgC);
            } catch (ClassCastException ignored) {
                U.error(log, "Communication manager received message of unknown type (will ignore): " + msg.getClass().getName() + ". Most likely GridCommunicationSpi is being used directly, " + "which is illegal - make sure to send messages only via GridProjection API.");
            }
        }

        @Override
        public void onDisconnected(UUID nodeId) {
            for (GridDisconnectListener lsnr : disconnectLsnrs) lsnr.onNodeDisconnected(nodeId);
        }

        @Override
        public void onChannelOpened(UUID rmtNodeId, Serializable initMsg, Channel channel) {
            try {
                onChannelOpened0(rmtNodeId, (GridIoMessage) initMsg, channel);
            } catch (ClassCastException ignored) {
                U.error(log, "Communication manager received message of unknown type (will ignore): " + initMsg.getClass().getName() + ". Most likely GridCommunicationSpi is being used directly, " + "which is illegal - make sure to send messages only via GridProjection API.");
            }
        }
    });
    if (log.isDebugEnabled())
        log.debug(startInfo());
    addMessageListener(GridTopic.TOPIC_IO_TEST, new GridMessageListener() {

        @Override
        public void onMessage(UUID nodeId, Object msg, byte plc) {
            ClusterNode node = ctx.discovery().node(nodeId);
            if (node == null)
                return;
            IgniteIoTestMessage msg0 = (IgniteIoTestMessage) msg;
            msg0.senderNodeId(nodeId);
            if (msg0.request()) {
                IgniteIoTestMessage res = new IgniteIoTestMessage(msg0.id(), false, null);
                res.flags(msg0.flags());
                res.onRequestProcessed();
                res.copyDataFromRequest(msg0);
                try {
                    sendToGridTopic(node, GridTopic.TOPIC_IO_TEST, res, GridIoPolicy.SYSTEM_POOL);
                } catch (IgniteCheckedException e) {
                    U.error(log, "Failed to send IO test response [msg=" + msg0 + "]", e);
                }
            } else {
                IoTestFuture fut = ioTestMap().get(msg0.id());
                msg0.onResponseProcessed();
                if (fut == null)
                    U.warn(log, "Failed to find IO test future [msg=" + msg0 + ']');
                else
                    fut.onResponse(msg0);
            }
        }
    });
}
Also used : Serializable(java.io.Serializable) DirectMessageReader(org.apache.ignite.internal.direct.DirectMessageReader) ArrayList(java.util.ArrayList) DirectMessageReader(org.apache.ignite.internal.direct.DirectMessageReader) MessageReader(org.apache.ignite.plugin.extensions.communication.MessageReader) MessageFormatter(org.apache.ignite.plugin.extensions.communication.MessageFormatter) TcpCommunicationSpi(org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi) IgniteRunnable(org.apache.ignite.lang.IgniteRunnable) IgniteCheckedException(org.apache.ignite.IgniteCheckedException) IgniteComponentType(org.apache.ignite.internal.IgniteComponentType) UUID(java.util.UUID) ClusterNode(org.apache.ignite.cluster.ClusterNode) CommunicationListenerEx(org.apache.ignite.spi.communication.tcp.internal.CommunicationListenerEx) MessageFactory(org.apache.ignite.plugin.extensions.communication.MessageFactory) MetricRegistry(org.apache.ignite.internal.processors.metric.MetricRegistry) Channel(java.nio.channels.Channel) WritableByteChannel(java.nio.channels.WritableByteChannel) SocketChannel(java.nio.channels.SocketChannel) ReadableByteChannel(java.nio.channels.ReadableByteChannel) FileChannel(java.nio.channels.FileChannel) DirectMessageWriter(org.apache.ignite.internal.direct.DirectMessageWriter) DirectMessageWriter(org.apache.ignite.internal.direct.DirectMessageWriter) MessageWriter(org.apache.ignite.plugin.extensions.communication.MessageWriter) GridTimeoutObject(org.apache.ignite.internal.processors.timeout.GridTimeoutObject)

Example 50 with MetricRegistry

use of org.apache.ignite.internal.processors.metric.MetricRegistry in project ignite by apache.

the class GridCacheProcessor method start.

/**
 * {@inheritDoc}
 */
@SuppressWarnings({ "unchecked" })
@Override
public void start() throws IgniteCheckedException {
    ctx.internalSubscriptionProcessor().registerMetastorageListener(recovery);
    ctx.internalSubscriptionProcessor().registerDatabaseListener(recovery);
    cachesInfo = new ClusterCachesInfo(ctx);
    DeploymentMode depMode = ctx.config().getDeploymentMode();
    if (!F.isEmpty(ctx.config().getCacheConfiguration())) {
        if (depMode != CONTINUOUS && depMode != SHARED)
            U.warn(log, "Deployment mode for cache is not CONTINUOUS or SHARED " + "(it is recommended that you change deployment mode and restart): " + depMode);
    }
    Collection<CacheStoreSessionListener> sessionListeners = CU.startStoreSessionListeners(ctx, ctx.config().getCacheStoreSessionListenerFactories());
    sharedCtx = createSharedContext(ctx, sessionListeners);
    locCfgMgr = new GridLocalConfigManager(this, ctx);
    transactions = new IgniteTransactionsImpl(sharedCtx, null, false);
    // Start shared managers.
    for (GridCacheSharedManager mgr : sharedCtx.managers()) mgr.start(sharedCtx);
    if (!ctx.isDaemon() && (!CU.isPersistenceEnabled(ctx.config())) || ctx.config().isClientMode()) {
        CacheJoinNodeDiscoveryData data = locCfgMgr.restoreCacheConfigurations();
        if (data != null)
            cachesInfo.onStart(data);
    }
    if (log.isDebugEnabled())
        log.debug("Started cache processor.");
    ctx.state().cacheProcessorStarted();
    ctx.systemView().registerFiltrableView(CACHE_GRP_PAGE_LIST_VIEW, CACHE_GRP_PAGE_LIST_VIEW_DESC, new CachePagesListViewWalker(), this::pagesListViewSupplier, Function.identity());
    ctx.systemView().registerFiltrableView(PART_STATES_VIEW, PART_STATES_VIEW_DESC, new PartitionStateViewWalker(), this::partStatesViewSupplier, Function.identity());
    ctx.systemView().registerView(CACHE_GRP_IO_VIEW, CACHE_GRP_IO_VIEW_DESC, new CacheGroupIoViewWalker(), () -> F.view(cacheGrps.values(), grp -> !grp.systemCache()), grpCtx -> {
        MetricRegistry mreg = ctx.metric().registry(metricName(IoStatisticsType.CACHE_GROUP.metricGroupName(), grpCtx.cacheOrGroupName()));
        return new CacheGroupIoView(grpCtx, mreg);
    });
}
Also used : SchemaAbstractDiscoveryMessage(org.apache.ignite.internal.processors.query.schema.message.SchemaAbstractDiscoveryMessage) GridFinishedFuture(org.apache.ignite.internal.util.future.GridFinishedFuture) ValidationOnNodeJoinUtils.validateHashIdResolvers(org.apache.ignite.internal.processors.cache.ValidationOnNodeJoinUtils.validateHashIdResolvers) GridCacheUtils.isPersistentCache(org.apache.ignite.internal.processors.cache.GridCacheUtils.isPersistentCache) MetastorageLifecycleListener(org.apache.ignite.internal.processors.cache.persistence.metastorage.MetastorageLifecycleListener) ReadOnlyMetastorage(org.apache.ignite.internal.processors.cache.persistence.metastorage.ReadOnlyMetastorage) PagesList(org.apache.ignite.internal.processors.cache.persistence.freelist.PagesList) GridDhtAtomicCache(org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache) Arrays.asList(java.util.Arrays.asList) Map(java.util.Map) AffinityFunction(org.apache.ignite.cache.affinity.AffinityFunction) CachePagesListView(org.apache.ignite.spi.systemview.view.CachePagesListView) AffinityFunctionContext(org.apache.ignite.cache.affinity.AffinityFunctionContext) GridIoPolicy(org.apache.ignite.internal.managers.communication.GridIoPolicy) Objects.isNull(java.util.Objects.isNull) CacheStore(org.apache.ignite.cache.store.CacheStore) InitializationProtector(org.apache.ignite.internal.util.InitializationProtector) IgniteInClosure(org.apache.ignite.lang.IgniteInClosure) ChangeGlobalStateFinishMessage(org.apache.ignite.internal.processors.cluster.ChangeGlobalStateFinishMessage) CountDownLatch(java.util.concurrent.CountDownLatch) SnapshotDiscoveryMessage(org.apache.ignite.internal.processors.cache.persistence.snapshot.SnapshotDiscoveryMessage) EternalExpiryPolicy(javax.cache.expiry.EternalExpiryPolicy) RowStore(org.apache.ignite.internal.processors.cache.persistence.RowStore) Stream(java.util.stream.Stream) IGNITE_SKIP_CONFIGURATION_CONSISTENCY_CHECK(org.apache.ignite.IgniteSystemProperties.IGNITE_SKIP_CONFIGURATION_CONSISTENCY_CHECK) IgniteWriteAheadLogManager(org.apache.ignite.internal.pagemem.wal.IgniteWriteAheadLogManager) SecurityUtils.remoteSecurityContext(org.apache.ignite.internal.processors.security.SecurityUtils.remoteSecurityContext) IoStatisticsType(org.apache.ignite.internal.metric.IoStatisticsType) U(org.apache.ignite.internal.util.typedef.internal.U) IgniteOutClosureX(org.apache.ignite.internal.util.lang.IgniteOutClosureX) SecurityPermission(org.apache.ignite.plugin.security.SecurityPermission) IgniteDiscoverySpi(org.apache.ignite.internal.managers.discovery.IgniteDiscoverySpi) GridCacheDatabaseSharedManager(org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager) F0(org.apache.ignite.internal.util.F0) S(org.apache.ignite.internal.util.typedef.internal.S) GridCacheDistributedQueryManager(org.apache.ignite.internal.processors.cache.query.GridCacheDistributedQueryManager) PartitionStateViewWalker(org.apache.ignite.internal.managers.systemview.walker.PartitionStateViewWalker) A(org.apache.ignite.internal.util.typedef.internal.A) MetricRegistry(org.apache.ignite.internal.processors.metric.MetricRegistry) T3(org.apache.ignite.internal.util.typedef.T3) T2(org.apache.ignite.internal.util.typedef.T2) REPLICATED(org.apache.ignite.cache.CacheMode.REPLICATED) CacheJtaManagerAdapter(org.apache.ignite.internal.processors.cache.jta.CacheJtaManagerAdapter) GridDiscoveryData(org.apache.ignite.spi.discovery.DiscoveryDataBag.GridDiscoveryData) TreeMap(java.util.TreeMap) GridCacheLocalQueryManager(org.apache.ignite.internal.processors.cache.query.GridCacheLocalQueryManager) CacheConfiguration(org.apache.ignite.configuration.CacheConfiguration) CacheGroupIoViewWalker(org.apache.ignite.internal.managers.systemview.walker.CacheGroupIoViewWalker) IgniteCacheSnapshotManager(org.apache.ignite.internal.processors.cache.persistence.snapshot.IgniteCacheSnapshotManager) GridPerformanceSuggestions(org.apache.ignite.internal.suggestions.GridPerformanceSuggestions) GridDhtCache(org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtCache) DatabaseLifecycleListener(org.apache.ignite.internal.processors.cache.persistence.DatabaseLifecycleListener) CacheMode(org.apache.ignite.cache.CacheMode) IgniteInternalFuture(org.apache.ignite.internal.IgniteInternalFuture) IgniteSystemProperties.getBoolean(org.apache.ignite.IgniteSystemProperties.getBoolean) DataRegion(org.apache.ignite.internal.processors.cache.persistence.DataRegion) SortedSet(java.util.SortedSet) ListIterator(java.util.ListIterator) GridCacheQueryManager(org.apache.ignite.internal.processors.cache.query.GridCacheQueryManager) PartitionDefferedDeleteQueueCleanupTask(org.apache.ignite.internal.processors.cache.distributed.dht.topology.PartitionDefferedDeleteQueueCleanupTask) SchemaExchangeWorkerTask(org.apache.ignite.internal.processors.query.schema.SchemaExchangeWorkerTask) StopCachesOnClientReconnectExchangeTask(org.apache.ignite.internal.processors.cache.distributed.dht.preloader.StopCachesOnClientReconnectExchangeTask) QueryEntity(org.apache.ignite.cache.QueryEntity) PartitionsEvictManager(org.apache.ignite.internal.processors.cache.distributed.dht.topology.PartitionsEvictManager) IgniteMBeanAware(org.apache.ignite.mxbean.IgniteMBeanAware) IgniteOutClosure(org.apache.ignite.lang.IgniteOutClosure) Collection(java.util.Collection) ConcurrentHashMap(java.util.concurrent.ConcurrentHashMap) MetaStorage(org.apache.ignite.internal.processors.cache.persistence.metastorage.MetaStorage) UUID(java.util.UUID) Collectors(java.util.stream.Collectors) WarmUpConfiguration(org.apache.ignite.configuration.WarmUpConfiguration) IgniteBiTuple(org.apache.ignite.lang.IgniteBiTuple) Nullable(org.jetbrains.annotations.Nullable) DataStructuresProcessor(org.apache.ignite.internal.processors.datastructures.DataStructuresProcessor) CU(org.apache.ignite.internal.util.typedef.internal.CU) Objects.nonNull(java.util.Objects.nonNull) IntStream(java.util.stream.IntStream) FileWriteAheadLogManager(org.apache.ignite.internal.processors.cache.persistence.wal.FileWriteAheadLogManager) MarshallerUtils(org.apache.ignite.marshaller.MarshallerUtils) GridNearTransactionalCache(org.apache.ignite.internal.processors.cache.distributed.near.GridNearTransactionalCache) AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) IgniteFeatures(org.apache.ignite.internal.IgniteFeatures) Function(java.util.function.Function) NearCacheConfiguration(org.apache.ignite.configuration.NearCacheConfiguration) ConcurrentMap(java.util.concurrent.ConcurrentMap) HashSet(java.util.HashSet) SchemaNodeLeaveExchangeWorkerTask(org.apache.ignite.internal.processors.query.schema.SchemaNodeLeaveExchangeWorkerTask) IgniteClosure(org.apache.ignite.lang.IgniteClosure) IgnitePredicate(org.apache.ignite.lang.IgnitePredicate) MBeanServer(javax.management.MBeanServer) Collectors.mapping(java.util.stream.Collectors.mapping) DataStorageConfiguration(org.apache.ignite.configuration.DataStorageConfiguration) PlatformCacheManager(org.apache.ignite.internal.processors.platform.cache.PlatformCacheManager) IgniteSecurity(org.apache.ignite.internal.processors.security.IgniteSecurity) ExecutorService(java.util.concurrent.ExecutorService) SHARED(org.apache.ignite.configuration.DeploymentMode.SHARED) JTA(org.apache.ignite.internal.IgniteComponentType.JTA) GridLocalAtomicCache(org.apache.ignite.internal.processors.cache.local.atomic.GridLocalAtomicCache) GroupPartitionId(org.apache.ignite.internal.processors.cache.persistence.partstate.GroupPartitionId) QuerySchemaPatch(org.apache.ignite.internal.processors.query.QuerySchemaPatch) GridAffinityAssignmentCache(org.apache.ignite.internal.processors.affinity.GridAffinityAssignmentCache) GridPlainClosure2(org.apache.ignite.internal.util.lang.GridPlainClosure2) Collectors.toList(java.util.stream.Collectors.toList) DiscoveryDataClusterState(org.apache.ignite.internal.processors.cluster.DiscoveryDataClusterState) StringJoiner(java.util.StringJoiner) IgniteTransactionsEx(org.apache.ignite.internal.IgniteTransactionsEx) ATOMIC(org.apache.ignite.cache.CacheAtomicityMode.ATOMIC) Comparator(java.util.Comparator) DataRegionConfiguration(org.apache.ignite.configuration.DataRegionConfiguration) GridFutureAdapter(org.apache.ignite.internal.util.future.GridFutureAdapter) QueryUtils(org.apache.ignite.internal.processors.query.QueryUtils) SYNC(org.apache.ignite.cache.CacheRebalanceMode.SYNC) IgniteCacheObjectProcessor(org.apache.ignite.internal.processors.cacheobject.IgniteCacheObjectProcessor) GridCacheUtils.isNearEnabled(org.apache.ignite.internal.processors.cache.GridCacheUtils.isNearEnabled) DeadlockDetectionManager(org.apache.ignite.internal.processors.cache.mvcc.DeadlockDetectionManager) GridDhtColocatedCache(org.apache.ignite.internal.processors.cache.distributed.dht.colocated.GridDhtColocatedCache) ReuseList(org.apache.ignite.internal.processors.cache.persistence.tree.reuse.ReuseList) FinishPreloadingTask(org.apache.ignite.internal.processors.cache.distributed.dht.preloader.FinishPreloadingTask) QuerySchema(org.apache.ignite.internal.processors.query.QuerySchema) LOCAL(org.apache.ignite.cache.CacheMode.LOCAL) BinaryContext(org.apache.ignite.internal.binary.BinaryContext) IgniteCheckedException(org.apache.ignite.IgniteCheckedException) Set(java.util.Set) IgniteCollectors(org.apache.ignite.internal.util.IgniteCollectors) IgniteClusterReadOnlyException(org.apache.ignite.internal.processors.cache.distributed.dht.IgniteClusterReadOnlyException) IgnitePageStoreManager(org.apache.ignite.internal.pagemem.store.IgnitePageStoreManager) FreeList(org.apache.ignite.internal.processors.cache.persistence.freelist.FreeList) ClusterState(org.apache.ignite.cluster.ClusterState) Collectors.groupingBy(java.util.stream.Collectors.groupingBy) GridCompoundFuture(org.apache.ignite.internal.util.future.GridCompoundFuture) TreeSet(java.util.TreeSet) GridBinaryMarshaller(org.apache.ignite.internal.binary.GridBinaryMarshaller) ArrayList(java.util.ArrayList) GridKernalContext(org.apache.ignite.internal.GridKernalContext) GridCacheOffheapManager(org.apache.ignite.internal.processors.cache.persistence.GridCacheOffheapManager) IgniteTransactionsImpl(org.apache.ignite.internal.processors.cache.transactions.IgniteTransactionsImpl) ClusterNode(org.apache.ignite.cluster.ClusterNode) DiscoveryCustomMessage(org.apache.ignite.internal.managers.discovery.DiscoveryCustomMessage) IgniteInterruptedException(org.apache.ignite.IgniteInterruptedException) IgniteInterruptedCheckedException(org.apache.ignite.internal.IgniteInterruptedCheckedException) CheckpointListener(org.apache.ignite.internal.processors.cache.persistence.checkpoint.CheckpointListener) CacheStoreManager(org.apache.ignite.internal.processors.cache.store.CacheStoreManager) IgniteTxManager(org.apache.ignite.internal.processors.cache.transactions.IgniteTxManager) GridCacheDrManager(org.apache.ignite.internal.processors.cache.dr.GridCacheDrManager) ExpiryPolicy(javax.cache.expiry.ExpiryPolicy) AtomicLongFieldUpdater(java.util.concurrent.atomic.AtomicLongFieldUpdater) IgniteSnapshotManager(org.apache.ignite.internal.processors.cache.persistence.snapshot.IgniteSnapshotManager) CacheGroupIoView(org.apache.ignite.spi.systemview.view.CacheGroupIoView) Marshaller(org.apache.ignite.marshaller.Marshaller) WarmUpStrategy(org.apache.ignite.internal.processors.cache.warmup.WarmUpStrategy) DetachedClusterNode(org.apache.ignite.internal.cluster.DetachedClusterNode) GridDhtCacheAdapter(org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtCacheAdapter) GridCacheVersionManager(org.apache.ignite.internal.processors.cache.version.GridCacheVersionManager) CachePluginManager(org.apache.ignite.internal.processors.plugin.CachePluginManager) CACHE_PROC(org.apache.ignite.internal.GridComponent.DiscoveryDataExchangeType.CACHE_PROC) CachePagesListViewWalker(org.apache.ignite.internal.managers.systemview.walker.CachePagesListViewWalker) GridProcessorAdapter(org.apache.ignite.internal.processors.GridProcessorAdapter) GridLocalCache(org.apache.ignite.internal.processors.cache.local.GridLocalCache) IgniteUuid(org.apache.ignite.lang.IgniteUuid) BinaryMarshaller(org.apache.ignite.internal.binary.BinaryMarshaller) LifecycleAware(org.apache.ignite.lifecycle.LifecycleAware) DiscoveryDataBag(org.apache.ignite.spi.discovery.DiscoveryDataBag) JoiningNodeDiscoveryData(org.apache.ignite.spi.discovery.DiscoveryDataBag.JoiningNodeDiscoveryData) CacheGroupMetricsMXBean(org.apache.ignite.mxbean.CacheGroupMetricsMXBean) CacheContinuousQueryManager(org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryManager) TRANSACTIONAL_SNAPSHOT(org.apache.ignite.cache.CacheAtomicityMode.TRANSACTIONAL_SNAPSHOT) CacheStoreSessionListener(org.apache.ignite.cache.store.CacheStoreSessionListener) DFLT_CACHE_REMOVE_ENTRIES_TTL(org.apache.ignite.internal.processors.cache.distributed.dht.topology.GridDhtLocalPartition.DFLT_CACHE_REMOVE_ENTRIES_TTL) IgniteSystemProperties(org.apache.ignite.IgniteSystemProperties) X(org.apache.ignite.internal.util.typedef.X) DeploymentMode(org.apache.ignite.configuration.DeploymentMode) PARTITIONED(org.apache.ignite.cache.CacheMode.PARTITIONED) SecurityException(org.apache.ignite.plugin.security.SecurityException) MetricUtils.metricName(org.apache.ignite.internal.processors.metric.impl.MetricUtils.metricName) MvccCachingManager(org.apache.ignite.internal.processors.cache.mvcc.MvccCachingManager) Collectors.toSet(java.util.stream.Collectors.toSet) IgniteFuture(org.apache.ignite.lang.IgniteFuture) IdentityHashMap(java.util.IdentityHashMap) IgniteClientDisconnectedCheckedException(org.apache.ignite.internal.IgniteClientDisconnectedCheckedException) EventType(org.apache.ignite.events.EventType) PartitionStateView(org.apache.ignite.spi.systemview.view.PartitionStateView) IgniteException(org.apache.ignite.IgniteException) FilePageStoreManager(org.apache.ignite.internal.processors.cache.persistence.file.FilePageStoreManager) String.format(java.lang.String.format) GridNearAtomicCache(org.apache.ignite.internal.processors.cache.distributed.near.GridNearAtomicCache) List(java.util.List) IGNITE_CACHE_REMOVED_ENTRIES_TTL(org.apache.ignite.IgniteSystemProperties.IGNITE_CACHE_REMOVED_ENTRIES_TTL) Optional(java.util.Optional) NotNull(org.jetbrains.annotations.NotNull) HashMap(java.util.HashMap) CONTINUOUS(org.apache.ignite.configuration.DeploymentMode.CONTINUOUS) CacheExistsException(org.apache.ignite.cache.CacheExistsException) AtomicReference(java.util.concurrent.atomic.AtomicReference) CacheDataStructuresManager(org.apache.ignite.internal.processors.cache.datastructures.CacheDataStructuresManager) IgniteNodeValidationResult(org.apache.ignite.spi.IgniteNodeValidationResult) IgniteUtils.doInParallel(org.apache.ignite.internal.util.IgniteUtils.doInParallel) CacheException(javax.cache.CacheException) IgniteThrowableFunction(org.apache.ignite.internal.util.lang.IgniteThrowableFunction) F(org.apache.ignite.internal.util.typedef.F) SchemaProposeDiscoveryMessage(org.apache.ignite.internal.processors.query.schema.message.SchemaProposeDiscoveryMessage) Iterator(java.util.Iterator) AffinityTopologyVersion(org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion) ClusterTopologyCheckedException(org.apache.ignite.internal.cluster.ClusterTopologyCheckedException) FULL_SYNC(org.apache.ignite.cache.CacheWriteSynchronizationMode.FULL_SYNC) CacheObjectBinaryProcessorImpl(org.apache.ignite.internal.processors.cache.binary.CacheObjectBinaryProcessorImpl) GridToStringInclude(org.apache.ignite.internal.util.tostring.GridToStringInclude) TimeUnit(java.util.concurrent.TimeUnit) IgniteCacheDatabaseSharedManager(org.apache.ignite.internal.processors.cache.persistence.IgniteCacheDatabaseSharedManager) ChangeGlobalStateMessage(org.apache.ignite.internal.processors.cluster.ChangeGlobalStateMessage) Collections(java.util.Collections) CacheGroupIoViewWalker(org.apache.ignite.internal.managers.systemview.walker.CacheGroupIoViewWalker) CachePagesListViewWalker(org.apache.ignite.internal.managers.systemview.walker.CachePagesListViewWalker) IgniteTransactionsImpl(org.apache.ignite.internal.processors.cache.transactions.IgniteTransactionsImpl) CacheGroupIoView(org.apache.ignite.spi.systemview.view.CacheGroupIoView) MetricRegistry(org.apache.ignite.internal.processors.metric.MetricRegistry) CacheStoreSessionListener(org.apache.ignite.cache.store.CacheStoreSessionListener) DeploymentMode(org.apache.ignite.configuration.DeploymentMode) PartitionStateViewWalker(org.apache.ignite.internal.managers.systemview.walker.PartitionStateViewWalker)

Aggregations

MetricRegistry (org.apache.ignite.internal.processors.metric.MetricRegistry)86 Test (org.junit.Test)52 GridCommonAbstractTest (org.apache.ignite.testframework.junits.common.GridCommonAbstractTest)29 IgniteEx (org.apache.ignite.internal.IgniteEx)26 LongMetric (org.apache.ignite.spi.metric.LongMetric)26 List (java.util.List)11 CountDownLatch (java.util.concurrent.CountDownLatch)11 UUID (java.util.UUID)10 Map (java.util.Map)8 CacheConfiguration (org.apache.ignite.configuration.CacheConfiguration)8 IgniteConfiguration (org.apache.ignite.configuration.IgniteConfiguration)8 ArrayList (java.util.ArrayList)7 IgniteException (org.apache.ignite.IgniteException)7 IgniteInternalFuture (org.apache.ignite.internal.IgniteInternalFuture)7 IntMetric (org.apache.ignite.spi.metric.IntMetric)7 IgniteCache (org.apache.ignite.IgniteCache)6 ClusterNode (org.apache.ignite.cluster.ClusterNode)6 Arrays (java.util.Arrays)5 HashSet (java.util.HashSet)5 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)5