Introduce testing exception for rescheduled dead tasks 51/76551/7
authorJames Harrison <00jamesh@gmail.com>
Fri, 7 Apr 2017 14:21:32 +0000 (15:21 +0100)
committerDave Rigby <daver@couchbase.com>
Tue, 11 Apr 2017 11:06:24 +0000 (11:06 +0000)
commit6e6429b0b1e20aa44211452198a7b5c80b9ae835
tree0e961b1144384bd3bea7bed174cfb005ac6fb9d4
parent66b2fdaea77eadf80d48223e95a0b911a08a2991
Introduce testing exception for rescheduled dead tasks

In http://review.couchbase.org/#/c/76394/ the ability to reschedule a
cancelled (and now in state TASK_DEAD) GlobalTask was fixed.

it does not appear that any tasks other than the ItemPager for ephemeral
buckets are rescheduled once dead, but to avoid changing existing
behaviour this introduces an exception if any task other than the
ItemPager is rescheduled, to bring them to our attention.

NB: This patch will be reverted to remove this exception for Spock.
(MB-23797)

Change-Id: If44b7cf8a71c3dc4d85fba98d65c4f608d449460
Reviewed-on: http://review.couchbase.org/76551
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
src/globaltask.h
src/taskqueue.cc