cc_2019 created IGNITE-10992: -------------------------------- Summary: update Object type value of entry in EntryProcessor within transaction does not work Key: IGNITE-10992 URL: https://issues.apache.org/jira/browse/IGNITE-10992 Project: Ignite Issue Type: Bug Affects Versions: 2.7 Reporter: cc_2019
I have a value type as below {color:#000080}public class {color}Entity { String {color:#660e7a}id{color}; String {color:#660e7a}value{color}; Date {color:#660e7a}date{color}; } then interact with cache as below {color:#000080}try {color}(Transaction tx = ignite.transactions().txStart(TransactionConcurrency.{color:#660e7a}PESSIMISTIC{color}, TransactionIsolation.{color:#660e7a}SERIALIZABLE{color})) { cache1.invoke({color:#008000}"k6"{color}, {color:#000080}new {color}EntryProcessor<String, Entity, Object>() { {color:#808000}@Override {color} {color:#000080}public {color}Object process(MutableEntry<String, Entity> mutableEntry, Object... objects) {color:#000080}throws {color}EntryProcessorException { Entity e = mutableEntry.getValue(); e.setId({color:#008000}"hello3"{color}); e.setValue({color:#008000}"v3"{color}); mutableEntry.setValue(e); {color:#000080}return null{color}; } }); tx.commit(); } But entry value does not change after commit. If i code as below, entry value would change after commit. {color:#000080}try {color}(Transaction tx = ignite.transactions().txStart(TransactionConcurrency.{color:#660e7a}PESSIMISTIC{color}, TransactionIsolation.{color:#660e7a}SERIALIZABLE{color})) { cache1.invoke({color:#008000}"k6"{color}, {color:#000080}new {color}EntryProcessor<String, Entity, Object>() { {color:#808000}@Override {color} {color:#000080}public {color}Object process(MutableEntry<String, Entity> mutableEntry, Object... objects) {color:#000080}throws {color}EntryProcessorException { mutableEntry.setValue({color:#808080}new Entity("test2", "a2", new Date()){color}); {color:#000080}return null{color}; } }); tx.commit(); } I found that changes to entry would not take effect after commit when mutableEntry.getValue() called. -- This message was sent by Atlassian JIRA (v7.6.3#76005)