We're trying to make sense of some external code that was given to us. The code is a Mason web front-end to some mysql INNODB tables. Access to the tables is through Class::DBI (hence Ima). The code is running from mod_perl 1.99 on Apache 2. The code uses transactions.

Here's the semi-mystery: within one browser window, the app changes the DB, and those changes are seen. From a different browser window, however, those changes are sometimes not seen -- the other window (be it on a different client box, or a different browser on the same client box), it is as if the database doesn't see the txn, or the commit.

Anyone have any clues as to what this might be, as we explore the code and start ex-post-facto building tests for it? There do appear to be  Table->dbi_commit in the right places, but, we're just diving into this morass....


In reply to advice about 'stale' data --> Ima, shared dbh handles, and txns by water

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.