MCPcopy Create free account
hub / github.com/bytedance/bolt / TEST_P

Function TEST_P

bolt/exec/tests/OutputBufferManagerTest.cpp:1073–1097  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1071}
1072
1073TEST_P(AllOutputBufferManagerTest, maxBytes) {
1074 const vector_size_t size = 100;
1075 const std::string taskId = "t0";
1076 initializeTask(taskId, rowType_, kind_, 1, 1);
1077
1078 enqueue(taskId, 0, rowType_, size);
1079 enqueue(taskId, 0, rowType_, size);
1080 enqueue(taskId, 0, rowType_, size);
1081
1082 // fetch up to 1Kb - 1 group
1083 fetchOne(taskId, 0, 0);
1084 // re-fetch with larger size limit - 2 groups
1085 fetch(taskId, 0, 0, std::numeric_limits<int64_t>::max(), 3);
1086 // re-fetch with 1Kb limit - 1 group
1087 fetchOneAndAck(taskId, 0, 0);
1088 fetchOneAndAck(taskId, 0, 1);
1089 fetchOneAndAck(taskId, 0, 2);
1090
1091 if (kind_ != PartitionedOutputNode::Kind::kPartitioned) {
1092 bufferManager_->updateOutputBuffers(taskId, 0, true);
1093 }
1094 noMoreData(taskId);
1095 fetchEndMarker(taskId, 0, 3);
1096 bufferManager_->removeTask(taskId);
1097}
1098
1099TEST_P(AllOutputBufferManagerTest, outputBufferUtilization) {
1100 const std::string taskId = std::to_string(rand());

Callers

nothing calls this directly

Calls 14

randFunction · 0.85
removeTaskMethod · 0.80
taskStatsMethod · 0.80
has_valueMethod · 0.80
maxFunction · 0.50
to_stringFunction · 0.50
updateOutputBuffersMethod · 0.45
enqueueMethod · 0.45
statsMethod · 0.45
atMethod · 0.45
seedMethod · 0.45
rand32Method · 0.45

Tested by

no test coverage detected