Skip to content

asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost #68000

@gustavo

Description

@gustavo
mannequin
BPO 23812
Nosy @gvanrossum, @vstinner, @1st1
Files
  • bug-test.diff: test case patch
  • Issue23812.diff: A patch that fixes the problem
  • queue_bug.py
  • p.diff: patch to refactor Queue.get()
  • 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 2015-08-05.17:59:43.619>
    created_at = <Date 2015-03-30.13:59:52.739>
    labels = ['deferred-blocker', 'type-bug', 'expert-asyncio']
    title = 'asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost'
    updated_at = <Date 2015-08-07.16:37:54.660>
    user = 'https://bugs.python.org/gustavo'

    bugs.python.org fields:

    activity = <Date 2015-08-07.16:37:54.660>
    actor = 'yselivanov'
    assignee = 'none'
    closed = True
    closed_date = <Date 2015-08-05.17:59:43.619>
    closer = 'yselivanov'
    components = ['asyncio']
    creation = <Date 2015-03-30.13:59:52.739>
    creator = 'gustavo'
    dependencies = []
    files = ['38740', '38741', '38820', '40142']
    hgrepos = []
    issue_num = 23812
    keywords = ['patch']
    message_count = 24.0
    messages = ['239611', '239624', '239625', '239627', '239628', '239679', '239738', '240006', '246762', '248055', '248056', '248137', '248138', '248144', '248145', '248146', '248148', '248150', '248157', '248181', '248187', '248203', '248206', '248207']
    nosy_count = 5.0
    nosy_names = ['gvanrossum', 'gustavo', 'vstinner', 'python-dev', 'yselivanov']
    pr_nums = []
    priority = 'deferred blocker'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue23812'
    versions = ['Python 3.4', 'Python 3.5']

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions