Race condition when using multiprocessing BaseManager and Pool in Python3

Open
#88,321 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start with the linked BPO issue 44155 and PR 26332, then inspect the multiprocessing BaseManager and Pool interaction described in the title. Reproduce the race under Python 3 and compare the behavior with the proposed PR; done means the race is resolved and the relevant behavior is verified by the project’s checks.

Written by the indexing model from the issue text.

Description

3.9 (EOL) stdlib topic-multiprocessing type-bug
BPO 44155
Nosy @Junnplus
PRs
  • python/cpython#26332
  • 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 = None
    created_at = <Date 2021-05-17.08:50:27.110>
    labels = ['type-bug', 'library', '3.9']
    title = 'Race condition when using multiprocessing BaseManager and Pool in Python3'
    updated_at = <Date 2021-05-24.14:27:35.818>
    user = 'https://bugs.python.org/chenzhuowansui'
    

    bugs.python.org fields:

    activity = <Date 2021-05-24.14:27:35.818>
    actor = 'junnplus'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2021-05-17.08:50:27.110>
    creator = 'chenzhuowansui'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44155
    keywords = ['patch']
    message_count = 2.0
    messages = ['393796', '394240']
    nosy_count = 2.0
    nosy_names = ['chenzhuowansui', 'junnplus']
    pr_nums = ['26332']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue44155'
    versions = ['Python 3.9']
    

    Dominant language
    Python
    Stars
    77.2k
    Forks
    36k
    Avg merge
    1d 9h
    Merged PRs (30d)
    558

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    More from python/cpython

    All issues in python/cpython

    Similar issues

    More Python issues

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.