Search in sources :

Example 1 with GridCacheExplicitLockSpan

use of org.apache.ignite.internal.processors.cache.GridCacheExplicitLockSpan in project ignite by apache.

the class GridCommonAbstractTest method dumpCacheDebugInfo.

/**
 * @param ignite Node.
 */
public void dumpCacheDebugInfo(Ignite ignite) {
    GridKernalContext ctx = ((IgniteKernal) ignite).context();
    log.error("Cache information update [node=" + ignite.name() + ", client=" + ignite.configuration().isClientMode() + ']');
    GridCacheSharedContext cctx = ctx.cache().context();
    log.error("Pending transactions:");
    for (IgniteInternalTx tx : cctx.tm().activeTransactions()) log.error(">>> " + tx);
    log.error("Pending explicit locks:");
    for (GridCacheExplicitLockSpan lockSpan : cctx.mvcc().activeExplicitLocks()) log.error(">>> " + lockSpan);
    log.error("Pending cache futures:");
    for (GridCacheFuture<?> fut : cctx.mvcc().activeFutures()) log.error(">>> " + fut);
    log.error("Pending atomic cache futures:");
    for (GridCacheFuture<?> fut : cctx.mvcc().atomicFutures()) log.error(">>> " + fut);
}
Also used : IgniteKernal(org.apache.ignite.internal.IgniteKernal) IgniteInternalTx(org.apache.ignite.internal.processors.cache.transactions.IgniteInternalTx) GridKernalContext(org.apache.ignite.internal.GridKernalContext) GridCacheExplicitLockSpan(org.apache.ignite.internal.processors.cache.GridCacheExplicitLockSpan) GridCacheSharedContext(org.apache.ignite.internal.processors.cache.GridCacheSharedContext)

Aggregations

GridKernalContext (org.apache.ignite.internal.GridKernalContext)1 IgniteKernal (org.apache.ignite.internal.IgniteKernal)1 GridCacheExplicitLockSpan (org.apache.ignite.internal.processors.cache.GridCacheExplicitLockSpan)1 GridCacheSharedContext (org.apache.ignite.internal.processors.cache.GridCacheSharedContext)1 IgniteInternalTx (org.apache.ignite.internal.processors.cache.transactions.IgniteInternalTx)1