[infinispan-issues] [JBoss JIRA] (ISPN-9025) Transaction Leak when API invoked with invalid arguments
Pedro Ruivo (JIRA)
issues at jboss.org
Thu Mar 29 12:26:00 EDT 2018
Pedro Ruivo created ISPN-9025:
---------------------------------
Summary: Transaction Leak when API invoked with invalid arguments
Key: ISPN-9025
URL: https://issues.jboss.org/browse/ISPN-9025
Project: Infinispan
Issue Type: Bug
Reporter: Pedro Ruivo
Assignee: Pedro Ruivo
{{APINonTxTest}} is leaking transactions in {{testReplaceNullKeyParameter()}} and related methods (for transaction configurations). The implicit transaction is created and then a {{NullPointerException}} is thrown because of invalid arguments. The transaction stays in {{TransactionTable}} forever making the {{TransactionTable.stop()}} slow.
{{testStopClearsData()}} runs slow (30sec) because it waits for the leaking transactions to finish (in a total of 2 min since the test is executed 4 times for different tx configurations)
IMO, the best solution would be a {{Supplier}} or {{IntFunction}} and only create the {{InvocationContext}} and implicit transaction in the last moment.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the infinispan-issues
mailing list