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

Solution Verified - Updated -

Issue

  • 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(CacheImpl.java:2024)
    at org.infinispan.cache.impl.CacheImpl.executeCommandWithInjectedTx(CacheImpl.java:1941)
    at org.infinispan.cache.impl.CacheImpl.executeCommandAndCommitIfNeeded(CacheImpl.java:1914)
    at org.infinispan.cache.impl.CacheImpl.put(CacheImpl.java:1430)
    at org.infinispan.cache.impl.CacheImpl.put(CacheImpl.java:2040)
    at org.infinispan.cache.impl.AbstractDelegatingAdvancedCache.put(AbstractDelegatingAdvancedCache.java:351)
    at org.infinispan.cache.impl.EncoderCache.put(EncoderCache.java:427)
    at org.infinispan.cli.interpreter.statement.PutStatement.execute(PutStatement.java:76)
    at org.infinispan.cli.interpreter.Interpreter.execute(Interpreter.java:144)
    at org.jboss.as.clustering.infinispan.subsystem.SecurityActions.lambda$executeInterpreter$7(SecurityActions.java:274)
    at org.infinispan.security.Security.doPrivileged(Security.java:59)
         ...
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

Environment

  • 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