Closed ondi closed 2 years ago
I got this bug too, this issue happens frequently in kubernetes+istio environment
Ondi, I see that you are running v0.10.0 from your stack trace. When did you first start seeing this problem?
Kevinyjn, could you include the full panic message that you receive? And when did you first start seeing the problem?
I believe I see the problem. I will issue a pull request with a fix.
As it turns out, this was corrected with pull request #662 on July 8, 2021. Please update to commit b59767277ee66eb0b711fe8f042bfb5a1b1da70e or later. The fix is not yet contained in any tagged release.
I've tagged a new release.
Ondi, I see that you are running v0.10.0 from your stack trace. When did you first start seeing this problem?
Kevinyjn, could you include the full panic message that you receive? And when did you first start seeing the problem?
panic: driver.ErrBadConn in checkBadConn. This should not happen. github.com/denisenkom/go-mssqldb.(Conn).checkBadConn(0xc001aa3110, 0x1d4fac0, 0xc00003ce30, 0x0, 0x0) /go/pkg/mod/github.com/denisenkom/go-mssqldb@v0.10.0/mssql.go:183 +0x1cf github.com/denisenkom/go-mssqldb.(Stmt).exec(0xc002e45c58, 0x1d78e00, 0xc0038aaf60, 0x29187f8, 0x0, 0x0, 0x7f6f7002a220, 0xc002e45bd8, 0xcfbef1, 0xc001e42260) /go/pkg/mod/github.com/denisenkom/go-mssqldb@v0.10.0/mssql.go:647 +0xc5 github.com/denisenkom/go-mssqldb.(Stmt).ExecContext(0xc002e45c58, 0x1d78e00, 0xc0038aaf60, 0x0, 0x0, 0x0, 0x420450, 0xc015d98a70, 0x10, 0x1) /go/pkg/mod/github.com/denisenkom/go-mssqldb@v0.10.0/mssql.go:974 +0x169 github.com/denisenkom/go-mssqldb.(Conn).Ping(0xc001aa3110, 0x1d78e00, 0xc0038aaf60, 0x0, 0xc00006f800) /go/pkg/mod/github.com/denisenkom/go-mssqldb@v0.10.0/mssql.go:899 +0x99
Describe the bug panic
To Reproduce long running server error
Expected behavior no panic
Further technical details
SQL Server version: (e.g. SQL Server 2017) Operating system: Fedora 34 go version devel go1.18-f118d145a5 Tue Aug 31 08:41:16 2021 +0000 linux/amd64
Additional context Add any other context about the problem here.