Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maint: Remove use of folly/system/ThreadName.h #1446

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

ianthomas23
Copy link
Collaborator

Reference Issues/PRs

Fixes one item of the folly replacement plan, issue #1412.

What does this implement or fix?

This removes use of folly/system/ThreadName.h. It was used in two places to obtain a std::string name of a thread, and here is replaced with conversion of unique thread ID to a string using fmt via

fmt::format("{}", arcticdb::get_thread_id())

Any other comments?

This is used in two places, the first in the termination handler in python_module.cpp which I have manually tested. The second use is in the Remotery which, as far as I can tell, is not tested in CI so I am not sure of the status of the Remotery support.

@ianthomas23 ianthomas23 mentioned this pull request Mar 20, 2024
17 tasks
Copy link
Collaborator

@jjerphan jjerphan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you, @ianthomas23.

I am not sure whether Remotery should be kept: is it still used?

Signed-off-by: Ian Thomas <ianthomas23@gmail.com>
@ianthomas23 ianthomas23 force-pushed the ianthomas23/remove_folly_threadname branch from 546896f to 32a6ab3 Compare March 21, 2024 09:26
@ianthomas23 ianthomas23 merged commit 6c05e74 into master Mar 21, 2024
114 checks passed
@ianthomas23 ianthomas23 deleted the ianthomas23/remove_folly_threadname branch March 21, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants