Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Aggregation runs successfully but not results returned #1098
I was tuning a slow aggregation pipeline scanning a big collection and run the pipeline in Robomongo. Robomongo, after a while, displayed a message stating "Script executed successfully, but there are no results to show.". The same query returns result correctly when I run directly from Mongo shell.
The behavior seems to be random and normally occurs when the script takes more than 30 seconds (not 100% sure) to return.
On small suggestion on this matter too. Upon completion of the execution, Robomongo doesn't display the execution time as normally when it returns data. I think you should still display such info if it's available.
Thanks for reaching out to us, we appreciate it
I get the same problem as well when I run my script having some of the code selected like so:
Once I remove the selection, the issue goes away and results pop out below.
Could you please confirm if you're experiencing the same thing?
Thanks for your response. This is certainly not the case. In your example, you were selecting only some comments, which logically shouldn't return anything if you run it. In my case, I'm running a real script, regardless it's selected or not, and the behavior is random.
I can give you an example query where you can probably re-produce from your end.
Same issue here while running:
Workaround works well, but ... what I still do not understand why when there is any timeout present and it kicks on the message is "Script executed successfully, but there are no results to show".
Script is not successful neither failed, Robomongo simply didn't know. Why not to just say "Script run out of timeout, result is unclear"?
referenced this issue
Jul 12, 2016
@teliatko thanks for details! You're absolutely right - Robomongo does not always show error messages correctly. We are sorry for that! I'll add details about this case to the open ticket #1108 Show detailed and proper error message and you can track progress within this card.