Skip to content

Commit 513ad43

Browse files
committed
Merge branch 'dev-1.1.4' of github.com:WeDataSphere/DataSphereStudio into dev-1.1.4
2 parents 3b07b0b + 34761ca commit 513ad43

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

dss-orchestrator/orchestrators/dss-workflow/dss-workflow-server/src/main/java/com/webank/wedatasphere/dss/workflow/lock/DSSFlowEditLockManager.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ public static void deleteLock(String flowEditLock) throws DSSErrorException {
172172
try {
173173
if (StringUtils.isNotBlank(flowEditLock)) {
174174
DSSFlowEditLock dssFlowEditLock = lockMapper.getFlowEditLockByLockContent(flowEditLock);
175-
Long flowId = Optional.ofNullable(dssFlowEditLock).map(DSSFlowEditLock::getFlowID).get();
176-
lockMapper.clearExpire(sdf.get().format(new Date(System.currentTimeMillis() - DSSWorkFlowConstant.DSS_FLOW_EDIT_LOCK_TIMEOUT.getValue())), flowId);
175+
if (dssFlowEditLock != null) {
176+
lockMapper.clearExpire(sdf.get().format(new Date(System.currentTimeMillis() - DSSWorkFlowConstant.DSS_FLOW_EDIT_LOCK_TIMEOUT.getValue())), dssFlowEditLock.getFlowID());
177+
}
177178
}
178179
} catch (Exception e) {
179180
LOGGER.error("flowEditLock delete failed,flowId:{}", flowEditLock, e);

sbin/dss-start-all.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,20 +87,25 @@ function startDssProject(){
8787
startApp
8888
sleep 15
8989

90-
echo "------------------------Start check whether the project service is registered to eureka successfully-----------------------------"
90+
echo "------------------------Start to check whether the project service is registered to eureka successfully-----------------------------"
9191
#project服务启动并注册到eureka后再启动其他服务
92-
while [[ -z $result ]]
92+
i=1
93+
while [[ -z $result ]] && [[ $i -le 24 ]]
9394
do
9495
sleep 5
95-
if [ -z $EUREKA_USERNAME ] || [ -z $EUREKA_PASSWORD ];
96-
then
96+
if [ -z $EUREKA_USERNAME ] || [ -z $EUREKA_PASSWORD ];then
9797
response=`curl http://${EUREKA_INSTALL_IP}:${EUREKA_PORT}/eureka/apps/DSS-FRAMEWORK-PROJECT-SERVER`
98-
else
98+
else
9999
response=`curl http://${EUREKA_USENAME}:${EUREKA_PASSWORD}@${EUREKA_INSTALL_IP}:${EUREKA_PORT}/eureka/apps/DSS-FRAMEWORK-PROJECT-SERVER`
100100
fi
101+
let i++
101102
result=$(echo $response |grep 'DSS-FRAMEWORK-PROJECT-SERVER')
102103
done
103-
echo "------------------------the project service is registered to eureka successfully------------------------------------------------"
104+
if [[ $i -eq 25 ]]; then
105+
echo "the project server start failed in two minutes,please check the log to find more error details."
106+
exit
107+
fi
108+
echo "------------------------the project service is registered to eureka successfully------------------------------------------------"
104109

105110
SERVER_NAME=dss-framework-orchestrator-server
106111
SERVER_IP=$DSS_FRAMEWORK_ORCHESTRATOR_SERVER_INSTALL_IP

0 commit comments

Comments
 (0)