cartridge-java
cartridge-java copied to clipboard
Implement Tarantool version verification for feature toggling
Problem statement
Currently, the Tarantool version is not checked which may lead to the user receiving server errors or missing features like updating by JSON paths since Tarantool 2.3.
Proposed solution
Implement checking the Tarantool version and a service for fencing the parts of code depending on the current Tarantool version:
- parse the Tarantool header into parts (currently the version is not parsed)
- use the version holder in a singleton service
- add new exception type
- make version holder stick with connection, implement cross-checking of version in connections (either forbid connecting of one driver instance to the servers with different versions or maintain the minimal version (?)
Ween need to look at IPROTO ID feature in Tarantool 2.10.