Skip to content

Commit f8314a6

Browse files
Merge branch 'vmware:master' into concord_client_request_cmf_changes
2 parents 4f32319 + 16b7558 commit f8314a6

File tree

2 files changed

+26
-15
lines changed

2 files changed

+26
-15
lines changed

bftengine/src/bftengine/ReplicaImp.cpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,8 +2097,7 @@ void ReplicaImp::onCommitCombinedSigSucceeded(SeqNum seqNumber,
20972097
(seqNumber > lastExecutedSeqNum + config_.getconcurrencyLevel() + activeExecutions_);
20982098

20992099
auto span = concordUtils::startChildSpanFromContext(
2100-
commitFull->spanContext<std::remove_pointer<decltype(commitFull)>::type>(),
2101-
"bft_handle_commit_combined_sig_succeeded_message");
2100+
commitFull->spanContext<std::remove_pointer<decltype(commitFull)>::type>(), "bft_execute_committed_reqs");
21022101
updateCommitMetrics(CommitPath::SLOW);
21032102
startExecution(seqNumber, span, askForMissingInfoAboutCommittedItems);
21042103
}
@@ -2145,8 +2144,7 @@ void ReplicaImp::onCommitVerifyCombinedSigResult(SeqNum seqNumber, ViewNum view,
21452144
LOG_INFO(CNSUS, "Request committed, proceeding to try to execute" << KVLOG(view));
21462145

21472146
auto span = concordUtils::startChildSpanFromContext(
2148-
commitFull->spanContext<std::remove_pointer<decltype(commitFull)>::type>(),
2149-
"bft_handle_commit_verify_combined_sig_result");
2147+
commitFull->spanContext<std::remove_pointer<decltype(commitFull)>::type>(), "bft_execute_committed_reqs");
21502148
bool askForMissingInfoAboutCommittedItems =
21512149
(seqNumber > lastExecutedSeqNum + config_.getconcurrencyLevel() + activeExecutions_);
21522150
updateCommitMetrics(CommitPath::SLOW);
@@ -2205,7 +2203,7 @@ void ReplicaImp::onFastPathCommitCombinedSigSucceeded(SeqNum seqNumber,
22052203
lastExecutedSeqNum + config_.getconcurrencyLevel() + activeExecutions_); // TODO(GG): check/improve this logic
22062204

22072205
auto span = concordUtils::startChildSpanFromContext(fcp->spanContext<std::remove_pointer<decltype(fcp)>::type>(),
2208-
"bft_handle_fast_path_commit_combined_sig_succeeded");
2206+
"bft_execute_committed_reqs");
22092207

22102208
updateCommitMetrics(cPath);
22112209

@@ -2270,7 +2268,7 @@ void ReplicaImp::onFastPathCommitVerifyCombinedSigResult(SeqNum seqNumber,
22702268
lastExecutedSeqNum + config_.getconcurrencyLevel() + activeExecutions_); // TODO(GG): check/improve this logic
22712269

22722270
auto span = concordUtils::startChildSpanFromContext(fcp->spanContext<std::remove_pointer<decltype(fcp)>::type>(),
2273-
"bft_handle_fast_path_commit_verify_combined_sig_result");
2271+
"bft_execute_committed_reqs");
22742272

22752273
updateCommitMetrics(cPath);
22762274

@@ -4970,14 +4968,14 @@ void ReplicaImp::executeSpecialRequests(PrePrepareMsg *ppMsg,
49704968
reqIdx++;
49714969
}
49724970

4973-
auto span_context = ppMsg->spanContext<std::remove_pointer<decltype(ppMsg)>::type>();
49744971
// TODO(GG): the following code is cumbersome. We can call to execute directly in the above loop
49754972
IRequestsHandler::ExecutionRequestsQueue singleRequest;
49764973
for (IRequestsHandler::ExecutionRequest &req : accumulatedRequests) {
49774974
ConcordAssert(singleRequest.empty());
49784975
singleRequest.push_back(req);
49794976
{
4980-
auto span = concordUtils::startChildSpanFromContext(span_context, "bft_client_special_request");
4977+
const concordUtils::SpanContext &span_context{""};
4978+
auto span = concordUtils::startChildSpanFromContext(span_context, "bft_client_request");
49814979
span.setTag("rid", config_.getreplicaId());
49824980
span.setTag("cid", req.cid);
49834981
span.setTag("seq_num", req.requestSequenceNum);
@@ -5039,12 +5037,12 @@ void ReplicaImp::executeRequests(PrePrepareMsg *ppMsg, Bitmap &requestSet, Times
50395037
setConflictDetectionBlockId(req, pAccumulatedRequests->back());
50405038
}
50415039
}
5042-
auto span_context = ppMsg->spanContext<std::remove_pointer<decltype(ppMsg)>::type>();
50435040
if (ReplicaConfig::instance().blockAccumulation) {
50445041
LOG_DEBUG(GL,
50455042
"Executing all the requests of preprepare message with cid: " << ppMsg->getCid() << " with accumulation");
50465043
{
50475044
// TimeRecorder scoped_timer1(*histograms_.executeWriteRequest);
5045+
const concordUtils::SpanContext &span_context{""};
50485046
auto span = concordUtils::startChildSpanFromContext(span_context, "bft_client_request");
50495047
span.setTag("rid", config_.getreplicaId());
50505048
span.setTag("cid", ppMsg->getCid());
@@ -5067,6 +5065,7 @@ void ReplicaImp::executeRequests(PrePrepareMsg *ppMsg, Bitmap &requestSet, Times
50675065
singleRequest.push_back(req);
50685066
{
50695067
// TimeRecorder scoped_timer1(*histograms_.executeWriteRequest);
5068+
const concordUtils::SpanContext &span_context{""};
50705069
auto span = concordUtils::startChildSpanFromContext(span_context, "bft_client_request");
50715070
span.setTag("rid", config_.getreplicaId());
50725071
span.setTag("cid", ppMsg->getCid());

thin-replica-server/test/thin_replica_server_test.cpp

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,9 @@ TEST(thin_replica_server_test, SubscribeToPrivateEventGroupUpdatesWithGap) {
12961296
EXPECT_EQ(state_machine.numEventGroupsReceived(), total_event_groups);
12971297
}
12981298

1299-
TEST(thin_replica_server_test, SubscribeToPrivateEventGroupUpdatesWithGapTwoClients) {
1299+
// Disabled due to instability in order to unblock master for other fixes to improve its stability.
1300+
// TODO (Alex): Develop a propper fix and re-enable this test.
1301+
TEST(thin_replica_server_test, DISABLED_SubscribeToPrivateEventGroupUpdatesWithGapTwoClients) {
13001302
// Initialize storage and live update queue
13011303
FakeStorage storage(generateEventGroupMap(1, kLastEventGroupId, EventGroupType::PrivateEventGroupsOnly, kClientId1));
13021304
auto client2_egs = generateEventGroupMap(
@@ -1427,7 +1429,9 @@ TEST(thin_replica_server_test, SubscribeToPublicEventGroupUpdatesWithGap) {
14271429
EXPECT_EQ(state_machine.numEventGroupsReceived(), total_event_groups);
14281430
}
14291431

1430-
TEST(thin_replica_server_test, SubscribeToPublicEventGroupUpdatesWithGapTwoClients) {
1432+
// Disabled due to instability in order to unblock master for other fixes to improve its stability.
1433+
// TODO (Alex): Develop a propper fix and re-enable this test.
1434+
TEST(thin_replica_server_test, DISABLED_SubscribeToPublicEventGroupUpdatesWithGapTwoClients) {
14311435
// Initialize storage and live update queue with public event groups and private event groups for kClientId2
14321436
// Initialize storage and live update queue
14331437
FakeStorage storage(generateEventGroupMap(1, kLastEventGroupId, EventGroupType::PublicEventGroupsOnly));
@@ -1557,7 +1561,9 @@ TEST(thin_replica_server_test, SubscribeToPublicAndPrivateEventGroupUpdatesWithG
15571561
EXPECT_EQ(state_machine.numEventGroupsReceived(), total_event_groups);
15581562
}
15591563

1560-
TEST(thin_replica_server_test, SubscribeToPublicAndPrivateEventGroupUpdatesWithGapTwoClients) {
1564+
// Disabled due to instability in order to unblock master for other fixes to improve its stability.
1565+
// TODO (Alex): Develop a propper fix and re-enable this test.
1566+
TEST(thin_replica_server_test, DISABLED_SubscribeToPublicAndPrivateEventGroupUpdatesWithGapTwoClients) {
15611567
// Initialize storage and live update queue
15621568
FakeStorage storage(
15631569
generateEventGroupMap(1, kLastEventGroupId, EventGroupType::PublicAndPrivateEventGroups, kClientId1));
@@ -2245,7 +2251,9 @@ TEST(thin_replica_server_test, SubscribeToPrivateEventGroupUpdateHashesWithGap)
22452251
EXPECT_EQ(state_machine.numEventGroupsReceived(), total_event_groups);
22462252
}
22472253

2248-
TEST(thin_replica_server_test, SubscribeToPrivateEventGroupUpdateHashesWithGapTwoClients) {
2254+
// Disabled due to instability in order to unblock master for other fixes to improve its stability.
2255+
// TODO (Alex): Develop a propper fix and re-enable this test.
2256+
TEST(thin_replica_server_test, DISABLED_SubscribeToPrivateEventGroupUpdateHashesWithGapTwoClients) {
22492257
// Initialize storage and live update queue
22502258
FakeStorage storage(generateEventGroupMap(1, kLastEventGroupId, EventGroupType::PrivateEventGroupsOnly, kClientId1));
22512259
auto client2_egs = generateEventGroupMap(
@@ -2374,7 +2382,9 @@ TEST(thin_replica_server_test, SubscribeToPublicEventGroupUpdateHashesWithGap) {
23742382
EXPECT_EQ(state_machine.numEventGroupsReceived(), total_event_groups);
23752383
}
23762384

2377-
TEST(thin_replica_server_test, SubscribeToPublicEventGroupUpdateHashesWithGapTwoClients) {
2385+
// Disabled due to instability in order to unblock master for other fixes to improve its stability.
2386+
// TODO (Alex): Develop a propper fix and re-enable this test.
2387+
TEST(thin_replica_server_test, DISABLED_SubscribeToPublicEventGroupUpdateHashesWithGapTwoClients) {
23782388
// Initialize storage and live update queue
23792389
FakeStorage storage(generateEventGroupMap(1, kLastEventGroupId, EventGroupType::PublicEventGroupsOnly));
23802390
auto client2_egs = generateEventGroupMap(
@@ -2503,7 +2513,9 @@ TEST(thin_replica_server_test, SubscribeToPublicAndPrivateEventGroupUpdateHashes
25032513
EXPECT_EQ(state_machine.numEventGroupsReceived(), total_event_groups);
25042514
}
25052515

2506-
TEST(thin_replica_server_test, SubscribeToPublicAndPrivateEventGroupUpdateHashesWithGapTwoClients) {
2516+
// Disabled due to instability in order to unblock master for other fixes to improve its stability.
2517+
// TODO (Alex): Develop a propper fix and re-enable this test.
2518+
TEST(thin_replica_server_test, DISABLED_SubscribeToPublicAndPrivateEventGroupUpdateHashesWithGapTwoClients) {
25072519
// Initialize storage and live update queue
25082520
FakeStorage storage(
25092521
generateEventGroupMap(1, kLastEventGroupId, EventGroupType::PublicAndPrivateEventGroups, kClientId1));

0 commit comments

Comments
 (0)