Skip to content

[sqlite3] context manager leaves db locked if commit fails in __exit__ #71521

Description

@lciti
mannequin
BPO 27334
Nosy @vstinner, @ambv, @berkerpeksag, @lciti, @pablogsal, @erlend-aasland
PRs
  • bpo-27334: roll back transaction if sqlite3 context manager fails to commit #26202
  • bpo-27334: Fix ref. leak introduced by GH-26202 #27942
  • [3.10] bpo-27334: roll back transaction if sqlite3 context manager fails to commit (GH-26202) #27943
  • [3.9] bpo-27334: roll back transaction if sqlite3 context manager fails to commit (GH-26202) #27944
  • Files
  • fix_pysqlite_connection_exit.patch: Patch.
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2021-08-28.18:41:36.848>
    created_at = <Date 2016-06-16.16:45:50.319>
    labels = ['extension-modules', 'type-bug', '3.9', '3.10', '3.11']
    title = '[sqlite3] context manager leaves db locked if commit fails in __exit__'
    updated_at = <Date 2021-08-31.22:06:54.828>
    user = 'https://github.com/lciti'

    bugs.python.org fields:

    activity = <Date 2021-08-31.22:06:54.828>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-08-28.18:41:36.848>
    closer = 'erlendaasland'
    components = ['Extension Modules']
    creation = <Date 2016-06-16.16:45:50.319>
    creator = 'lciti'
    dependencies = []
    files = ['43420']
    hgrepos = []
    issue_num = 27334
    keywords = ['patch']
    message_count = 10.0
    messages = ['268678', '268680', '393839', '393912', '400253', '400266', '400287', '400491', '400493', '400790']
    nosy_count = 7.0
    nosy_names = ['ghaering', 'vstinner', 'lukasz.langa', 'berker.peksag', 'lciti', 'pablogsal', 'erlendaasland']
    pr_nums = ['26202', '27942', '27943', '27944']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue27334'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Activity

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9 (EOL)end of lifeextension-modulesC modules in the Modules dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions