Skip to content

Commit c97f663

Browse files
authored
Fixed 352 (#66783)
1 parent 31b278d commit c97f663

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

paddle/fluid/distributed/ps/service/brpc_ps_server.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,11 @@ int32_t BrpcPsServer::ReceiveFromPServer(int msg_type,
178178
while (ar.Cursor() < ar.Finish()) {
179179
data.push_back(ar.Get<std::pair<uint64_t, std::string>>());
180180
}
181-
CHECK(ar.Cursor() == ar.Finish());
181+
PADDLE_ENFORCE_EQ(ar.Cursor(),
182+
ar.Finish(),
183+
phi::errors::InvalidArgument(
184+
"Expected 'ar.Cursor()' to be equal to 'ar.Finish()', "
185+
"but found they are not equal."));
182186
this->_shuffled_ins->Write(std::move(data));
183187
return 0;
184188
}

0 commit comments

Comments
 (0)