Skip to content
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

Connect fails on loading schema #3

Closed
dokshina opened this issue Feb 26, 2021 · 2 comments · Fixed by #4
Closed

Connect fails on loading schema #3

dokshina opened this issue Feb 26, 2021 · 2 comments · Fixed by #4

Comments

@dokshina
Copy link
Contributor

Connect fails on loading schema with Error: Unhandled internal error: interface conversion: interface {} is int64, not uint64.

Tarantool version is 1.10.8.
Connector version is 0.1.1.

  ...
  /opt/hostedtoolcache/go/1.15.6/x64/src/runtime/panic.go:969 +0x1b9
github.com/FZambia/tarantool.(*Connection).loadSchema(0xc0005266c0, 0x0, 0x0)
  /home/runner/go/pkg/mod/github.com/!f!zambia/tarantool@v0.1.1/schema.go:166 +0x1619
github.com/FZambia/tarantool.(*Connection).dial(0xc0005266c0, 0xaa1752, 0xf4ed40)
  /home/runner/go/pkg/mod/github.com/!f!zambia/tarantool@v0.1.1/connection.go:543 +0x54c
github.com/FZambia/tarantool.(*Connection).createConnection(0xc0005266c0, 0x200, 0x200, 0xc000680000)
  /home/runner/go/pkg/mod/github.com/!f!zambia/tarantool@v0.1.1/connection.go:601 +0xab
github.com/FZambia/tarantool.Connect(0xc000520060, 0x19, 0x7ffdc78795cd, 0x5, 0x7ffdc78795d3, 0x10, 0x0, 0x0, 0x0, 0x0, ...)
  /home/runner/go/pkg/mod/github.com/!f!zambia/tarantool@v0.1.1/connection.go:257 +0x354

Full trace can be found here

I've used SkipSchema option to fix this for Cartridge CLI since it doesn't use schema, but somebody may use it.

@FZambia
Copy link
Owner

FZambia commented Feb 26, 2021

@dokshina hello, thanks!

I believe I fixed this in e425505 - though I have not found a way to reproduce it (don't know how I should configure Tarantool to make that branch of schema parsing code executed).

@dokshina
Copy link
Contributor Author

Thanks for quick fix!

We are trying to find some reproducer, and if we can, I will write some test for that.

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 a pull request may close this issue.

2 participants