mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-02 20:28:03 +08:00
signOut error update and install.sh echo error update (#999)
* add ConnectionFactoryTest and ConnectionFactory read datasource from appliction.yml * .escheduler_env.sh to dolphinscheduler_env.sh * dao yml assembly to conf directory * table name modify * entity title table name modify * logback log name modify * running through the big process * running through the big process error modify * logback log name modify * data_source.properties rename * logback log name modify * install.sh optimization * install.sh optimization * command count modify * command state update * countCommandState sql update * countCommandState sql update * remove application.yml file * master.properties modify * install.sh modify * install.sh modify * api server startup modify * the current user quits and the session is completely emptied. bug fix * remove pom package resources * checkQueueNameExist method update * checkQueueExist * install.sh error output update * signOut error update
This commit is contained in:
parent
ee7a05afc9
commit
a3620167d1
@ -137,12 +137,16 @@ public class SessionService extends BaseService{
|
||||
* @param loginUser
|
||||
*/
|
||||
public void signOut(String ip, User loginUser) {
|
||||
/**
|
||||
* query session by user id and ip
|
||||
*/
|
||||
Session session = sessionMapper.queryByUserIdAndIp(loginUser.getId(),ip);
|
||||
try {
|
||||
/**
|
||||
* query session by user id and ip
|
||||
*/
|
||||
Session session = sessionMapper.queryByUserIdAndIp(loginUser.getId(),ip);
|
||||
|
||||
//delete session
|
||||
sessionMapper.deleteById(session.getId());
|
||||
//delete session
|
||||
sessionMapper.deleteById(session.getId());
|
||||
}catch (Exception e){
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -464,7 +464,7 @@ if [ $? -eq 0 ]
|
||||
then
|
||||
echo 'scp copy completed'
|
||||
else
|
||||
echo 'sc copy failed to exit'
|
||||
echo 'scp copy failed to exit'
|
||||
exit -1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user