| 1071 | } |
| 1072 | |
| 1073 | TEST_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 | |
| 1099 | TEST_P(AllOutputBufferManagerTest, outputBufferUtilization) { |
| 1100 | const std::string taskId = std::to_string(rand()); |
nothing calls this directly
no test coverage detected