Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8767749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:53:47+00:00 2026-06-13T16:53:47+00:00

I have inherited a system built on a MySQL database using InnoDB tables. The

  • 0

I have inherited a system built on a MySQL database using InnoDB tables. The system has a bug that shows up under heavy load. I have created some jmeter tests to load up the system hoping to see the bug in a controlled environment. However, I am not stressing the system correctly and the bug is never showing. The current theory is that heavily locked tables are causing a rollback, leaving the user’s data in an odd state. This likely means that the transactions are not structured correctly and I want to find and fix that, but I need to find the problem first.

I surmise that if I can create various controlled “table locking loads” in the database I can then run my simulated users on the whole system and force the bug to occur or prove the theory wrong, but I’m not sure how to create such a thing. Does anyone have an idea for how best to do this? At this point I’m not even sure what a poor first version would look like, so any ideas to get me started would help. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:53:48+00:00Added an answer on June 13, 2026 at 4:53 pm

    If you are specifically looking for a locked state for a row in a table (i assume this is what you mean unless you are performing alterations to the table itself on the fly). You can implement this by having a second script initiate a transaction on a set of rows and then pause for some period of time before rolling back or committing the transaction.

    Lets say you have this table structure for example:

    CREATE TABLE `allkindsofvalues` (
      `value1` int(11) NOT NULL,
      `value2` int(11) NOT NULL,
      `irrelevant_value3` int(11) NOT NULL,
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
    

    Open up a MySQL prompt and initiate a transaction:

    BEGIN;
    
    UPDATE allkindsofvalues SET irrelevant_value3 = '32143234232';
    

    Now fire up your application. At this point any attempts to use these rows will await for the initiated transaction to complete.

    The moment you COMMIT or ROLLBACK the transaction in the MySQL prompt, things should continue normally, but until that point the rows will be in a locked state, unavailable for access. Which it sounds like is the condition you are attempting to replicate.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built a jQuery 5 star rating system, ratings are inserted/stored in database
I have a class that inherits the built in System.Windows.Forms.Panel class. According to the
I inherited a system that has a few flaws. Due to an oversight in
I have an ASP.NET MVC page that has left Menu Navigation that is built
So my team has inherited a legacy system which provides reports using the dhtmlxgrid
I have a C# class that I have inherited. I have successfully built the
We have inherited an application (Java-based, running on WebLogic 10.3.5) that makes extensive use
I have inherited a somewhat messy query that I am working on refactoring to
I have a make build system that I am trying to decipher that someone
I'm using DotNetOpenAuth as my membership system, and the way I have it working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.