Skip to content

PHPLIB-537: Use whitelist to check if a change stream is resumable #729

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

Merged
merged 4 commits into from
Mar 26, 2020

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Mar 24, 2020

@alcaeus alcaeus requested a review from p-mongo March 24, 2020 11:28
@alcaeus alcaeus self-assigned this Mar 24, 2020
}

if (in_array($exception->getCode(), self::$nonResumableErrorCodes)) {
if ($exception->hasErrorLabel('NonResumableChangeStreamError')) {
Copy link

Choose a reason for hiding this comment

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

I do not see anything in the spec about "NonResumableChangeStreamError" label, is this something PHP POCed?

Copy link

Choose a reason for hiding this comment

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

Based on mongodb/specifications@f93d781#diff-875f237661962b4ca9b2e58d97449831L49 and the conversation in driver-devs I am under the impression that this error label should no longer be consulted, what do you think @alcaeus ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that is correct. I've removed the label.

@alcaeus alcaeus merged commit 7b084d3 into mongodb:master Mar 26, 2020
@alcaeus alcaeus deleted the phplib-537 branch March 26, 2020 11:17
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