Adding back debug stream uid to help track down bugs
This commit is contained in:
parent
903f7adbc4
commit
211e5b579a
|
@ -7788,6 +7788,9 @@ ACTOR Future<Void> mergeChangeFeedStream(Reference<DatabaseContext> db,
|
||||||
if (replyBufferSize != -1 && req.replyBufferSize < CLIENT_KNOBS->CHANGE_FEED_STREAM_MIN_BYTES) {
|
if (replyBufferSize != -1 && req.replyBufferSize < CLIENT_KNOBS->CHANGE_FEED_STREAM_MIN_BYTES) {
|
||||||
req.replyBufferSize = CLIENT_KNOBS->CHANGE_FEED_STREAM_MIN_BYTES;
|
req.replyBufferSize = CLIENT_KNOBS->CHANGE_FEED_STREAM_MIN_BYTES;
|
||||||
}
|
}
|
||||||
|
// TODO REMOVE
|
||||||
|
req.debugUID = deterministicRandom()->randomUniqueID();
|
||||||
|
|
||||||
results->streams.push_back(it.first.changeFeedStream.getReplyStream(req));
|
results->streams.push_back(it.first.changeFeedStream.getReplyStream(req));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7934,6 +7937,8 @@ ACTOR Future<Void> singleChangeFeedStream(Reference<DatabaseContext> db,
|
||||||
req.range = range;
|
req.range = range;
|
||||||
req.canReadPopped = canReadPopped;
|
req.canReadPopped = canReadPopped;
|
||||||
req.replyBufferSize = replyBufferSize;
|
req.replyBufferSize = replyBufferSize;
|
||||||
|
// TODO REMOVE
|
||||||
|
req.debugUID = deterministicRandom()->randomUniqueID();
|
||||||
|
|
||||||
results->streams.clear();
|
results->streams.clear();
|
||||||
|
|
||||||
|
|
|
@ -793,13 +793,15 @@ struct ChangeFeedStreamRequest {
|
||||||
KeyRange range;
|
KeyRange range;
|
||||||
int replyBufferSize = -1;
|
int replyBufferSize = -1;
|
||||||
bool canReadPopped = true;
|
bool canReadPopped = true;
|
||||||
|
// TODO REMOVE
|
||||||
|
UID debugUID;
|
||||||
|
|
||||||
ReplyPromiseStream<ChangeFeedStreamReply> reply;
|
ReplyPromiseStream<ChangeFeedStreamReply> reply;
|
||||||
|
|
||||||
ChangeFeedStreamRequest() {}
|
ChangeFeedStreamRequest() {}
|
||||||
template <class Ar>
|
template <class Ar>
|
||||||
void serialize(Ar& ar) {
|
void serialize(Ar& ar) {
|
||||||
serializer(ar, rangeID, begin, end, range, reply, spanContext, replyBufferSize, canReadPopped, arena);
|
serializer(ar, rangeID, begin, end, range, reply, spanContext, replyBufferSize, canReadPopped, debugUID, arena);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -7884,7 +7884,9 @@ ACTOR Future<Void> serveChangeFeedStreamRequests(StorageServer* self,
|
||||||
ChangeFeedStreamRequest req = waitNext(changeFeedStream);
|
ChangeFeedStreamRequest req = waitNext(changeFeedStream);
|
||||||
// must notify change feed that its shard is moved away ASAP
|
// must notify change feed that its shard is moved away ASAP
|
||||||
|
|
||||||
UID streamUID = deterministicRandom()->randomUniqueID();
|
// TODO CHANGE BACK
|
||||||
|
// UID streamUID = deterministicRandom()->randomUniqueID();
|
||||||
|
UID streamUID = req.debugUID;
|
||||||
self->actors.add(changeFeedStreamQ(self, req, streamUID) || stopChangeFeedOnMove(self, req, streamUID));
|
self->actors.add(changeFeedStreamQ(self, req, streamUID) || stopChangeFeedOnMove(self, req, streamUID));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue