The below code returns records when I run it in debug mode with a breakpoint on this line and stepping into the line. But when I run it in regular Run and do not step into this line, it produces 0 result. What am I doing wrong? Thanks
GetQueryResultsResult getQueryResultsResult = awslogs.getQueryResults(getQueryResultsRequest);
Adding the below line of code, prior to that line of code, has fixed the issue:
TimeUnit.SECONDS.sleep(2);
Thanks