upgrade 3.1.3

This commit is contained in:
Ulric Qin 2020-10-13 13:09:02 +08:00
parent 744980f119
commit e8d907156c
4 changed files with 13 additions and 8 deletions

View File

@ -1,3 +1,11 @@
3.1.1
影响模块:需要更新job模块的二进制
影响模块job
更新内容job模块之前给监控用的callback地址method误设置为了get是不对的改成了post
3.1.2
影响模块rdb
更新内容:子节点修改的时候,不允许修改为租户节点
3.1.3
影响模块monapi
更新内容对于P2、P3的告警会发送重复的两条

View File

@ -1,7 +1,7 @@
#!/bin/bash
# release version
version=3.1.2
version=3.1.3
CWD=$(cd $(dirname $0)/; pwd)
cd $CWD

View File

@ -59,8 +59,6 @@ func consume(event *models.Event, isHigh bool) {
fillUserIDs(event)
go notify.DoNotify(event.RealUpgrade, event)
// 没有配置报警接收人修改event状态为无接收人
if len(event.RecvUserIDs) == 0 {
SetEventStatus(event, models.STATUS_NONEUSER)
@ -73,6 +71,7 @@ func consume(event *models.Event, isHigh bool) {
return
}
go notify.DoNotify(event.RealUpgrade, event)
SetEventStatus(event, models.STATUS_SEND)
}

View File

@ -30,8 +30,7 @@ var (
help *bool
conf *string
gitHash = "No GitHash Provided"
buildTime = "No BuildTime Provided"
version = "No Version Provided"
)
func init() {
@ -41,8 +40,7 @@ func init() {
flag.Parse()
if *vers {
fmt.Println("Git Commit Hash:", gitHash)
fmt.Println("UTC Build Time:", buildTime)
fmt.Println("Version:", version)
os.Exit(0)
}