-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Javascript driver makes irritating assumptions about batched streams #1544
Comments
If I'm not mistaken, the reason why the server has ton compute one piece of data before sending SUCCESS_PARTIAL is because of Are you suggesting that |
The javascript driver can hold on to the one result rather than expecting the server to. It doesn't give the user the last result of a |
Note that it should be a different protocol buffer command that implements these new semantics -- the existing one that gets these SUCCESS_PARTIAL and SUCCESS_STREAM responses should be marked obsolete but still supported for now to save our users some pain when upgrading. |
Assigning to @Tryneus. |
I have a fix up for the js driver in review 1001. This also includes a change for the server to no longer ensure that |
Currently, the javascript driver assumes that if it gets back SUCCESS_PARTIAL, there is more data to be read. That is, it can't handle a SUCCESS_PARTIAL followed by an empty SUCCESS_STREAM.
The server currently supports this assumption by holding on to at least one piece of data before sending back SUCCESS_PARTIAL. It would be nice if we didn't have to do this.
The text was updated successfully, but these errors were encountered: