WUQueryGetGraph returns empty response

Environment

http://10.239.192.101:8010

Conclusion

None
100% Done
Loading...

Activity

Show:

Richard Chapman January 26, 2018 at 9:49 AM

The lock failure is really a timeout, and should be reported as such ("Roxie too busy - please try again later" or similar).

Once I address why this query takes so long the timeout should be much less frequent, of course.

Kanghua Wang January 25, 2018 at 9:39 PM
Edited

I get the "Roxie control:lock failed" exception when there are 2 sendRoxieControlAllNodes calls at the same time. (The exception is from the 2nd call.)

The exception message is from: 

if (!sendRoxieControlLock(sock, allOrNothing, wait))
throw MakeStringException(-1, "Roxie control:lock failed");

Not sure what exception message should be changed to.

I get the empty response when I call the WuQueryGetGraph with an inactive (or invalid) query ID. Should roxie send back an exception saying that the query is inactive or invalid?

 

Kanghua Wang January 24, 2018 at 9:09 PM
Edited

The following code is used to retrieve the data from roxie:

VStringBuffer control("<control:querystats><Query id='%s'/></control:querystats>", queryId);
Owned<IPropertyTree> querystats = sendRoxieControlAllNodes(eps.item(0), control.str(), false, ROXIELOCKCONNECTIONTIMEOUT);

ROXIELOCKCONNECTIONTIMEOUT is 60 seconds.

Richard Chapman January 24, 2018 at 2:49 PM

Two issues: taking too long in Roxie, and ESP not reporting well when Roxie is too slow to respond.

Richard Chapman January 17, 2018 at 10:57 AM

Seems as though the issue is that it is taking a very long time (and presumably, timing out). Seems to take significantly longer in "lock" mode.

Timed Out
Pinned fields
Click on the next to a field label to start pinning.

Details

Components

Assignee

Reporter

Priority

Compatibility

Minor

Labels

Affects versions

Due date

Created January 8, 2018 at 10:28 AM
Updated February 24, 2022 at 8:40 PM
Resolved February 24, 2022 at 8:40 PM