Phúc Huỳnh
06/10/2021, 10:57 AMselect count(*) from RuleLogsUAT
But got timeout & difference result per request. Here is the request log
requestId=43,table=RuleLogsUAT,timeMs=10001,docs=210279/210377,entries=0/0,segments(queried/processed/matched/consuming/unavailable):21/18/18/2/0,consumingFreshnessTimeMs=1623319344461,servers=4/5,groupLimitReached=false,brokerReduceTimeMs=0,exceptions=0,serverStats=(Server=SubmitDelayMs,ResponseDelayMs,ResponseSize,DeserializationTimeMs);pinot-server-1_R=1,-1,0,0;pinot-server-2_R=2,6,250,0;pinot-server-0_R=2,6,250,0;pinot-server-0_O=1,7,230,0;pinot-server-1_O=2,11,230,0,query=select count(*) from RuleLogsUAT,offlineThreadCpuTimeNs=1548682,realtimeThreadCpuTimeNs=1908620
requestId=44,table=RuleLogsUAT,timeMs=10002,docs=44807/44811,entries=0/0,segments(queried/processed/matched/consuming/unavailable):19/17/17/3/0,consumingFreshnessTimeMs=1623319158004,servers=4/5,groupLimitReached=false,brokerReduceTimeMs=0,exceptions=0,serverStats=(Server=SubmitDelayMs,ResponseDelayMs,ResponseSize,DeserializationTimeMs);pinot-server-1_R=1,10,250,0;pinot-server-2_R=1,7,250,0;pinot-server-0_R=1,8,250,0;pinot-server-2_O=1,-1,0,0;pinot-server-1_O=1,11,230,0,query=select count(*) from RuleLogsUAT,offlineThreadCpuTimeNs=1211610,realtimeThreadCpuTimeNs=1412400
requestId=45,table=RuleLogsUAT,timeMs=10002,docs=73633/73731,entries=0/0,segments(queried/processed/matched/consuming/unavailable):23/20/20/3/0,consumingFreshnessTimeMs=1623319158007,servers=4/5,groupLimitReached=false,brokerReduceTimeMs=0,exceptions=0,serverStats=(Server=SubmitDelayMs,ResponseDelayMs,ResponseSize,DeserializationTimeMs);pinot-server-1_R=0,5,250,0;pinot-server-2_R=0,8,250,0;pinot-server-0_R=0,8,250,0;pinot-server-0_O=0,7,230,0;pinot-server-1_O=1,-1,0,0,query=select count(*) from RuleLogsUAT,offlineThreadCpuTimeNs=655059,realtimeThreadCpuTimeNs=1141471
requestId=46,table=RuleLogsUAT,timeMs=10002,docs=44807/44811,entries=0/0,segments(queried/processed/matched/consuming/unavailable):19/17/17/3/0,consumingFreshnessTimeMs=1623319158004,servers=4/5,groupLimitReached=false,brokerReduceTimeMs=0,exceptions=0,serverStats=(Server=SubmitDelayMs,ResponseDelayMs,ResponseSize,DeserializationTimeMs);pinot-server-1_R=1,5,250,0;pinot-server-2_R=1,7,250,0;pinot-server-0_R=1,6,250,0;pinot-server-2_O=1,-1,0,0;pinot-server-1_O=1,7,230,0,query=select count(*) from RuleLogsUAT,offlineThreadCpuTimeNs=417430,realtimeThreadCpuTimeNs=1821230
Neha Pawar
servers=4/5
, hence the difference in result. You can check whats wrong with 1 serverNeha Pawar
Phúc Huỳnh
06/11/2021, 2:21 AMPhúc Huỳnh
06/11/2021, 2:22 AMNeha Pawar
Phúc Huỳnh
06/11/2021, 2:30 AMPhúc Huỳnh
06/11/2021, 2:40 AMnumServersQueried
was determine ? It’s zk configs ?Neha Pawar
Neha Pawar
Phúc Huỳnh
06/11/2021, 2:52 AMDefaultTenant_OFFLINE, DefaultTenant_REALTIME
Phúc Huỳnh
06/11/2021, 2:53 AMPhúc Huỳnh
06/11/2021, 2:54 AMNeha Pawar
Neha Pawar
Phúc Huỳnh
06/11/2021, 3:02 AMTimed out while polling results block, numBlocksMerged: 0 (query: QueryContext{_tableName='RuleLogsUAT_OFFLINE', _selectExpressions=[count(*)], _aliasList=[null], _filter=created_at_days_epoch <= '18761', _groupByExpressions=null, _havingFilter=null, _orderByExpressions=null, _limit=10, _offset=0, _queryOptions={responseFormat=sql, groupByMode=sql, timeoutMs=9998}, _debugOptions=null, _brokerRequest=BrokerRequest(querySource:QuerySource(tableName:RuleLogsUAT_OFFLINE), pinotQuery:PinotQuery(dataSource:DataSource(tableName:RuleLogsUAT_OFFLINE), selectList:[Expression(type:FUNCTION, functionCall:Function(operator:COUNT, operands:[Expression(type:IDENTIFIER, identifier:Identifier(name:*))]))], filterExpression:Expression(type:FUNCTION, functionCall:Function(operator:LESS_THAN_OR_EQUAL, operands:[Expression(type:IDENTIFIER, identifier:Identifier(name:created_at_days_epoch)), Expression(type:LITERAL, literal:<Literal stringValue:18761>)])), queryOptions:{responseFormat=sql, groupByMode=sql, timeoutMs=9998}))})
I think this is errors logsPhúc Huỳnh
06/11/2021, 3:03 AMMayank
Phúc Huỳnh
06/11/2021, 3:04 AMMayank
Mayank
RuleLogsUAT_OFFLINE
or RuleLogsUAT_REALTIME
?Neha Pawar
Phúc Huỳnh
06/11/2021, 3:09 AMcan you add 2 servers and separate the offline and realtime?
I don’t think it’s the problem
do you have too many segments on each server? and whats size of each segment?
Its’s around 14 realtime segments & 8 offfline segments, size of each offline segments is around 400~700kbMayank
select count(*) from RuleLogsUAT_OFFLINE
Mayank
Phúc Huỳnh
06/11/2021, 3:12 AMMayank
Phúc Huỳnh
06/11/2021, 3:13 AMPhúc Huỳnh
06/11/2021, 3:13 AMTimed out while polling results block,
loggingPhúc Huỳnh
06/11/2021, 3:13 AMTimed out while polling results block, numBlocksMerged: 0 (query: QueryContext{_tableName='RuleLogsUAT_REALTIME', _selectExpressions=[count(*)], _aliasList=[null], _filter=null, _groupByExpressions=null, _havingFilter=null, _orderByExpressions=null, _limit=10, _offset=0, _queryOptions={responseFormat=sql, groupByMode=sql, timeoutMs=9999}, _debugOptions=null, _brokerRequest=BrokerRequest(querySource:QuerySource(tableName:RuleLogsUAT_REALTIME), pinotQuery:PinotQuery(dataSource:DataSource(tableName:RuleLogsUAT_REALTIME), selectList:[Expression(type:FUNCTION, functionCall:Function(operator:COUNT, operands:[Expression(type:IDENTIFIER, identifier:Identifier(name:*))]))], queryOptions:{responseFormat=sql, groupByMode=sql, timeoutMs=9999}))})
Phúc Huỳnh
06/11/2021, 3:13 AMTimed out while polling results block, numBlocksMerged: 0 (query: QueryContext{_tableName='RuleLogsUAT_OFFLINE', _selectExpressions=[count(*)], _aliasList=[null], _filter=null, _groupByExpressions=null, _havingFilter=null, _orderByExpressions=null, _limit=10, _offset=0, _queryOptions={responseFormat=sql, groupByMode=sql, timeoutMs=9999}, _debugOptions=null, _brokerRequest=BrokerRequest(querySource:QuerySource(tableName:RuleLogsUAT_OFFLINE), pinotQuery:PinotQuery(dataSource:DataSource(tableName:RuleLogsUAT_OFFLINE), selectList:[Expression(type:FUNCTION, functionCall:Function(operator:COUNT, operands:[Expression(type:IDENTIFIER, identifier:Identifier(name:*))]))], queryOptions:{responseFormat=sql, groupByMode=sql, timeoutMs=9999}))})
Phúc Huỳnh
06/11/2021, 3:13 AMMayank
Mayank
Phúc Huỳnh
06/11/2021, 3:16 AMMayank
Phúc Huỳnh
06/11/2021, 3:18 AMMayank
Mayank
Mayank
Phúc Huỳnh
06/11/2021, 3:19 AMPhúc Huỳnh
06/11/2021, 3:19 AMMayank
Phúc Huỳnh
06/11/2021, 3:20 AMMayank
Mayank
Phúc Huỳnh
06/11/2021, 3:24 AMPhúc Huỳnh
06/11/2021, 3:24 AMTimed out while polling results block, numBlocksMerged: 0 (query: QueryContext{_tableName='RuleLogsUAT_REALTIME', _selectExpressions=[*], _aliasList=[null], _filter=created_at_days_epoch > '18761', _groupByExpressions=null, _havingFilter=null, _orderByExpressions=null, _limit=10, _offset=0, _queryOptions={responseFormat=sql, groupByMode=sql, timeoutMs=9999}, _debugOptions=null, _brokerRequest=BrokerRequest(querySource:QuerySource(tableName:RuleLogsUAT_REALTIME), pinotQuery:PinotQuery(dataSource:DataSource(tableName:RuleLogsUAT_REALTIME), selectList:[Expression(type:IDENTIFIER, identifier:Identifier(name:*))], filterExpression:Expression(type:FUNCTION, functionCall:Function(operator:GREATER_THAN, operands:[Expression(type:IDENTIFIER, identifier:Identifier(name:created_at_days_epoch)), Expression(type:LITERAL, literal:<Literal stringValue:18761>)])), orderByList:[], limit:10, queryOptions:{responseFormat=sql, groupByMode=sql, timeoutMs=9999}))})
Mayank
Mayank
Mayank
Phúc Huỳnh
06/11/2021, 3:44 AMPhúc Huỳnh
06/11/2021, 3:44 AMAre you running master, or 0.7.1 release?
I’m running on masterMayank
Phúc Huỳnh
06/11/2021, 3:46 AM# curl
curl: try 'curl --help' or 'curl --manual' for more information
# curl localhost:7500/appConfigs?
curl: (7) Failed to connect to localhost port 7500: Connection refused
I don’t think server expose portNeha Pawar
Is server-1 always the issue?
btw, it was not just server1. your log which you shared initially, showed both server1 and server 2 failing across the 5 queries from the start. So it could very well be because of offline realtime sharing the server. Restart is not what it made it go to server2.Phúc Huỳnh
06/12/2021, 3:44 AMPhúc Huỳnh
06/12/2021, 3:48 AMTimed out while polling results block, numBlocksMerged: 0 (query: QueryContext{_tableName='RuleLogsUAT_OFFLINE', _selectExpressions=[count(*)], _aliasList=[null], _filter=created_at_days_epoch <= '18761', _groupByExpressions=null, _havingFilter=null, _orderByExpressions=null, _limit=10, _offset=0, _queryOptions={responseFormat=sql, groupByMode=sql, timeoutMs=9999}, _debugOptions=null, _brokerRequest=BrokerRequest(querySource:QuerySource(tableName:RuleLogsUAT_OFFLINE), pinotQuery:PinotQuery(dataSource:DataSource(tableName:RuleLogsUAT_OFFLINE), selectList:[Expression(type:FUNCTION, functionCall:Function(operator:COUNT, operands:[Expression(type:IDENTIFIER, identifier:Identifier(name:*))]))], filterExpression:Expression(type:FUNCTION, functionCall:Function(operator:LESS_THAN_OR_EQUAL, operands:[Expression(type:IDENTIFIER, identifier:Identifier(name:created_at_days_epoch)), Expression(type:LITERAL, literal:<Literal stringValue:18761>)])), queryOptions:{responseFormat=sql, groupByMode=sql, timeoutMs=9999}))})
now it’s happend on server-0 😞