MCPcopy Create free account
hub / github.com/apple/foundationdb / proxyGRVThresholdExceeded

Function proxyGRVThresholdExceeded

fdbserver/GrvProxyServer.actor.cpp:521–531  ·  view source on GitHub ↗

Respond with an error to the GetReadVersion request when the GRV limit is hit.

Source from the content-addressed store, hash-verified

519
520// Respond with an error to the GetReadVersion request when the GRV limit is hit.
521void proxyGRVThresholdExceeded(const GetReadVersionRequest* req, GrvProxyStats* stats) {
522 ++stats->txnRequestErrors;
523 req->reply.sendError(grv_proxy_memory_limit_exceeded());
524 if (req->priority == TransactionPriority::IMMEDIATE) {
525 TraceEvent(SevWarnAlways, "ProxyGRVThresholdExceededSystem").suppressFor(60);
526 } else if (req->priority == TransactionPriority::DEFAULT) {
527 TraceEvent(SevWarnAlways, "ProxyGRVThresholdExceededDefault").suppressFor(60);
528 } else {
529 TraceEvent(SevWarnAlways, "ProxyGRVThresholdExceededBatch").suppressFor(60);
530 }
531}
532
533// Drop a GetReadVersion request from a queue, by responding an error to the request.
534void dropRequestFromQueue(Deque<GetReadVersionRequest>* queue, GrvProxyStats* stats) {

Callers 2

dropRequestFromQueueFunction · 0.85
whenFunction · 0.85

Calls 2

TraceEventClass · 0.85
sendErrorMethod · 0.45

Tested by

no test coverage detected