Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARNING: No txn item for itemId: <identifier> #1393

Closed
argotsdk opened this issue Dec 17, 2013 · 3 comments
Closed

WARNING: No txn item for itemId: <identifier> #1393

argotsdk opened this issue Dec 17, 2013 · 3 comments
Assignees
Labels
Source: Community PR or issue was opened by a community user
Milestone

Comments

@argotsdk
Copy link

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;
}

            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();
}

}

@gurbuzali
Copy link
Contributor

As you have observed this is not a defect but an unnecessary warning log.
Thank you for reporting.

@ghost ghost assigned gurbuzali Dec 17, 2013
@pveentjer
Copy link
Contributor

Is this issue already fixed? Can we close it?

@gurbuzali
Copy link
Contributor

yes this issue is already fixed, closing

@mmedenjak mmedenjak added the Source: Community PR or issue was opened by a community user label Jan 28, 2020
ufukyilmaz pushed a commit to ufukyilmaz/hazelcast that referenced this issue Mar 29, 2021
Fixes hazelcast#1393

Also includes:
* Use `JetClassLoader` in `Processor.init()` and `close()` methods
devOpsHazelcast pushed a commit that referenced this issue Apr 18, 2024
GitOrigin-RevId: 1f1a2d04b6d16d1d1c1fc5788f09b289b22e5893
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Source: Community PR or issue was opened by a community user
Projects
None yet
Development

No branches or pull requests

3 participants