Skip to content

Commit 1fa5810

Browse files
thearusablecz4rs
andcommitted
#1934: Update comments and test for lb_data_retention
Co-authored-by: Cezary Skrzyński <cezary.skrzynski@ng-analytics.com>
1 parent 76f3f8c commit 1fa5810

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/vt/vrt/collection/balance/node_lb_data.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@ struct NodeLBData : runtime::component::Component<NodeLBData> {
250250
LBDataHolder* getLBData() { return lb_data_.get(); }
251251

252252
/**
253-
* \internal \brief Set the minimal amount of historical LB data which should be hold
253+
* \internal \brief Set the minimal amount of historical LB data which should be retained
254254
*
255-
* \param[in] hist_len the minimal amount of LB data to hold
255+
* \param[in] hist_len the minimal amount of LB data to retain
256256
*/
257257
void setMinLBDataHistory(uint32_t hist_len) { min_hist_lb_data_ = hist_len; }
258258

tests/unit/collection/test_lb_data_retention.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ TEST_F(TestLBDataRetention, test_lbdata_config_retention_higher) {
260260
// Set the new model
261261
theLBManager()->setLoadModel(persist);
262262

263-
for (int i=0; i<num_phases; ++i) {
263+
for (uint32_t i=0; i<theConfig()->vt_lb_data_retention; ++i) {
264264
runInEpochCollective([&]{
265265
// Do some work.
266266
proxy.broadcastCollective<MyMsg<TestCol>, TestCol::colHandler>();

0 commit comments

Comments
 (0)