Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-18072

sometimes DataSourceTransactionManager.commit do null and locking tables subsequently

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 26.1.3.Final
    • Transactions
    • None
    • Hide

      1. sqlserver 2008 r2 or later.
      2. user name 01004 or 01005, password 01004, or 01005
      3. login will insert a record into yb_rz and update a record in yc_yg.
      4. login without commit will lock the tables and manully commit will unlock.
      transaction without a commit, e.g,
      TransactionStatus staus = this.transactionManager.getTransaction(this.def);

      { String sql = ""; sql = "delete yb_dbys5 where pkid = " + id; iReturn = this.jdbcTemplate.update(sql); }

      this.transactionManager.commit(staus);
      } catch (DataAccessException e)

      { this.transactionManager.rollback(staus); throw e; }

      return iReturn;

      Show
      1. sqlserver 2008 r2 or later. 2. user name 01004 or 01005, password 01004, or 01005 3. login will insert a record into yb_rz and update a record in yc_yg. 4. login without commit will lock the tables and manully commit will unlock. transaction without a commit, e.g, TransactionStatus staus = this.transactionManager.getTransaction(this.def); { String sql = ""; sql = "delete yb_dbys5 where pkid = " + id; iReturn = this.jdbcTemplate.update(sql); } this.transactionManager.commit(staus); } catch (DataAccessException e) { this.transactionManager.rollback(staus); throw e; } return iReturn;
    • ---
    • ---

      in jboss5.1 transaction without a commit will report a error and close the connection. but the wildfly 21 to 26 sometimes transaction commit do nothing and will not report and all the user interface seems normal at all, but all the tables update from this transaction has been locked until the AS is closed and all the updates will rolled back.

        1. error-jboss51-1.txt
          0.5 kB
        2. heb.war
          64.08 MB
        3. hebdb-reproducer.bak
          1.77 MB
        4. lock-line187-1.txt
          17 kB
        5. mssql-ds -reproducer.xml
          3 kB
        6. stack-jboss51-1.txt
          8 kB
        7. standalone-reproducer.xml
          31 kB

            Unassigned Unassigned
            jetty__lee jetty lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: