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

Crashes on large result sets #4

Open
msakrejda opened this issue Feb 10, 2014 · 0 comments
Open

Crashes on large result sets #4

msakrejda opened this issue Feb 10, 2014 · 0 comments

Comments

@msakrejda
Copy link
Owner

Small queries work fine, but big queries crash the system:

maciek=# select g from generate_series(1,100) g;
...
maciek=# select g from generate_series(1,1000) g;
The connection to the server was lost. Attempting reset: Failed.
!> 

The stack trace of the running goroutine looks like this:

panic: unexpected EOF

goroutine 11 [running]:
github.com/deafbybeheading/femebe/core.(*Message).InitFromMessage(0xc20011dc30, 0xc2000a6620)
    /home/maciek/.gvm/pkgsets/go1.1/global/src/github.com/deafbybeheading/femebe/core/framing.go:132 +0x81
main.(*sniffingRouter).RouteBackend(0xc2000a65b0, 0x0, 0x0)
    /home/maciek/code/aux/go/src/github.com/deafbybeheading/cartographer/sniffing_proxy.go:76 +0xec
github.com/deafbybeheading/femebe.Router.RouteBackend·fm(0x0, 0x0)
    /home/maciek/.gvm/pkgsets/go1.1/global/src/github.com/deafbybeheading/femebe/porcelain.go:265 +0x3e
github.com/deafbybeheading/femebe/util.ErrToChannel(0x7f63364d5f98, 0xc2000c1300)
    /home/maciek/.gvm/pkgsets/go1.1/global/src/github.com/deafbybeheading/femebe/util/util.go:16 +0x3a
github.com/deafbybeheading/femebe.func·002()
    /home/maciek/.gvm/pkgsets/go1.1/global/src/github.com/deafbybeheading/femebe/porcelain.go:0 +0x64
created by github.com/deafbybeheading/femebe.(*simpleSession).Run
    /home/maciek/.gvm/pkgsets/go1.1/global/src/github.com/deafbybeheading/femebe/porcelain.go:267 +0x101

At first glance, both the Cartographer code and high-level FEMEBE code look legit, so something more subtle is going on.

As reported by @pvh.

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

No branches or pull requests

1 participant