assert o.isCancelled() || placeIn != null
: "No node found for key " + key;
if(placeIn != null) {
// add the vbucketIndex to the operation
if (locator instanceof VBucketNodeLocator) {
VBucketNodeLocator vbucketLocator = (VBucketNodeLocator) locator;
int vbucketIndex = vbucketLocator.getVBucketIndex(key);
if (o instanceof VBucketAware) {
VBucketAware vbucketAwareOp = (VBucketAware) o;
vbucketAwareOp.setVBucket(vbucketIndex);
if (!vbucketAwareOp.getNotMyVbucketNodes().isEmpty()) {
MemcachedNode alternative = vbucketLocator.
getAlternative(key, vbucketAwareOp.getNotMyVbucketNodes());
if (alternative != null) {
placeIn = alternative;
}
}