Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
database/sql: possible race condition when canceling Tx with open Rows #20622
The following program produces a race condition for both mysql and sqlserver drivers. While this could be a common issue with both drivers, it is also possible it is an issue with database/sql.
Race report using sqlserver driver
Race report using the mysql driver
orig from google/trillian#617
After instrumenting the fakeConn with a var that gets read and written to on each call, the concurrency test blew up on the race try bot, though I'm having trouble replicating it locally. This was after I fixed the above sql interface race.