You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Hazelcast 3.1.3 community edition. When rolling back a transaction on a Queue from a warning is shown. The rollback is successful, however, the warning is concerning:
Dec 17, 2013 12:14:46 PM com.hazelcast.queue.QueueContainer
WARNING: [1.2.3.4]:5702 [dev] No txn item for itemId: 60117
The Hazelcast instance is started by running run.bat. Items are added to the queue using the command line tool run.bat. The code on the client looks like.
int v = rand.nextInt(10);
if (v < 5) {
throw new Exception("something went wrong!");
}
context.commitTransaction();
} catch (Throwable t) {
System.out.println("Rolling back transaction");
context.rollbackTransaction();
}
}
The text was updated successfully, but these errors were encountered:
On Hazelcast 3.1.3 community edition. When rolling back a transaction on a Queue from a warning is shown. The rollback is successful, however, the warning is concerning:
Dec 17, 2013 12:14:46 PM com.hazelcast.queue.QueueContainer
WARNING: [1.2.3.4]:5702 [dev] No txn item for itemId: 60117
The Hazelcast instance is started by running run.bat. Items are added to the queue using the command line tool run.bat. The code on the client looks like.
ClientConfig clientConfig = ClientConfig();
clientConfig.addAddress("127.0.0.1:5701");
HazelcastInstance client = HazelcastClient.newHazelcastClient(clientConfig);
java.util.Random rand = new java.util.Random();
while (true) {
TransactionContext context = client.newTransactionContext();
context.beginTransaction();
try {
TransactionalQueue queue = context.getQueue("test");
String queue_data = queue.poll(60, TimeUnit.SECONDS);
if (queue_data == null) {
System.out.println("Rolling back transaction");
context.rollbackTransaction();
break;
}
}
The text was updated successfully, but these errors were encountered: