apache / apache/arrow

[C++] Name the threads in thread pools

Open
#30,775 5 comments 0 reactions 0 assignees View on GitHub
Component: C++ Status: needs champion Type: enhancement
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

Via platform-specific functions like `pthread_setname_np` and `SetThreadDescription` we can assign names to threads that will be visible in debuggers, which can help debug async code where it's otherwise difficult to tell what thread pool a thread is part of.

**Reporter**: [David Li](https://issues.apache.org/jira/browse/ARROW-15284) / @lidavidm

**Note**: *This issue was originally created as [ARROW-15284](https://issues.apache.org/jira/browse/ARROW-15284). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

Contributor guide

Open the contributing guide

Research direction

Start by locating Apache Arrow's thread-pool implementations and the platform-specific naming entry points mentioned in the issue: pthread_setname_np and SetThreadDescription. Check how threads are created on each supported platform; done means thread-pool threads expose useful names in debuggers while unsupported platforms continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.