HolyLow commented on code in PR #3568:
URL: https://github.com/apache/celeborn/pull/3568#discussion_r2639108322
##########
cpp/celeborn/client/writer/PushState.h:
##########
@@ -68,15 +73,28 @@ class PushState {
std::atomic<int> currBatchId_{1};
std::atomic<long> totalInflightReqs_{0};
+ std::atomic<long> totalInflightBytes_{0};
const long waitInflightTimeoutMs_;
const long deltaMs_;
const std::unique_ptr<PushStrategy> pushStrategy_;
const int maxInFlightReqsTotal_;
+ const bool maxInFlightBytesSizeEnabled_;
+ const long maxInFlightBytesSizeTotal_;
+ const long maxInFlightBytesSizePerWorker_;
utils::ConcurrentHashMap<
std::string,
std::shared_ptr<utils::ConcurrentHashSet<int>>>
inflightBatchesPerAddress_;
+ std::optional<utils::ConcurrentHashMap<
Review Comment:
If we already have flags, why should we use std::optional here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]