Should I use the feature to manipulate data with CLI in RHDG?

Solution Verified - Updated -


  • With the interactive CLI the data of caches can be manipulated, can this be used in production?
  • If a cache is transactional configured, can CLI be used to manipulate entries? There is an error message and the server log exceptions.
ERROR [org.infinispan.cli.interpreter.Interpreter] (management-handler-thread - 1) ISPN019003: Interpreter error: org.infinispan.commons.CacheException: Could not commit implicit transaction
    at org.infinispan.cache.impl.CacheImpl.tryCommit(
    at org.infinispan.cache.impl.CacheImpl.executeCommandWithInjectedTx(
    at org.infinispan.cache.impl.CacheImpl.executeCommandAndCommitIfNeeded(
    at org.infinispan.cache.impl.CacheImpl.put(
    at org.infinispan.cache.impl.CacheImpl.put(
    at org.infinispan.cache.impl.AbstractDelegatingAdvancedCache.put(
    at org.infinispan.cache.impl.EncoderCache.put(
    at org.infinispan.cli.interpreter.statement.PutStatement.execute(
    at org.infinispan.cli.interpreter.Interpreter.execute(
Caused by: javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.
    Suppressed: javax.transaction.RollbackException: WFTXN0061: Transaction is marked rollback-only
Caused by: org.infinispan.commons.CacheException: Could not prepare. 
Caused by: javax.transaction.xa.XAException
Caused by: org.infinispan.transaction.WriteSkewException: Write skew detected on key WrappedByteArray{bytes=[B0x034B, hashCode=1042655210} for transaction LocalTransaction{remoteLockedNodes=null, isMarkedForRollback=false, lockedKeys=[WrappedByteArray{bytes=[B0x034B, hashCode=1042655210}], backupKeyLocks=[], topologyId=1, stateTransferFlag=null} org.infinispan.transaction.synchronization.SyncLocalTransaction@1


  • Red Hat Data Grid (RHDG)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content