Skip to content
New issue

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

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

Already on GitHub? # to your account

Handling FaissException in few destructors of ResultHandler.h #3311

Closed
wants to merge 1 commit into from

Conversation

kuarora
Copy link
Contributor

@kuarora kuarora commented Mar 22, 2024

Summary:
Context
Issue 2948 highlights potential issue of calling allocation on result handler which may throw exception but it is not handled.

In this diff,
I observed two calls where we may potentially call allocation in ResultHandler.h and handled FaissException.
1/ partial result when finalized in ~SingleResultHandler
2/ partial result when merged in ~RangeSearchBlockResultHandler

Differential Revision: D55258213

Summary:
**Context**
[Issue 2948](facebookresearch#2948) highlights potential issue of calling allocation on result handler which may throw exception but it is not handled.

**In this diff**,
I observed two calls where we may potentially call allocation in ResultHandler.h and handled FaissException.
1/ partial result when finalized in ~SingleResultHandler
2/ partial result when merged in ~RangeSearchBlockResultHandler

Differential Revision: D55258213
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D55258213

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 798427c.

abhinavdangeti pushed a commit to blevesearch/faiss that referenced this pull request Jul 12, 2024
…okresearch#3311)

Summary:
Pull Request resolved: facebookresearch#3311

**Context**
[Issue 2948](facebookresearch#2948) highlights potential issue of calling allocation on result handler which may throw exception but it is not handled.

**In this diff**,
I observed two calls where we may potentially call allocation in ResultHandler.h and handled FaissException.
1/ partial result when finalized in ~SingleResultHandler
2/ partial result when merged in ~RangeSearchBlockResultHandler

Reviewed By: junjieqi

Differential Revision: D55258213

fbshipit-source-id: 259be472e73619b2fcb0ea480d6d3486affeafdf
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants