Skip to content

Calls to routers and storages when crud-router and crud-storage roles initialization is not finished yet #229

Closed
@savinov

Description

@savinov

There are exceptions trown in cartridge-java driver due to crud-router and crud-storage roles initialization issues.

How to repoduce:

  • run some load test to call crud.select (with prefer_replica=true and balance=true) and crud.upsert
  • stop/start a few routers
  • stop/start a few replicas (not leaders) in replicasets

Result for select:

org.springframework.dao.DataRetrievalFailureException: InnerErrorMessage:
code: 33
message: Procedure '_crud.select_on_storage' is not defined; nested exception is io.tarantool.driver.exceptions.TarantoolInternalException: InnerErrorMessage:
code: 33
message: Procedure '_crud.select_on_storage' is not defined

Result for upsert:

Caused by: io.tarantool.driver.exceptions.TarantoolInternalException: InnerErrorMessage:
code: 32
message: ...example.lua:100: variable 'crud' is not declared

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions