[tarantool-patches] [PATCH 7/8] netbox: remove schema_version from requests

Konstantin Osipov kostja at tarantool.org
Tue May 8 19:06:29 MSK 2018


* Vladislav Shpilevoy <v.shpilevoy at tarantool.org> [18/04/16 21:44]:

> Schema_version was used in netbox to update local box-like
> schema. The box-like schema makes able to access spaces and
> indexes via connection object.
> 
> It was updated each time, when a response from a server is
> received with a schema version non-equal to the local value.
> 
> But there was no reason why a schema version is needed in a
> request. It leads to ER_WRONG_SCHEMA_VERSION error sometimes,
> but netbox on this error just resends the same request again. The
> same behaviour can be reached with just no sending any schema
> version to a server.

As far as I can see you removed all checks for schema_version and
never re-fetch the schema after a connection is established,
despite what you write in the comment.

Please explain how you ever check that schema has changed when
performing a request.

> 
> Remove schema_version from request, and just track schema version
> changes in responses.
> 
> Part of #3351
> Part of #3333
> Follow up #3107

-- 
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.io - www.twitter.com/kostja_osipov



More information about the Tarantool-patches mailing list