Details
-
Bug
-
Resolution: Fixed
-
Critical
-
4.0.0
-
Security Level: Public
-
None
-
mac
debian
-
Untriaged
-
Yes
Description
Repro:
go test -test.run TestDropAllIndexesWithDataLoad
PrathibaMacsMBP:functionaltests prathibha-mac$ go test -test.run TestDropAllIndexesWithDataLoad
2015/05/26 13:31:48 In init()
2015/05/26 13:31:48 In DropAllSecondaryIndexes()
2015/05/26 13:31:53 Data file exists. Skipping download
2015/05/26 13:31:53 Data file exists. Skipping download
2015/05/26 13:31:54 Emptying the default bucket
2015/05/26 13:31:57 Flush Enabled on bucket default
2015/05/26 13:32:20 Flushed the bucket default
2015/05/26 13:32:25 Create Index On the empty default Bucket()
2015/05/26 13:32:27 Created the secondary index index_eyeColor. Waiting for it become active
2015/05/26 13:32:27 Index state is INDEX_STATE_ACTIVE
2015/05/26 13:32:27 Index is now active
2015/05/26 13:32:27 PERFSTAT CreateAndBuildIndex 2.1297 seconds
2015/05/26 13:32:27 Populating the default bucket
2015/05/26 13:32:31 In TestDropAllIndexesWithDataLoad()
2015/05/26 13:32:31 In DropAllSecondaryIndexes()
2015-05-26T13:32:31.092Z+05:30 [Error] WatcherServer.runOnce() : Watcher terminated unexpectedly.
— FAIL: TestDropAllIndexesWithDataLoad (0.04 seconds)
common_test.go:84: Error in DropAllSecondaryIndexes: Terminate Request due to server termination
FAIL
From indexer log:
2015-05-26T13:32:31.069Z+05:30 [Debug] EmbeddedServer.UpdateStateOnCommit(): Committing proposal 4294967303 key IndexTopology/default.
2015-05-26T13:32:31.069Z+05:30 [Debug] EmbeddedServer.UpdateStateOnCommit(): Notify client for proposal 4294967303
2015-05-26T13:32:31.069Z+05:30 [Debug] PeerPipe.doSend() : Sending message Commit (len 30) to Peer 127.0.0.1:54694
2015-05-26T13:32:31.069Z+05:30 [Info] clustMgrAgent::OnIndexDelete Notification Received for Drop IndexId 16863305194070173057
2015-05-26T13:32:31.069Z+05:30 [Debug] version:1 txnid:4294967303
2015-05-26T13:32:31.069Z+05:30 [Info] Indexer::handleDropIndex - IndexInstId 16863305194070173057
2015-05-26T13:32:31.069Z+05:30 [Info] logReaderStat:: MAINT_STREAM MutationCount 10000
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x40d77fa]
goroutine 250 [running]:
runtime.panic(0x48e4b60, 0x4fc7284)
/usr/local/Cellar/go/1.3.1/libexec/src/pkg/runtime/panic.c:279 +0xf5
github.com/couchbase/indexing/secondary/indexer.(*mutationStreamReader).handleSingleMutation(0xc20b3e4160, 0xc20b2f9b80)
/Users/prathibha-mac/Documents/source/cb/goproj/src/github.com/couchbase/indexing/secondary/indexer/stream_reader.go:359 +0x1ea
github.com/couchbase/indexing/secondary/indexer.(*mutationStreamReader).startMutationStreamWorker(0xc20b3e4160, 0x0, 0xc209f90c00)
/Users/prathibha-mac/Documents/source/cb/goproj/src/github.com/couchbase/indexing/secondary/indexer/stream_reader.go:340 +0x192
created by github.com/couchbase/indexing/secondary/indexer.(*mutationStreamReader).startWorkers
/Users/prathibha-mac/Documents/source/cb/goproj/src/github.com/couchbase/indexing/secondary/indexer/stream_reader.go:472 +0x9c
Logs attached.
CI failing: http://54.251.41.134/sherlock-26.05-10.14.fail.html