vishesh92 commented on PR #9661: URL: https://github.com/apache/cloudstack/pull/9661#issuecomment-2345419327
Since it's hard to reproduce the error, I used a debugger and modified the value of count for testing. This is the scenarios I tested: 1. To reproduce the error, make a request to list events such that there are no results. Add a debugger where we are checking if the `count == 0`, and modify the value of count to 1. This results in the exception: ```java com.mysql.cj.jdbc.ClientPreparedStatement: SELECT event_view.id, event_view.uuid, event_view.type, event_view.state, event_view.description, event_view.created, event_view.user_id, event_view.user_name, event_view.level, event_view.start_id, event_view.start_uuid, event_view.parameters, event_view.account_id, event_view.account_uuid, event_view.account_name, event_view.account_type, event_view.domain_id, event_view.domain_uuid, event_view.domain_name, event_view.domain_path, event_view.resource_id, event_view.resource_type, event_view.project_id, event_view.project_uuid, event_view.project_name, event_view.archived, event_view.display FROM event_view WHERE event_view.id IN ) ``` 2. With the patch, I tried the same and I didn't get the error. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org