-
Type: Bug
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: 3.4.4
-
Component/s: None
[2017/06/05 18:14:01.465] WARNING: DATA RACE [2017/06/05 18:14:01.465] Write at 0x00c42000f400 by goroutine 33: [2017/06/05 18:14:01.465] os.(*file).close() [2017/06/05 18:14:01.465] /opt/go/src/os/file_unix.go:143 +0x124 [2017/06/05 18:14:01.465] os.(*File).Close() [2017/06/05 18:14:01.465] /opt/go/src/os/file_unix.go:132 +0x55 [2017/06/05 18:14:01.465] _/data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/mongoimport.(*MongoImport).ImportDocuments() [2017/06/05 18:14:01.465] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/mongoimport/mongoimport.go:329 +0x63e [2017/06/05 18:14:01.465] _/data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/mongoimport.TestImportDocuments.func1.3() [2017/06/05 18:14:01.465] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/mongoimport/mongoimport_test.go:525 +0x149 [2017/06/05 18:14:01.465] github.com/smartystreets/goconvey/convey.parseAction.func1() [2017/06/05 18:14:01.465] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/smartystreets/goconvey/convey/discovery.go:80 +0x3d [2017/06/05 18:14:01.465] github.com/smartystreets/goconvey/convey.(*context).conveyInner() [2017/06/05 18:14:01.465] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/smartystreets/goconvey/convey/context.go:261 +0x1bd [2017/06/05 18:14:01.465] github.com/smartystreets/goconvey/convey.(*context).Convey.func1() [2017/06/05 18:14:01.465] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/smartystreets/goconvey/convey/context.go:163 +0x95 [2017/06/05 18:14:01.465] github.com/jtolds/gls._m() [2017/06/05 18:14:01.465] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/jtolds/gls/stack_tags.go:39 +0x42 [2017/06/05 18:14:01.465] github.com/jtolds/gls.mark1() [2017/06/05 18:14:01.465] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/jtolds/gls/stack_tags.go:18 +0x42 [2017/06/05 18:14:01.465] github.com/jtolds/gls._m() [2017/06/05 18:14:01.465] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/jtolds/gls/stack_tags.go:41 +0x9d [2017/06/05 18:14:01.465] github.com/jtolds/gls.markS() [2017/06/05 18:14:01.466] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/jtolds/gls/stack_tags.go:16 +0x42 [2017/06/05 18:14:01.466] github.com/jtolds/gls.addStackTag() [2017/06/05 18:14:01.466] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/jtolds/gls/stack_tags.go:13 +0x47 [2017/06/05 18:14:01.466] github.com/jtolds/gls.(*ContextManager).SetValues() [2017/06/05 18:14:01.466] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/jtolds/gls/context.go:92 +0x549 [2017/06/05 18:14:01.466] github.com/smartystreets/goconvey/convey.(*context).Convey() [2017/06/05 18:14:01.466] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/smartystreets/goconvey/convey/context.go:164 +0x377 [2017/06/05 18:14:01.466] github.com/smartystreets/goconvey/convey.Convey() [2017/06/05 18:14:01.466] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/smartystreets/goconvey/convey/doc.go:77 +0x63 [2017/06/05 18:14:01.466] _/data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/mongoimport.TestImportDocuments.func1() [2017/06/05 18:14:01.466] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/mongoimport/mongoimport_test.go:528 +0x2ce [2017/06/05 18:14:01.466] github.com/smartystreets/goconvey/convey.parseAction.func1() [2017/06/05 18:14:01.466] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/smartystreets/goconvey/convey/discovery.go:80 +0x3d [2017/06/05 18:14:01.466] github.com/smartystreets/goconvey/convey.(*context).conveyInner() [2017/06/05 18:14:01.466] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/smartystreets/goconvey/convey/context.go:261 +0x1bd [2017/06/05 18:14:01.466] github.com/smartystreets/goconvey/convey.rootConvey.func1() [2017/06/05 18:14:01.466] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/smartystreets/goconvey/convey/context.go:110 +0x194 [2017/06/05 18:14:01.466] github.com/jtolds/gls._m() [2017/06/05 18:14:01.466] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/jtolds/gls/stack_tags.go:39 +0x42 [2017/06/05 18:14:01.466] github.com/jtolds/gls.markS() [2017/06/05 18:14:01.466] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/jtolds/gls/stack_tags.go:16 +0x42 [2017/06/05 18:14:01.466] github.com/jtolds/gls.addStackTag() [2017/06/05 18:14:01.466] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/jtolds/gls/stack_tags.go:13 +0x47 [2017/06/05 18:14:01.466] github.com/jtolds/gls.(*ContextManager).SetValues() [2017/06/05 18:14:01.466] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/jtolds/gls/context.go:92 +0x549 [2017/06/05 18:14:01.466] github.com/smartystreets/goconvey/convey.rootConvey() [2017/06/05 18:14:01.466] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/smartystreets/goconvey/convey/context.go:113 +0x4c7 [2017/06/05 18:14:01.466] github.com/smartystreets/goconvey/convey.Convey() [2017/06/05 18:14:01.466] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/vendor/src/github.com/smartystreets/goconvey/convey/doc.go:75 +0x94 [2017/06/05 18:14:01.466] _/data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/mongoimport.TestImportDocuments() [2017/06/05 18:14:01.466] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/mongoimport/mongoimport_test.go:775 +0x1cc [2017/06/05 18:14:01.466] testing.tRunner() [2017/06/05 18:14:01.466] /opt/go/src/testing/testing.go:610 +0xc9 [2017/06/05 18:14:01.466] Previous read at 0x00c42000f400 by goroutine 70: [2017/06/05 18:14:01.466] os.(*File).read() [2017/06/05 18:14:01.466] /opt/go/src/os/file_unix.go:228 +0x50 [2017/06/05 18:14:01.466] os.(*File).Read() [2017/06/05 18:14:01.466] /opt/go/src/os/file.go:101 +0x6f [2017/06/05 18:14:01.466] bufio.(*Reader).fill() [2017/06/05 18:14:01.466] /opt/go/src/bufio/bufio.go:97 +0x196 [2017/06/05 18:14:01.466] bufio.(*Reader).Read() [2017/06/05 18:14:01.466] /opt/go/src/bufio/bufio.go:209 +0x6ab [2017/06/05 18:14:01.467] _/data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/mongoimport.(*bomDiscardingReader).Read() [2017/06/05 18:14:01.467] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/mongoimport/common.go:123 +0xb7 [2017/06/05 18:14:01.467] _/data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/mongoimport.(*sizeTrackingReader).Read() [2017/06/05 18:14:01.467] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/mongoimport/common.go:93 +0x75 [2017/06/05 18:14:01.467] github.com/mongodb/mongo-tools/common/json.(*Decoder).readValue() [2017/06/05 18:14:01.467] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/.gopath/src/github.com/mongodb/mongo-tools/common/json/stream.go:166 +0x499 [2017/06/05 18:14:01.467] github.com/mongodb/mongo-tools/common/json.(*Decoder).ScanObject() [2017/06/05 18:14:01.467] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/.gopath/src/github.com/mongodb/mongo-tools/common/json/stream.go:67 +0x113 [2017/06/05 18:14:01.467] _/data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/mongoimport.(*JSONInputReader).StreamDocument.func1() [2017/06/05 18:14:01.467] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/mongoimport/json.go:118 +0xae [2017/06/05 18:14:01.467] Goroutine 33 (running) created at: [2017/06/05 18:14:01.467] testing.(*T).Run() [2017/06/05 18:14:01.467] /opt/go/src/testing/testing.go:646 +0x52f [2017/06/05 18:14:01.467] testing.RunTests.func1() [2017/06/05 18:14:01.467] /opt/go/src/testing/testing.go:793 +0xb9 [2017/06/05 18:14:01.467] testing.tRunner() [2017/06/05 18:14:01.467] /opt/go/src/testing/testing.go:610 +0xc9 [2017/06/05 18:14:01.467] testing.RunTests() [2017/06/05 18:14:01.467] /opt/go/src/testing/testing.go:799 +0x4ba [2017/06/05 18:14:01.467] testing.(*M).Run() [2017/06/05 18:14:01.467] /opt/go/src/testing/testing.go:743 +0x12f [2017/06/05 18:14:01.467] main.main() [2017/06/05 18:14:01.467] _/data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/mongoimport/_test/_testmain.go:110 +0x1b8 [2017/06/05 18:14:01.467] Goroutine 70 (running) created at: [2017/06/05 18:14:01.467] _/data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/mongoimport.(*JSONInputReader).StreamDocument() [2017/06/05 18:14:01.467] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/mongoimport/json.go:135 +0xbc [2017/06/05 18:14:01.467] _/data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/mongoimport.(*MongoImport).importDocuments.func1() [2017/06/05 18:14:01.467] /data/mci/a22512b5cb91d6ad86d2d508e5f77318/src/mongoimport/mongoimport.go:386 +0x55 [2017/06/05 18:14:01.467] ==================
- duplicates
-
TOOLS-1411 seemingly rare data race in mongoimport
- Closed