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

fix: diskann hang out in release function #241

Closed
wants to merge 1 commit into from

Conversation

cqy123456
Copy link
Collaborator

No description provided.

@sre-ci-robot sre-ci-robot requested review from hhy3 and liliu-z December 1, 2023 03:57
@sre-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cqy123456

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cqy123456 cqy123456 changed the title Diskann release flag control by async thread itself fix: diskann hang out in release function Dec 1, 2023
@@ -307,6 +307,7 @@ namespace diskann {
std::string sample_bin, _u64 l_search, _u64 beamwidth,
_u64 num_nodes_to_cache) {
#endif
this->async_generate_cache.store(true);
Copy link
Collaborator

Choose a reason for hiding this comment

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

If it is false during the destruction check, and then do cache gen, crash will occur.

@liliu-z
Copy link
Collaborator

liliu-z commented Dec 1, 2023

/lgtm

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

Successfully merging this pull request may close these issues.

3 participants