{"action":"closed","issue":{"url":"https://api.github.com/repos/go-ego/riot/issues/31","repository_url":"https://api.github.com/repos/go-ego/riot","labels_url":"https://api.github.com/repos/go-ego/riot/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/go-ego/riot/issues/31/comments","events_url":"https://api.github.com/repos/go-ego/riot/issues/31/events","html_url":"https://github.com/go-ego/riot/issues/31","id":291121811,"number":31,"title":"[Bug] DATA RACE while using storage.","user":{"login":"szyhf","id":14870120,"avatar_url":"https://avatars3.githubusercontent.com/u/14870120?v=4","gravatar_id":"","url":"https://api.github.com/users/szyhf","html_url":"https://github.com/szyhf","followers_url":"https://api.github.com/users/szyhf/followers","following_url":"https://api.github.com/users/szyhf/following{/other_user}","gists_url":"https://api.github.com/users/szyhf/gists{/gist_id}","starred_url":"https://api.github.com/users/szyhf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szyhf/subscriptions","organizations_url":"https://api.github.com/users/szyhf/orgs","repos_url":"https://api.github.com/users/szyhf/repos","events_url":"https://api.github.com/users/szyhf/events{/privacy}","received_events_url":"https://api.github.com/users/szyhf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/go-ego/riot/milestones/3","html_url":"https://github.com/go-ego/riot/milestone/3","labels_url":"https://api.github.com/repos/go-ego/riot/milestones/3/labels","id":2922605,"number":3,"title":"v0.20.0","description":"","creator":{"login":"vcaesar","id":16043470,"avatar_url":"https://avatars0.githubusercontent.com/u/16043470?v=4","gravatar_id":"","url":"https://api.github.com/users/vcaesar","html_url":"https://github.com/vcaesar","followers_url":"https://api.github.com/users/vcaesar/followers","following_url":"https://api.github.com/users/vcaesar/following{/other_user}","gists_url":"https://api.github.com/users/vcaesar/gists{/gist_id}","starred_url":"https://api.github.com/users/vcaesar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vcaesar/subscriptions","organizations_url":"https://api.github.com/users/vcaesar/orgs","repos_url":"https://api.github.com/users/vcaesar/repos","events_url":"https://api.github.com/users/vcaesar/events{/privacy}","received_events_url":"https://api.github.com/users/vcaesar/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":4,"state":"open","created_at":"2017-11-19T15:08:05Z","updated_at":"2018-03-13T12:06:29Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2018-01-24T08:28:28Z","updated_at":"2018-03-13T12:06:29Z","closed_at":"2018-03-13T12:06:29Z","author_association":"CONTRIBUTOR","body":"- Ego version (or commit ref):\r\n726c143577246eb664d61405cdc4a06a8d0d2bc5\r\n- Go version:\r\nv1.9.2\r\n- Gcc version:\r\nApple LLVM version 9.0.0 (clang-900.0.39.2)\r\n- Operating system and bit:\r\nmacOS\r\n- Can you reproduce the bug at [Examples](https://github.com/go-ego/riot/tree/master/examples):\r\n  - Yes, running `go build -race` and `./store` in `examples/store/...`\r\n- Log gist:\r\n\r\n## Description\r\nWhile using `go build -race` and running with storage: \r\n``` Go\r\n2018/01/24 16:24:53 Load the gse dictionary ../../data/dict/dictionary.txt\r\n2018/01/24 16:25:15 gse dictionary loaded finished.\r\n==================\r\nWARNING: DATA RACE\r\nRead at 0x000004b4c8c0 by main goroutine:\r\n  github.com/go-ego/riot.(*Engine).FlushIndex()\r\n      /go/src/github.com/go-ego/riot/engine.go:656 +0x78\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:60 +0x378\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n\r\nPrevious write at 0x000004b4c8c0 by goroutine 162:\r\n  sync/atomic.AddInt64()\r\n      /usr/local/go/src/runtime/race_amd64.s:276 +0xb\r\n  github.com/go-ego/riot.(*Engine).indexerAddDocWorker()\r\n      /go/src/github.com/go-ego/riot/indexer_worker.go:52 +0x1a2\r\n\r\nGoroutine 162 (running) created at:\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:275 +0x831\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).Read()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:93 +0x64e\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n==================\r\n==================\r\nWARNING: DATA RACE\r\nWrite at 0x000004b4c8c0 by goroutine 82:\r\n  sync/atomic.AddInt64()\r\n      /usr/local/go/src/runtime/race_amd64.s:276 +0xb\r\n  github.com/go-ego/riot.(*Engine).indexerAddDocWorker()\r\n      /go/src/github.com/go-ego/riot/indexer_worker.go:52 +0x1a2\r\n\r\nPrevious read at 0x000004b4c8c0 by main goroutine:\r\n  github.com/go-ego/riot.(*Engine).FlushIndex()\r\n      /go/src/github.com/go-ego/riot/engine.go:656 +0x78\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:60 +0x378\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n\r\nGoroutine 82 (running) created at:\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:275 +0x831\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).Read()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:93 +0x64e\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n==================\r\n==================\r\nWARNING: DATA RACE\r\nWrite at 0x000004b4c8c0 by goroutine 162:\r\n  sync/atomic.AddInt64()\r\n      /usr/local/go/src/runtime/race_amd64.s:276 +0xb\r\n  github.com/go-ego/riot.(*Engine).indexerAddDocWorker()\r\n      /go/src/github.com/go-ego/riot/indexer_worker.go:52 +0x1a2\r\n\r\nPrevious read at 0x000004b4c8c0 by main goroutine:\r\n  github.com/go-ego/riot.(*Engine).FlushIndex()\r\n      /go/src/github.com/go-ego/riot/engine.go:656 +0x78\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:60 +0x378\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n\r\nGoroutine 162 (running) created at:\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:275 +0x831\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).Read()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:93 +0x64e\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n==================\r\n==================\r\nWARNING: DATA RACE\r\nWrite at 0x000004b4c8f8 by goroutine 309:\r\n  sync/atomic.AddInt64()\r\n      /usr/local/go/src/runtime/race_amd64.s:276 +0xb\r\n  github.com/go-ego/riot.(*Engine).storageIndexDocWorker()\r\n      /go/src/github.com/go-ego/riot/storage_worker.go:52 +0x43e\r\n\r\nPrevious read at 0x000004b4c8f8 by main goroutine:\r\n  github.com/go-ego/riot.(*Engine).FlushIndex()\r\n      /go/src/github.com/go-ego/riot/engine.go:658 +0x138\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:60 +0x378\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n\r\nGoroutine 309 (running) created at:\r\n  github.com/go-ego/riot.(*Engine).Storage()\r\n      /go/src/github.com/go-ego/riot/engine.go:216 +0xbb3\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:289 +0x8df\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).Read()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:93 +0x64e\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n==================\r\n==================\r\nWARNING: DATA RACE\r\nWrite at 0x000004b4c8d0 by goroutine 42:\r\n  sync/atomic.AddInt64()\r\n      /usr/local/go/src/runtime/race_amd64.s:276 +0xb\r\n  github.com/go-ego/riot.(*Engine).indexerAddDocWorker()\r\n      /go/src/github.com/go-ego/riot/indexer_worker.go:55 +0x159\r\n\r\nPrevious read at 0x000004b4c8d0 by main goroutine:\r\n  github.com/go-ego/riot.(*Engine).FlushIndex()\r\n      /go/src/github.com/go-ego/riot/engine.go:667 +0x21a\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:60 +0x378\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n\r\nGoroutine 42 (running) created at:\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:275 +0x831\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).Read()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:93 +0x64e\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n==================\r\n==================\r\nWARNING: DATA RACE\r\nWrite at 0x000004b4c8d0 by goroutine 22:\r\n  sync/atomic.AddInt64()\r\n      /usr/local/go/src/runtime/race_amd64.s:276 +0xb\r\n  github.com/go-ego/riot.(*Engine).indexerAddDocWorker()\r\n      /go/src/github.com/go-ego/riot/indexer_worker.go:55 +0x159\r\n\r\nPrevious read at 0x000004b4c8d0 by main goroutine:\r\n  github.com/go-ego/riot.(*Engine).FlushIndex()\r\n      /go/src/github.com/go-ego/riot/engine.go:667 +0x21a\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:60 +0x378\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n\r\nGoroutine 22 (running) created at:\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:275 +0x831\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).Read()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:93 +0x64e\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n==================\r\n==================\r\nWARNING: DATA RACE\r\nWrite at 0x000004b4c8d0 by goroutine 122:\r\n  sync/atomic.AddInt64()\r\n      /usr/local/go/src/runtime/race_amd64.s:276 +0xb\r\n  github.com/go-ego/riot.(*Engine).indexerAddDocWorker()\r\n      /go/src/github.com/go-ego/riot/indexer_worker.go:55 +0x159\r\n\r\nPrevious read at 0x000004b4c8d0 by main goroutine:\r\n  github.com/go-ego/riot.(*Engine).FlushIndex()\r\n      /go/src/github.com/go-ego/riot/engine.go:667 +0x21a\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:60 +0x378\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n\r\nGoroutine 122 (running) created at:\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:275 +0x831\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).Read()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:93 +0x64e\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n==================\r\n==================\r\nWARNING: DATA RACE\r\nWrite at 0x000004b4c8d0 by goroutine 82:\r\n  sync/atomic.AddInt64()\r\n      /usr/local/go/src/runtime/race_amd64.s:276 +0xb\r\n  github.com/go-ego/riot.(*Engine).indexerAddDocWorker()\r\n      /go/src/github.com/go-ego/riot/indexer_worker.go:55 +0x159\r\n\r\nPrevious read at 0x000004b4c8d0 by main goroutine:\r\n  github.com/go-ego/riot.(*Engine).FlushIndex()\r\n      /go/src/github.com/go-ego/riot/engine.go:667 +0x21a\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:60 +0x378\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n\r\nGoroutine 82 (running) created at:\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:275 +0x831\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).Read()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:93 +0x64e\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n==================\r\n==================\r\nWARNING: DATA RACE\r\nWrite at 0x000004b4c8d0 by goroutine 102:\r\n  sync/atomic.AddInt64()\r\n      /usr/local/go/src/runtime/race_amd64.s:276 +0xb\r\n  github.com/go-ego/riot.(*Engine).indexerAddDocWorker()\r\n      /go/src/github.com/go-ego/riot/indexer_worker.go:55 +0x159\r\n\r\nPrevious read at 0x000004b4c8d0 by main goroutine:\r\n  github.com/go-ego/riot.(*Engine).FlushIndex()\r\n      /go/src/github.com/go-ego/riot/engine.go:667 +0x21a\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:60 +0x378\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n\r\nGoroutine 102 (running) created at:\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:275 +0x831\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).Read()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:93 +0x64e\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n==================\r\n2018/01/24 16:25:20 recover index number: 3\r\n==================\r\nWARNING: DATA RACE\r\nRead at 0x00c420087f28 by goroutine 86:\r\n  github.com/go-ego/riot/core.(*Indexer).Lookup()\r\n      /go/src/github.com/go-ego/riot/core/indexer.go:333 +0xbc\r\n  github.com/go-ego/riot.(*Engine).indexerLookupWorker()\r\n      /go/src/github.com/go-ego/riot/indexer_worker.go:82 +0x8d8\r\n\r\nPrevious write at 0x00c420087f28 by goroutine 82:\r\n  github.com/go-ego/riot/core.(*Indexer).AddDocs()\r\n      /go/src/github.com/go-ego/riot/core/indexer.go:220 +0x133f\r\n  github.com/go-ego/riot/core.(*Indexer).AddDocToCache()\r\n      /go/src/github.com/go-ego/riot/core/indexer.go:147 +0x8bc\r\n  github.com/go-ego/riot.(*Engine).indexerAddDocWorker()\r\n      /go/src/github.com/go-ego/riot/indexer_worker.go:48 +0x127\r\n\r\nGoroutine 86 (running) created at:\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:281 +0x774\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).Read()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:93 +0x64e\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n\r\nGoroutine 82 (running) created at:\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:275 +0x831\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).Read()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:93 +0x64e\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n==================\r\n==================\r\nWARNING: DATA RACE\r\nRead at 0x00c420088268 by goroutine 166:\r\n  github.com/go-ego/riot/core.(*Indexer).Lookup()\r\n      /go/src/github.com/go-ego/riot/core/indexer.go:333 +0xbc\r\n  github.com/go-ego/riot.(*Engine).indexerLookupWorker()\r\n      /go/src/github.com/go-ego/riot/indexer_worker.go:82 +0x8d8\r\n\r\nPrevious write at 0x00c420088268 by goroutine 162:\r\n  github.com/go-ego/riot/core.(*Indexer).AddDocs()\r\n      /go/src/github.com/go-ego/riot/core/indexer.go:220 +0x133f\r\n  github.com/go-ego/riot/core.(*Indexer).AddDocToCache()\r\n      /go/src/github.com/go-ego/riot/core/indexer.go:147 +0x8bc\r\n  github.com/go-ego/riot.(*Engine).indexerAddDocWorker()\r\n      /go/src/github.com/go-ego/riot/indexer_worker.go:48 +0x127\r\n\r\nGoroutine 166 (running) created at:\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:281 +0x774\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).Read()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:93 +0x64e\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n\r\nGoroutine 162 (running) created at:\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:275 +0x831\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).Read()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:93 +0x64e\r\n  github.com/go-ego/riot/vendor/github.com/go-ego/gse.(*Segmenter).LoadDict()\r\n      /go/src/github.com/go-ego/riot/vendor/github.com/go-ego/gse/segmenter.go:272 +0x35d\r\n  github.com/go-ego/riot.(*Engine).Init()\r\n      /go/src/github.com/go-ego/riot/engine.go:237 +0x9d2\r\n  main.initEngine()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:34 +0x151\r\n  main.main()\r\n      /go/src/github.com/go-ego/riot/examples/store/main.go:89 +0x47\r\n==================\r\nsearch--------- {[google testing] [{3 Google is testing another Search results layout with\r\n        rounded cards, new colors, and the 4 mysterious colored dots again <nil> <nil> [0] [] []}] false 1} ; docs= [{3 Google is testing another Search results layout with\r\n        rounded cards, new colors, and the 4 mysterious colored dots again <nil> <nil> [0] [] []}]\r\nFound 11 data race(s)\r\n```\r\n"}}
{"actor":{"display_login":"vcaesar"}}