Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

mongo adaptor bulkWrite doesn't check for empty array #50

Closed
nstott opened this issue Jan 16, 2015 · 0 comments
Closed

mongo adaptor bulkWrite doesn't check for empty array #50

nstott opened this issue Jan 16, 2015 · 0 comments
Labels

Comments

@nstott
Copy link
Contributor

nstott commented Jan 16, 2015

panic: runtime error: index out of range

goroutine 146 [running]:
github.com/compose/transporter/pkg/adaptor.(_Mongodb).writeBuffer(0xc208066e70)
/Users/nick/hackery/go/src/github.com/compose/transporter/pkg/adaptor/mongodb.go:238 +0xe18
github.com/compose/transporter/pkg/adaptor.(_Mongodb).bulkWriter(0xc208066e70)

/Users/nick/hackery/go/src/github.com/compose/transporter/pkg/adaptor/mongodb.go:205 +0x61f
created by github.com/compose/transporter/pkg/adaptor.(*Mongodb).Listen
/Users/nick/hackery/go/src/github.com/compose/transporter/pkg/adaptor/mongodb.go:139 +0xa4

goroutine 1 [semacquire]:
sync.(*WaitGroup).Wait(0xc2080e91a0)
/usr/local/Cellar/go/1.4/libexec/src/sync/waitgroup.go:132 +0x169
main.main()

@nstott nstott added the bug label Jan 16, 2015
@nstott nstott closed this as completed in a0ac4c5 Jan 16, 2015
nstott added a commit that referenced this issue Jan 16, 2015
fixes #50, check for empty array (and increase buffer size)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant