weizhouapache commented on issue #7550:
URL: https://github.com/apache/cloudstack/issues/7550#issuecomment-1561798046

   following @nvazquez 's investigation, I checked the source code which looks 
ok
   
   
https://github.com/apache/cloudstack/blob/main/engine/schema/src/main/java/com/cloud/vm/dao/ConsoleSessionDaoImpl.java#LL61C1-L66C6
   
   ```
       @Override
       public void acquireSession(String sessionUuid) {
           ConsoleSessionVO consoleSessionVO = findByUuid(sessionUuid);
           consoleSessionVO.setAcquired(new Date());
           update(consoleSessionVO.getId(), consoleSessionVO);
       }
   ```
   
   
   database looks ok as well
   ```
   mysql> desc console_session;
   +-------------+-----------------+------+-----+---------+----------------+
   | Field       | Type            | Null | Key | Default | Extra          |
   +-------------+-----------------+------+-----+---------+----------------+
   | id          | bigint unsigned | NO   | PRI | NULL    | auto_increment |
   | uuid        | varchar(40)     | NO   | UNI | NULL    |                |
   | created     | datetime        | NO   |     | NULL    |                |
   | account_id  | bigint unsigned | NO   | MUL | NULL    |                |
   | user_id     | bigint unsigned | NO   | MUL | NULL    |                |
   | instance_id | bigint unsigned | NO   | MUL | NULL    |                |
   | host_id     | bigint unsigned | NO   | MUL | NULL    |                |
   | acquired    | datetime        | YES  |     | NULL    |                |
   | removed     | datetime        | YES  |     | NULL    |                |
   +-------------+-----------------+------+-----+---------+----------------+
   9 rows in set (0.01 sec)
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to