You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@inlong.apache.org by GitBox <gi...@apache.org> on 2022/03/18 11:38:49 UTC

[GitHub] [incubator-inlong] healchow opened a new issue #3228: [Bug][Manager] Deadlock found when trying to get lock

healchow opened a new issue #3228:
URL: https://github.com/apache/incubator-inlong/issues/3228


   ### What happened
   
   Error log:
   
   ```
   2022-03-18 10:08:56.153 [http-nio-8083-exec-51] ERROR o.a.i.m.web.config.ControllerExceptionHandler:124 - 
   Failed to handle request on path:/api/inlong/manager/openapi/agent/reportAndGetTask
   org.springframework.dao.DeadlockLoserDataAccessException: 
   ### Error querying database.  Cause: com.mysql.cj.jdbc.exceptions.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction
   ### The error may exist in class path resource [mappers/StreamSourceEntityMapper.xml]
   ### The error may involve defaultParameterMap
   ### The error occurred while setting parameters
   ### SQL: select id, inlong_group_id, inlong_stream_id, source_type, source_name, agent_ip, uuid,
            server_id, server_name, cluster_id, cluster_name, snapshot, report_time, ext_params,
            status, previous_status, is_deleted, creator, modifier, create_time, modify_time
            from stream_source
            WHERE is_deleted = 0
            and status in (?, ?)limit 2 for update
   ### Cause: com.mysql.cj.jdbc.exceptions.MySQLTransactionRollbackException: Deadlock found when trying to get lock; try restarting transaction;
   Deadlock found when trying to get lock; try restarting transaction; nested exception is com.mysql.cj.jdbc.exceptions.MySQLTransactionRollbackException: 
   Deadlock found when trying to get lock; try restarting transaction
   	at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:271)
   ```
   
   ### What you expected to happen
   
   Should not error.
   
   ### How to reproduce
   
   After the stream source has been issued, just restart it, you may find the error.
   
   ### Environment
   
   _No response_
   
   ### InLong version
   
   master
   
   ### InLong Component
   
   InLong Manager
   
   ### Are you willing to submit PR?
   
   - [X] Yes, I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: dev-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-inlong] healchow closed issue #3228: [Bug][Manager] Deadlock found when trying to get lock

Posted by GitBox <gi...@apache.org>.
healchow closed issue #3228:
URL: https://github.com/apache/incubator-inlong/issues/3228


   


-- 
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: dev-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-inlong] healchow closed issue #3228: [Bug][Manager] Deadlock found when trying to get lock

Posted by GitBox <gi...@apache.org>.
healchow closed issue #3228:
URL: https://github.com/apache/incubator-inlong/issues/3228


   


-- 
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: dev-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org