You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@linkis.apache.org by GitBox <gi...@apache.org> on 2022/01/20 01:26:47 UTC

[GitHub] [incubator-linkis] xiaojie19852006 opened a new issue #1316: [Bug]Sometimes Engine Startup Fail,The Locked Resource Not Release

xiaojie19852006 opened a new issue #1316:
URL: https://github.com/apache/incubator-linkis/issues/1316


   ### Search before asking
   
   - [X] I searched the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar issues.
   
   
   ### Linkis Component
   
   linkis-cg-manager
   
   ### What happened + What you expected to happen
   
   The engine startup failure,But the engine resource keep in the database,After a while engine startup not enough resource。
   I check the table linkis_cg_manager_service_instance as follow,
   | id | instance                             | name                        | owner | mark    | update_time         | create_time         | updator | creator |
   +----+--------------------------------------+-----------------------------+-------+---------+---------------------+---------------------+---------+---------+
   | 42 | 10.30.106.171:9102                   | linkis-cg-engineconnmanager | root  | process | 2022-01-19 13:43:57 | 2022-01-19 13:43:57 | root    | root    |
   | 43 | b13f9a97-dea6-4cdd-84e1-a4436db8bc9a | linkis-cg-engineconn        | NULL  | NULL    | 2022-01-19 13:46:18 | 2022-01-19 13:46:18 | NULL    | NULL    |
   | 44 | 3c041a44-95c7-4452-b342-b7c70f388647 | linkis-cg-engineconn        | NULL  | NULL    | 2022-01-19 13:47:18 | 2022-01-19 13:47:18 | NULL    | NULL    |
   | 45 | 10.30.106.171:36307                  | linkis-cg-engineconn        | hive  | process | 2022-01-19 13:48:31 | 2022-01-19 13:48:28 | 
   
     
     
   
   ### Relevent platform
   
   The Linkis Version Is dev-1.0.3
   
   ### Reproduction script
   
   Test 
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!


-- 
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@linkis.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org


[GitHub] [incubator-linkis] xiaojie19852006 commented on issue #1316: [Bug]Sometimes Engine Startup Fail,The Locked Resource Not Release

Posted by GitBox <gi...@apache.org>.
xiaojie19852006 commented on issue #1316:
URL: https://github.com/apache/incubator-linkis/issues/1316#issuecomment-1017259402


   Can I use NodeHeartbeatMonitor to clean the resource?


-- 
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@linkis.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org


[GitHub] [incubator-linkis] casionone edited a comment on issue #1316: [Bug]Sometimes Engine Startup Fail,The Locked Resource Not Release

Posted by GitBox <gi...@apache.org>.
casionone edited a comment on issue #1316:
URL: https://github.com/apache/incubator-linkis/issues/1316#issuecomment-1017249143


   > How to deal with the linkis manager cash when create engine,the lock resource have keep in the database?
   
   Some exceptions can be catched and resources can be released during exception handling. Some scenarios may need to be considered, such as the engine process being forced to kill, or the service not starting and stopping gracefully. Personally, I think it may be an option for scheduled tasks to clean up abnormal resources.
   
   In addition,table are not displayed correctly as expected. You can choose to use the code format to display, or the correct markdown table format
   
   ```
   | id | instance                             | name                        | owner | mark    | update_time         | create_time         | updator | creator |
   | ---| ------------------------------------ | ----------------------------| ------| --------| ------------------- |-------------------- |-------- | ------- |
   | 42 | 10.30.106.171:9102                   | linkis-cg-engineconnmanager | root  | process | 2022-01-19 13:43:57 | 2022-01-19 13:43:57 | root    | root    |
   | 43 | b13f9a97-dea6-4cdd-84e1-a4436db8bc9a | linkis-cg-engineconn        | NULL  | NULL    | 2022-01-19 13:46:18 | 2022-01-19 13:46:18 | NULL    | NULL    |
   | 44 | 3c041a44-95c7-4452-b342-b7c70f388647 | linkis-cg-engineconn        | NULL  | NULL    | 2022-01-19 13:47:18 | 2022-01-19 13:47:18 | NULL    | NULL    |
   | 45 | 10.30.106.171:36307                  | linkis-cg-engineconn        | hive  | process | 2022-01-19 13:48:31 | 2022-01-19 13:48:28 | ||
   
   ```


-- 
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@linkis.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org


[GitHub] [incubator-linkis] peacewong commented on issue #1316: [Bug]Sometimes Engine Startup Fail,The Locked Resource Not Release

Posted by GitBox <gi...@apache.org>.
peacewong commented on issue #1316:
URL: https://github.com/apache/incubator-linkis/issues/1316#issuecomment-1017429399


   > Can I use NodeHeartbeatMonitor to clean the resource?
   Linkis 1.0.3 version has been cleaned up in NodeHeartbeatMonitor,this scene should be covered.
   


-- 
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@linkis.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org


[GitHub] [incubator-linkis] xiaojie19852006 commented on issue #1316: [Bug]Sometimes Engine Startup Fail,The Locked Resource Not Release

Posted by GitBox <gi...@apache.org>.
xiaojie19852006 commented on issue #1316:
URL: https://github.com/apache/incubator-linkis/issues/1316#issuecomment-1017028470


   Why
   Class:DefaultEngineCreateService Function:createEngine 
   val engineNode = getEMService().createEngine(engineBuildRequest, emNode)  not to try catch 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: dev-unsubscribe@linkis.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org


[GitHub] [incubator-linkis] casionone commented on issue #1316: [Bug]Sometimes Engine Startup Fail,The Locked Resource Not Release

Posted by GitBox <gi...@apache.org>.
casionone commented on issue #1316:
URL: https://github.com/apache/incubator-linkis/issues/1316#issuecomment-1017249143


   > How to deal with the linkis manager cash when create engine,the lock resource have keep in the database?
   
   Some exceptions can be catched and resources can be released during exception handling. Some scenarios may need to be considered, such as the engine process being forced to kill, or the service not starting and stopping gracefully. Personally, I think it may be an option for scheduled tasks to clean up abnormal resources.


-- 
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@linkis.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org


[GitHub] [incubator-linkis] xiaojie19852006 commented on issue #1316: [Bug]Sometimes Engine Startup Fail,The Locked Resource Not Release

Posted by GitBox <gi...@apache.org>.
xiaojie19852006 commented on issue #1316:
URL: https://github.com/apache/incubator-linkis/issues/1316#issuecomment-1017030551


   How to deal with the linkis manager cash when create engine,the lock resource have keep in the database?


-- 
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@linkis.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@linkis.apache.org
For additional commands, e-mail: dev-help@linkis.apache.org