Skip to content

iproto: disable feature discovery for specific versions #284

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

Conversation

olegrok
Copy link
Contributor

@olegrok olegrok commented Feb 27, 2023

"IProto features" are available since Tarantool 2.10 and there is no need to even try to fetch them for lower versions. Such check there is in netbox code [1].
Before this patch cartridge remote control closed the connection after RequestProtocolVersion however but for netbox it worked fine.
So let's uniform behaviour between connectors adding a small check to skip request if there is a gurarntee that "IProto features" are not supported.

Closes #283

[1] tarantool/tarantool@2cbec82#diff-a47383908beda20a06c9f64bf5c3d4c51879034e38bcdccdf45210e89ce6dfb7R1947

Copy link
Member

@DifferentialOrange DifferentialOrange left a comment

Choose a reason for hiding this comment

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

Thank you for your PR! Seems good. Can you add a changelog entry?

BTW, would you want a tagged release after I merge this one?

@olegrok olegrok force-pushed the 283-iproto-features-bug branch from 582016f to 7541aa0 Compare February 27, 2023 07:47
@olegrok
Copy link
Contributor Author

olegrok commented Feb 27, 2023

Can you add a changelog entry?

Yes. Fixed.

BTW, would you want a tagged release after I merge this one?

If you don't have any plans to add new features then yes. Otherwise I could wait some time.

@DifferentialOrange
Copy link
Member

If you don't have any plans to add new features then yes. Otherwise I could wait some time.

It seems that there is a bug issue which could also be fixed relatively quickly, so I'll release after we'll work through #282 too. But pip allows to install from master or other branches anyway, if you're interested.

"IProto features" are available since Tarantool 2.10 and there is
no need to even try to fetch them for lower versions.
Such check there is in netbox code [1].
Before this patch cartridge remote control closed the connection
after RequestProtocolVersion however but for netbox it worked
fine.
So let's uniform behaviour between connectors adding a small check
to skip request if there is a gurarntee that "IProto features" are
not supported.

Closes tarantool#283

[1] tarantool/tarantool@2cbec82#diff-a47383908beda20a06c9f64bf5c3d4c51879034e38bcdccdf45210e89ce6dfb7R1947
@olegrok olegrok force-pushed the 283-iproto-features-bug branch from 7541aa0 to cd72939 Compare February 27, 2023 08:18
@DifferentialOrange DifferentialOrange merged commit 599e3f4 into tarantool:master Feb 27, 2023
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.

backward compatibility is broken: module is not compatible with cartridge remote control
2 participants