public class IgniteTxManager extends GridCacheSharedManagerAdapter
Modifier and Type | Class and Description |
---|---|
class |
IgniteTxManager.TxDumpsThrottling
This class is used to store information about transaction time dump throttling.
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFERRED_ONE_PHASE_COMMIT_ACK_REQUEST_TIMEOUT
One phase commit deferred ack request timeout.
|
static int |
DFLT_DEFERRED_ONE_PHASE_COMMIT_ACK_REQUEST_BUFFER_SIZE |
static int |
DFLT_DEFERRED_ONE_PHASE_COMMIT_ACK_REQUEST_TIMEOUT |
static int |
DFLT_DUMP_TX_COLLISIONS_INTERVAL |
static int |
DFLT_MAX_COMPLETED_TX_CNT
Default maximum number of transactions that have completed.
|
static int |
DFLT_SLOW_TX_WARN_TIMEOUT |
static int |
DFLT_TRANSACTION_TIME_DUMP_SAMPLES_PER_SECOND_LIMIT |
static int |
DFLT_TX_DEADLOCK_DETECTION_MAX_ITERS |
static boolean |
DFLT_TX_OWNER_DUMP_REQUESTS_ALLOWED |
static String |
TXS_MON_LIST |
static String |
TXS_MON_LIST_DESC |
cctx, diagnosticLog, log
Constructor and Description |
---|
IgniteTxManager() |
Modifier and Type | Method and Description |
---|---|
Collection<IgniteInternalTx> |
activeTransactions() |
void |
addAlternateVersion(GridCacheVersion ver,
IgniteInternalTx tx) |
void |
addCommittedTx(IgniteInternalTx tx) |
boolean |
addCommittedTx(IgniteInternalTx tx,
GridCacheVersion xidVer,
@Nullable GridCacheVersion nearXidVer) |
void |
addCommittedTxReturn(IgniteInternalTx tx,
GridCacheReturnCompletableWrapper ret) |
void |
addFuture(org.apache.ignite.internal.processors.cache.transactions.TxDeadlockDetection.TxDeadlockFuture fut) |
boolean |
addRolledbackTx(IgniteInternalTx tx) |
boolean |
addRolledbackTx(IgniteInternalTx tx,
GridCacheVersion xidVer) |
void |
checkEmptyTransactions(@NotNull IgniteOutClosure<String> errMsgConstructor)
Method checks that current thread does not have active transactions.
|
void |
clearThreadMap(IgniteInternalTx tx) |
int |
collisionsDumpInterval()
Returns tx keys collisions dump interval, for additional info check
IgniteSystemProperties.IGNITE_DUMP_TX_COLLISIONS_INTERVAL description. |
void |
collisionsDumpIntervalDistributed(int collisionsDumpInterval)
Changes tx key collisions dump interval.
|
IgniteInternalFuture<Boolean> |
commitIfPrepared(IgniteInternalTx tx,
Set<UUID> failedNodeIds)
Commits transaction in case when node started transaction failed, but all related
transactions were prepared (invalidates transaction if it is not fully prepared).
|
void |
commitTx(IgniteInternalTx tx)
Commits a transaction.
|
int |
completedVersionsSize() |
boolean |
deadlockDetectionEnabled() |
Collection<IgniteInternalFuture<?>> |
deadlockDetectionFutures() |
IgniteInternalFuture<TxDeadlock> |
detectDeadlock(IgniteInternalTx tx,
Set<IgniteTxKey> keys)
Performs deadlock detection for given keys.
|
void |
detectPossibleCollidingKeys(GridDistributedCacheEntry entry)
Check local and remote candidates queue size.
|
void |
enterNearTxSystemSection()
Enters system section for thread local near tx, if it is present.
|
void |
fastFinishTx(GridNearTxLocal tx,
boolean commit,
boolean clearThreadMap)
Fast finish transaction.
|
IgniteInternalFuture<?> |
finishAllTxs(IgniteInternalFuture<?> finishLocalTxsFuture,
AffinityTopologyVersion topVer)
Creates a future that will wait for finishing all tx updates on backups after all local transactions are finished.
|
IgniteInternalFuture<Boolean> |
finishLocalTxs(AffinityTopologyVersion topVer)
Creates a future that will wait for all ongoing transactions that maybe affected by topology update
to be finished.
|
void |
finishTxOnRecovery(IgniteInternalTx tx,
boolean commit)
Commits or rolls back prepared transaction.
|
void |
forgetTx(IgniteInternalTx tx)
Removes Tx from manager.
|
@Nullable org.apache.ignite.internal.processors.cache.transactions.TxDeadlockDetection.TxDeadlockFuture |
future(long futId) |
GridCacheReturnCompletableWrapper |
getCommittedTxReturn(GridCacheVersion xidVer) |
int |
idMapSize() |
boolean |
inUserTx() |
void |
leaveNearTxSystemSection()
Leaves system section for thread local near tx, if it is present.
|
@Nullable IgniteTxLocalAdapter |
localTx() |
@Nullable AffinityTopologyVersion |
lockedTopologyVersion(long threadId,
IgniteInternalTx ignore) |
boolean |
logTxRecords() |
long |
longOperationsDumpTimeout() |
void |
longOperationsDumpTimeout(long longOpsDumpTimeout) |
void |
longOperationsDumpTimeoutDistributed(long longOpsDumpTimeout)
Setting (for all nodes) a timeout (in millis) for printing long-running
transactions as well as transactions that cannot receive locks for all
their keys for a long time.
|
void |
longTransactionTimeDumpSamplesPerSecondLimit(int limit)
Sets the limit of samples of completed transactions that will be dumped in log per second,
if
transactionTimeDumpSamplesCoefficient is above 0.0 . |
long |
longTransactionTimeDumpThreshold()
Threshold timeout for long transactions, if transaction exceeds it, it will be dumped in log with
information about how much time did it spent in system time (time while aquiring locks, preparing,
commiting, etc) and user time (time when client node runs some code while holding transaction and not
waiting it).
|
void |
longTransactionTimeDumpThreshold(long longTransactionTimeDumpThreshold)
Sets threshold timeout for long transactions, if transaction exceeds it, it will be dumped in log with
information about how much time did it spent in system time (time while aquiring locks, preparing,
commiting, etc) and user time (time when client node runs some code while holding transaction and not
waiting it).
|
void |
longTransactionTimeDumpThresholdDistributed(long threshold)
Sets threshold timeout in milliseconds for long transactions, if transaction exceeds it,
it will be dumped in log with information about how much time did
it spent in system time (time while aquiring locks, preparing, commiting, etc.)
|
GridCacheVersion |
mappedVersion(GridCacheVersion from) |
void |
mvccFinish(IgniteTxAdapter tx)
Finishes MVCC transaction.
|
<T extends IgniteInternalTx> |
nearTx(GridCacheVersion txId) |
boolean |
needWaitTransaction(IgniteInternalTx tx,
AffinityTopologyVersion topVer) |
GridNearTxLocal |
newTx(boolean implicit,
boolean implicitSingle,
@Nullable GridCacheContext sysCacheCtx,
TransactionConcurrency concurrency,
TransactionIsolation isolation,
long timeout,
boolean storeEnabled,
Boolean mvccOp,
int txSize,
@Nullable String lb,
boolean tracingEnabled) |
<T extends IgniteInternalTx> |
onCreated(@Nullable GridCacheContext cacheCtx,
T tx) |
void |
onDisconnected(IgniteFuture reconnectFut) |
protected void |
onKernalStart0(boolean active) |
protected void |
onKernalStop0(boolean cancel) |
boolean |
onOwnerChanged(GridCacheEntryEx entry,
GridCacheMvccCandidate owner)
Callback invoked whenever a member of a transaction acquires
lock ownership.
|
boolean |
onStarted(IgniteInternalTx tx)
Transaction start callback (has to do with when any operation was
performed on this transaction).
|
void |
onTxTimeoutOnPartitionMapExchangeChange(TxTimeoutOnPartitionMapExchangeChangeMessage msg)
Callback invoked from discovery thread when discovery custom message is received.
|
Boolean |
peekCompletedVersionsHistory(GridCacheVersion xid)
Peeks completed versions history map to find out whether transaction was committed or rolled back
in the recent past.
|
void |
prepareTx(IgniteInternalTx tx,
@Nullable Collection<IgniteTxEntry> entries)
Handles prepare stage.
|
void |
printMemoryStats()
Prints out memory stats to standard out.
|
void |
processTxTimeoutOnPartitionMapExchangeChange(TxTimeoutOnPartitionMapExchangeChangeMessage msg)
The task for changing transaction timeout on partition map exchange processed by exchange worker.
|
void |
pushCollidingKeysWithQueueSize(GridCacheMapEntry key,
int queueSize)
Collect queue size per key collisions info.
|
IgniteInternalFuture<Boolean> |
recoverLocalTxs(AffinityTopologyVersion topVer,
ClusterNode node,
IgnitePredicate<IgniteInternalTx> filter)
Creates a future that will wait for all transactions with failed primary recovery.
|
IgniteInternalFuture<?> |
remoteTxFinishFuture(GridCacheVersion nearVer) |
void |
removeCommittedTx(IgniteInternalTx tx) |
void |
removeFuture(long futId) |
void |
removeTxReturn(GridCacheVersion xidVer) |
void |
resetContext()
Commit ended.
|
void |
resumeTx(GridNearTxLocal tx,
long threadId)
Resume transaction in current thread.
|
void |
rollbackOnTopologyChange(AffinityTopologyVersion topVer)
Rollback transactions blocking partition map exchange.
|
void |
rollbackTransactionsForCache(int cacheId) |
void |
rollbackTransactionsForStoppingCache(int cacheToStop) |
void |
rollbackTx(IgniteInternalTx tx,
boolean clearThreadMap,
boolean skipCompletedVers)
Rolls back a transaction.
|
void |
salvageTx(IgniteInternalTx tx)
Invalidates transaction.
|
void |
sendDeferredAckResponse(UUID nodeId,
GridCacheVersion ver) |
void |
setMvccState(IgniteInternalTx tx,
byte state)
Sets MVCC state.
|
void |
setTxOwnerDumpRequestsAllowed(boolean allowed)
Sets if dump requests from local node to near node are allowed, when long running transaction
is found.
|
void |
setTxOwnerDumpRequestsAllowedDistributed(boolean allowed)
Sets if dump requests from local node to near node are allowed, when long running transaction
is found.
|
void |
setTxTimeoutOnPartitionMapExchange(long timeout)
Sets transaction timeout on partition map exchange.
|
boolean |
setTxTopologyHint(@Nullable AffinityTopologyVersion topVer) |
int |
slowTxWarnTimeout() |
void |
slowTxWarnTimeout(int slowTxWarnTimeout) |
protected void |
start0() |
protected void |
stop0(boolean cancel) |
void |
suspendTx(GridNearTxLocal tx)
Suspends transaction.
|
GridNearTxLocal |
threadLocalTx(GridCacheContext cctx) |
int |
threadMapSize() |
double |
transactionTimeDumpSamplesCoefficient()
The coefficient for samples of completed transactions that will be dumped in log.
|
void |
transactionTimeDumpSamplesCoefficient(double transactionTimeDumpSamplesCoefficient)
Sets the coefficient for samples of completed transactions that will be dumped in log.
|
void |
transactionTimeDumpSamplesCoefficientDistributed(double coefficient)
Sets the coefficient for samples of long running transactions that will be dumped in log, if
longTransactionTimeDumpThreshold is set to non-zero value." |
int |
transactionTimeDumpSamplesPerSecondLimit()
The limit of samples of completed transactions that will be dumped in log per second, if
transactionTimeDumpSamplesCoefficient is above 0.0 . |
void |
transactionTimeDumpSamplesPerSecondLimit(int transactionTimeDumpSamplesPerSecondLimit)
Sets the limit of samples of completed transactions that will be dumped in log per second, if
transactionTimeDumpSamplesCoefficient is above 0.0 . |
<T> T |
tx() |
<T extends IgniteInternalTx> |
tx(GridCacheVersion txId) |
IgniteInternalTx |
tx(IgniteInternalTx tx)
Sets transaction for current thread.
|
IgniteInternalFuture<Boolean> |
txCommitted(GridCacheVersion xidVer) |
void |
txContext(IgniteInternalTx tx) |
@Nullable GridCacheVersion |
txContextVersion()
Gets version of transaction in tx context or
null
if tx context is empty. |
IgniteTxHandler |
txHandler() |
boolean |
txOwnerDumpRequestsAllowed()
Sets if dump requests from local node to near node are allowed, when long running transaction
is found.
|
@Nullable IgniteInternalFuture<Boolean> |
txsPreparedOrCommitted(GridCacheVersion nearVer,
int txNum)
Checks if transactions with given near version ID was prepared or committed.
|
@Nullable GridNearTxLocal |
userTx() |
IgnitePair<Collection<GridCacheVersion>> |
versions(GridCacheVersion min) |
context, isStopping, kernalStartInfo, kernalStopInfo, log, onKernalStart, onKernalStop, onReconnected, start, startInfo, stop, stopInfo, toString
public static final String TXS_MON_LIST
public static final String TXS_MON_LIST_DESC
public static final int DFLT_MAX_COMPLETED_TX_CNT
public static final int DFLT_SLOW_TX_WARN_TIMEOUT
public static final int DFLT_TX_DEADLOCK_DETECTION_MAX_ITERS
public static final int DFLT_DEFERRED_ONE_PHASE_COMMIT_ACK_REQUEST_TIMEOUT
public static final int DFLT_DEFERRED_ONE_PHASE_COMMIT_ACK_REQUEST_BUFFER_SIZE
public static final int DFLT_TRANSACTION_TIME_DUMP_SAMPLES_PER_SECOND_LIMIT
public static final int DEFERRED_ONE_PHASE_COMMIT_ACK_REQUEST_TIMEOUT
public static final boolean DFLT_TX_OWNER_DUMP_REQUESTS_ALLOWED
public static final int DFLT_DUMP_TX_COLLISIONS_INTERVAL
protected void onKernalStop0(boolean cancel)
onKernalStop0
in class GridCacheSharedManagerAdapter
cancel
- Cancel flag.protected void start0() throws IgniteCheckedException
start0
in class GridCacheSharedManagerAdapter
IgniteCheckedException
- If failed.protected void onKernalStart0(boolean active)
onKernalStart0
in class GridCacheSharedManagerAdapter
active
- Cluster active flag.public void rollbackTransactionsForCache(int cacheId)
cacheId
- Cache ID.public void rollbackTransactionsForStoppingCache(int cacheToStop)
cacheToStop
- Cache to stop.public void rollbackOnTopologyChange(AffinityTopologyVersion topVer)
topVer
- Initial exchange version.public void onDisconnected(IgniteFuture reconnectFut)
onDisconnected
in interface GridCacheSharedManager
onDisconnected
in class GridCacheSharedManagerAdapter
reconnectFut
- Reconnect future.public IgniteTxHandler txHandler()
public boolean txOwnerDumpRequestsAllowed()
true
if allowed, false
otherwise.public void setTxOwnerDumpRequestsAllowed(boolean allowed)
allowed
- whether allowedpublic long longTransactionTimeDumpThreshold()
public void longTransactionTimeDumpThreshold(long longTransactionTimeDumpThreshold)
longTransactionTimeDumpThreshold
- Value of threshold timeout in milliseconds.public double transactionTimeDumpSamplesCoefficient()
public void transactionTimeDumpSamplesCoefficient(double transactionTimeDumpSamplesCoefficient)
public int transactionTimeDumpSamplesPerSecondLimit()
transactionTimeDumpSamplesCoefficient
is above 0.0
. Must be integer value
greater than 0
.public void transactionTimeDumpSamplesPerSecondLimit(int transactionTimeDumpSamplesPerSecondLimit)
transactionTimeDumpSamplesCoefficient
is above 0.0
. Must be integer value
greater than 0
.public void salvageTx(IgniteInternalTx tx)
tx
- Transaction.public void printMemoryStats()
USE ONLY FOR MEMORY PROFILING DURING TESTS.
printMemoryStats
in interface GridCacheSharedManager
printMemoryStats
in class GridCacheSharedManagerAdapter
public int threadMapSize()
public int idMapSize()
public int completedVersionsSize()
public GridNearTxLocal newTx(boolean implicit, boolean implicitSingle, @Nullable @Nullable GridCacheContext sysCacheCtx, TransactionConcurrency concurrency, TransactionIsolation isolation, long timeout, boolean storeEnabled, Boolean mvccOp, int txSize, @Nullable @Nullable String lb, boolean tracingEnabled)
implicit
- True
if transaction is implicit.implicitSingle
- Implicit-with-single-key flag.concurrency
- Concurrency.isolation
- Isolation.timeout
- transaction timeout.mvccOp
- Whether this transaction is being started via SQL API or not, or null
if unknown.txSize
- Expected transaction size.lb
- Label.@Nullable public <T extends IgniteInternalTx> T onCreated(@Nullable @Nullable GridCacheContext cacheCtx, T tx)
cacheCtx
- Cache context.tx
- Created transaction.public IgniteInternalFuture<Boolean> finishLocalTxs(AffinityTopologyVersion topVer)
TransactionConcurrency.PESSIMISTIC
transactions with topology version
less or equal to topVer
.
TransactionConcurrency.OPTIMISTIC
transactions in PREPARING state with topology
version less or equal to topVer
and having transaction key with entry that belongs to
one of partitions in parts
.
topVer
- Topology version.public IgniteInternalFuture<Boolean> recoverLocalTxs(AffinityTopologyVersion topVer, ClusterNode node, IgnitePredicate<IgniteInternalTx> filter)
topVer
- Topology version.node
- Failed node.filter
- Recovery filter.public IgniteInternalFuture<?> finishAllTxs(IgniteInternalFuture<?> finishLocalTxsFuture, AffinityTopologyVersion topVer)
finishLocalTxsFuture
- Local transactions finish future.topVer
- Topology version.public boolean needWaitTransaction(IgniteInternalTx tx, AffinityTopologyVersion topVer)
tx
- Transaction.topVer
- Exchange version.True
if need wait transaction for exchange.public boolean onStarted(IgniteInternalTx tx)
tx
- Started transaction.True
if transaction is not in completed set.public GridCacheVersion mappedVersion(GridCacheVersion from)
from
- Near version.public void addAlternateVersion(GridCacheVersion ver, IgniteInternalTx tx)
ver
- Alternate version.tx
- Transaction.@Nullable public @Nullable IgniteTxLocalAdapter localTx()
public GridNearTxLocal threadLocalTx(GridCacheContext cctx)
cctx
- Cache context.public IgniteInternalTx tx(IgniteInternalTx tx)
public <T> T tx()
@Nullable public @Nullable AffinityTopologyVersion lockedTopologyVersion(long threadId, IgniteInternalTx ignore)
threadId
- Thread ID.ignore
- Transaction to ignore.public boolean setTxTopologyHint(@Nullable @Nullable AffinityTopologyVersion topVer)
topVer
- Locked topology version.True
if topology hint was set.@Nullable public @Nullable GridNearTxLocal userTx()
public boolean inUserTx()
True
if current thread is currently within transaction.@Nullable public <T extends IgniteInternalTx> T tx(GridCacheVersion txId)
txId
- Transaction ID.@Nullable public <T extends IgniteInternalTx> T nearTx(GridCacheVersion txId)
txId
- Transaction ID.public void prepareTx(IgniteInternalTx tx, @Nullable @Nullable Collection<IgniteTxEntry> entries) throws IgniteCheckedException
tx
- Transaction to prepare.entries
- Entries to lock or null
if use default IgniteInternalTx.optimisticLockEntries()
.IgniteCheckedException
- If preparation failed.public IgnitePair<Collection<GridCacheVersion>> versions(GridCacheVersion min)
min
- Minimum version.null
, elements potentially empty,
but also never null
.public Boolean peekCompletedVersionsHistory(GridCacheVersion xid)
xid
- Transaction XID version.true
if transaction was committed, false
if transaction was rolled back,
null
if information is missed in history.public Collection<IgniteInternalTx> activeTransactions()
public void removeCommittedTx(IgniteInternalTx tx)
tx
- Tx to remove.public void addCommittedTx(IgniteInternalTx tx)
tx
- Committed transaction.public void addCommittedTxReturn(IgniteInternalTx tx, GridCacheReturnCompletableWrapper ret)
tx
- Committed transaction.public boolean addRolledbackTx(IgniteInternalTx tx)
tx
- Committed transaction.public boolean addCommittedTx(IgniteInternalTx tx, GridCacheVersion xidVer, @Nullable @Nullable GridCacheVersion nearXidVer)
tx
- Tx.xidVer
- Completed transaction version.nearXidVer
- Optional near transaction ID.public boolean addRolledbackTx(IgniteInternalTx tx, GridCacheVersion xidVer)
tx
- Tx.xidVer
- Completed transaction version.public GridCacheReturnCompletableWrapper getCommittedTxReturn(GridCacheVersion xidVer)
xidVer
- xidVer Completed transaction version.public void removeTxReturn(GridCacheVersion xidVer)
xidVer
- xidVer Completed transaction version.public void commitTx(IgniteInternalTx tx) throws IgniteCheckedException
tx
- Transaction to commit.IgniteCheckedException
- If failed.public void rollbackTx(IgniteInternalTx tx, boolean clearThreadMap, boolean skipCompletedVers)
tx
- Transaction to rollback.clearThreadMap
- True
if need remove tx from thread map.skipCompletedVers
- True
if tx should skip adding itself to completed versions map on finish.public void fastFinishTx(GridNearTxLocal tx, boolean commit, boolean clearThreadMap)
tx
- Transaction to finish.commit
- True
if transaction is committed, false
if rolled back.clearThreadMap
- True
if need remove tx from thread map.public void forgetTx(IgniteInternalTx tx)
tx
- Transaction to finish.public void clearThreadMap(IgniteInternalTx tx)
tx
- Transaction to clear.public void enterNearTxSystemSection()
public void leaveNearTxSystemSection()
public boolean onOwnerChanged(GridCacheEntryEx entry, GridCacheMvccCandidate owner)
entry
- Cache entry.owner
- Candidate that won ownership.True
if transaction was notified, false
otherwise.public void txContext(IgniteInternalTx tx)
tx
- Committing transaction.@Nullable public @Nullable GridCacheVersion txContextVersion()
null
if tx context is empty.
This is a convenience method provided mostly for debugging.
public void resetContext()
public int slowTxWarnTimeout()
public void slowTxWarnTimeout(int slowTxWarnTimeout)
slowTxWarnTimeout
- Slow tx warn timeout.public long longOperationsDumpTimeout()
public void longOperationsDumpTimeout(long longOpsDumpTimeout)
longOpsDumpTimeout
- Long operations dump timeout.@Nullable public @Nullable IgniteInternalFuture<Boolean> txsPreparedOrCommitted(GridCacheVersion nearVer, int txNum)
nearVer
- Near version ID.txNum
- Number of transactions.null
for success future.public IgniteInternalFuture<Boolean> txCommitted(GridCacheVersion xidVer)
xidVer
- Version.public IgniteInternalFuture<?> remoteTxFinishFuture(GridCacheVersion nearVer)
nearVer
- Near version.public void finishTxOnRecovery(IgniteInternalTx tx, boolean commit)
tx
- Transaction.commit
- Whether transaction should be committed or rolled back.public IgniteInternalFuture<Boolean> commitIfPrepared(IgniteInternalTx tx, Set<UUID> failedNodeIds)
tx
- Transaction.failedNodeIds
- Failed nodes IDs.public boolean deadlockDetectionEnabled()
True
if deadlock detection is enabled.public IgniteInternalFuture<TxDeadlock> detectDeadlock(IgniteInternalTx tx, Set<IgniteTxKey> keys)
tx
- Target tx.keys
- Keys.public void addFuture(org.apache.ignite.internal.processors.cache.transactions.TxDeadlockDetection.TxDeadlockFuture fut)
fut
- Future.@Nullable public @Nullable org.apache.ignite.internal.processors.cache.transactions.TxDeadlockDetection.TxDeadlockFuture future(long futId)
futId
- Future ID.public void removeFuture(long futId)
futId
- Future ID.public void sendDeferredAckResponse(UUID nodeId, GridCacheVersion ver)
nodeId
- Node ID to send message to.ver
- Version to ack.public Collection<IgniteInternalFuture<?>> deadlockDetectionFutures()
public void suspendTx(GridNearTxLocal tx) throws IgniteCheckedException
tx
- Transaction to be suspended.IgniteCheckedException
- If failed to suspend transaction.resumeTx(GridNearTxLocal, long)
,
GridNearTxLocal.suspend()
,
GridNearTxLocal.resume()
public void resumeTx(GridNearTxLocal tx, long threadId) throws IgniteCheckedException
tx
- Transaction to be resumed.threadId
- Thread id to restore.IgniteCheckedException
- If failed to resume tx.suspendTx(GridNearTxLocal)
,
GridNearTxLocal.suspend()
,
GridNearTxLocal.resume()
public boolean logTxRecords()
TxRecord
records should be logged to WAL.public void setMvccState(IgniteInternalTx tx, byte state)
tx
- Transaction.state
- New state.public void mvccFinish(IgniteTxAdapter tx)
tx
- Transaction.public void setTxTimeoutOnPartitionMapExchange(long timeout) throws IgniteCheckedException
timeout
- Transaction timeout on partition map exchange in milliseconds.IgniteCheckedException
public void onTxTimeoutOnPartitionMapExchangeChange(TxTimeoutOnPartitionMapExchangeChangeMessage msg)
msg
- Discovery message for changing transaction timeout on partition map exchange.public void processTxTimeoutOnPartitionMapExchangeChange(TxTimeoutOnPartitionMapExchangeChangeMessage msg)
msg
- Message.public void checkEmptyTransactions(@NotNull @NotNull IgniteOutClosure<String> errMsgConstructor)
IgniteException
with given errMsgConstructor
message will be thrown.errMsgConstructor
- Error message constructor.public void setTxOwnerDumpRequestsAllowedDistributed(boolean allowed)
allowed
- whether allowedpublic void longTransactionTimeDumpThresholdDistributed(long threshold)
threshold
- Threshold timeout in milliseconds.public void transactionTimeDumpSamplesCoefficientDistributed(double coefficient)
longTransactionTimeDumpThreshold
is set to non-zero value."coefficient
- Coefficient, must be value between 0.0 and 1.0 inclusively.public void longTransactionTimeDumpSamplesPerSecondLimit(int limit)
transactionTimeDumpSamplesCoefficient
is above 0.0
.
Must be integer value greater than 0
.limit
- Limit value.protected void stop0(boolean cancel)
stop0
in class GridCacheSharedManagerAdapter
cancel
- Cancel flag.public void longOperationsDumpTimeoutDistributed(long longOpsDumpTimeout)
0
to disable.longOpsDumpTimeout
- Long operations dump timeout.public int collisionsDumpInterval()
IgniteSystemProperties.IGNITE_DUMP_TX_COLLISIONS_INTERVAL
description.public void collisionsDumpIntervalDistributed(int collisionsDumpInterval)
IgniteSystemProperties.IGNITE_DUMP_TX_COLLISIONS_INTERVAL
description.collisionsDumpInterval
- New collisions dump interval or negative for disabling.public void pushCollidingKeysWithQueueSize(GridCacheMapEntry key, int queueSize)
key
- Key.queueSize
- Collisions queue sizepublic void detectPossibleCollidingKeys(GridDistributedCacheEntry entry)
entry
- CacheEntry.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021