Skip to content

Commit

Permalink
Merge pull request #18283 from richardkchapman/HPCC-31178
Browse files Browse the repository at this point in the history
HPCC-31178 Roxie logging too much info - Additional data size ...

Reviewed-by: Mark Kelly <[email protected]>
Reviewed-by: Gavin Halliday <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Feb 9, 2024
2 parents a98ef81 + 9abd956 commit 21f4d0e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
15 changes: 10 additions & 5 deletions roxie/ccd/ccdserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,8 @@ static const StatisticsMapping keyedJoinStatistics({ StNumServerCacheHits, StNum
StCycleBlobFetchCycles, StCycleLeafFetchCycles, StCycleNodeFetchCycles, StTimeBlobFetch, StTimeLeafFetch, StTimeNodeFetch,
StCycleIndexCacheBlockedCycles, StTimeIndexCacheBlocked,
StNumNodeDiskFetches, StNumLeafDiskFetches, StNumBlobDiskFetches,
StNumDiskRejected, StSizeAgentReply, StTimeAgentWait, StTimeAgentQueue, StTimeAgentProcess, StTimeIBYTIDelay, StNumAckRetries }, joinStatistics);
StNumDiskRejected, StSizeAgentReply, StTimeAgentWait, StTimeAgentQueue, StTimeAgentProcess, StTimeIBYTIDelay, StNumAckRetries,
StSizeContinuationData, StNumContinuationRequests }, joinStatistics);
static const StatisticsMapping indexStatistics({StNumServerCacheHits, StNumIndexSeeks, StNumIndexScans, StNumIndexWildSeeks,
StNumIndexSkips, StNumIndexNullSkips, StNumIndexMerges, StNumIndexMergeCompares,
StNumPreFiltered, StNumPostFiltered, StNumIndexAccepted, StNumIndexRejected,
Expand All @@ -486,9 +487,11 @@ static const StatisticsMapping indexStatistics({StNumServerCacheHits, StNumIndex
StCycleBlobFetchCycles, StCycleLeafFetchCycles, StCycleNodeFetchCycles, StTimeBlobFetch, StTimeLeafFetch, StTimeNodeFetch,
StCycleIndexCacheBlockedCycles, StTimeIndexCacheBlocked,
StNumNodeDiskFetches, StNumLeafDiskFetches, StNumBlobDiskFetches,
StNumIndexRowsRead, StSizeAgentReply, StTimeAgentWait, StTimeAgentQueue, StTimeAgentProcess, StTimeIBYTIDelay, StNumAckRetries }, actStatistics);
StNumIndexRowsRead, StSizeAgentReply, StTimeAgentWait, StTimeAgentQueue, StTimeAgentProcess, StTimeIBYTIDelay, StNumAckRetries,
StSizeContinuationData, StNumContinuationRequests }, actStatistics);
static const StatisticsMapping diskStatistics({StNumServerCacheHits, StNumDiskRowsRead, StNumDiskSeeks, StNumDiskAccepted,
StNumDiskRejected, StSizeAgentReply, StTimeAgentWait, StTimeAgentQueue, StTimeAgentProcess, StTimeIBYTIDelay, StNumAckRetries }, actStatistics);
StNumDiskRejected, StSizeAgentReply, StTimeAgentWait, StTimeAgentQueue, StTimeAgentProcess, StTimeIBYTIDelay, StNumAckRetries,
StSizeContinuationData, StNumContinuationRequests }, actStatistics);
static const StatisticsMapping soapStatistics({ StTimeSoapcall }, actStatistics);
static const StatisticsMapping groupStatistics({ StNumGroups, StNumGroupMax }, actStatistics);
static const StatisticsMapping sortStatistics({ StTimeSortElapsed }, actStatistics);
Expand Down Expand Up @@ -519,7 +522,7 @@ extern const StatisticsMapping accumulatedStatistics({StWhenFirstRow, StTimeLoca
StNumSocketWrites, StSizeSocketWrite, StTimeSocketWriteIO,
StNumSocketReads, StSizeSocketRead, StTimeSocketReadIO,
StCycleIndexCacheBlockedCycles, StTimeIndexCacheBlocked,
StNumAckRetries,
StNumAckRetries, StSizeContinuationData, StNumContinuationRequests
});

//=================================================================================
Expand Down Expand Up @@ -5246,7 +5249,9 @@ class CRemoteResultAdaptor : implements IEngineRowStream, implements IFinalRoxie
// We got back first chunk but there is more.
// resend the packet, with the cursor info provided.
// MORE - if smart-stepping, we don't want to send the continuation immediately. Other cases it's not clear that we do.
if (ctxTraceLevel > 1)
activity.noteStatistic(StNumContinuationRequests, 1);
activity.noteStatistic(StSizeContinuationData, metaLen);
if (doTrace(traceRoxiePackets))
{
StringBuffer s;
activity.queryLogCtx().CTXLOG("Additional data size %d on query %s mergeOrder %p", metaLen, header.toString(s).str(), mergeOrder);
Expand Down
2 changes: 2 additions & 0 deletions system/jlib/jstatcodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ enum StatisticKind
StTimeAgentProcess,
StCycleAgentProcessCycles,
StNumAckRetries,
StSizeContinuationData,
StNumContinuationRequests,
StMax,

//For any quantity there is potentially the following variants.
Expand Down
2 changes: 2 additions & 0 deletions system/jlib/jstats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,8 @@ static const constexpr StatisticMeta statsMetaData[StMax] = {
{ TIMESTAT(AgentProcess) },
{ CYCLESTAT(AgentProcess) },
{ NUMSTAT(AckRetries) },
{ SIZESTAT(ContinuationData) },
{ NUMSTAT(ContinuationRequests) },
};

static MapStringTo<StatisticKind, StatisticKind> statisticNameMap(true);
Expand Down

0 comments on commit 21f4d0e

Please sign in to comment.