Skip to content

Commit

Permalink
Fixed an issue with infinite configuration application. (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
kochetovd authored Nov 11, 2024
1 parent 9612fc7 commit 2e1be8b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

const (
ReleemAgentVersion = "1.19.6"
ReleemAgentVersion = "1.19.6.1"
)

type Config struct {
Expand Down
2 changes: 1 addition & 1 deletion current_version_agent
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.19.6
1.19.6.1
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# install.sh - Version 1.19.6
# install.sh - Version 1.19.6.1
# (C) Releem, Inc 2022
# All rights reserved

Expand All @@ -9,7 +9,7 @@ export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/
# using the package manager.

set -e -E
install_script_version=1.19.6
install_script_version=1.19.6.1
logfile="/var/log/releem-install.log"

WORKDIR="/opt/releem"
Expand Down
4 changes: 2 additions & 2 deletions mysqlconfigurer.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# mysqlconfigurer.sh - Version 1.19.6
# mysqlconfigurer.sh - Version 1.19.6.1
# (C) Releem, Inc 2022
# All rights reserved

Expand All @@ -15,7 +15,7 @@ MYSQLTUNER_REPORT=$MYSQLCONFIGURER_PATH"mysqltunerreport.json"
RELEEM_MYSQL_VERSION=$MYSQLCONFIGURER_PATH"mysql_version"
MYSQLCONFIGURER_CONFIGFILE="${MYSQLCONFIGURER_PATH}${MYSQLCONFIGURER_FILE_NAME}"
MYSQL_MEMORY_LIMIT=0
VERSION="1.19.6"
VERSION="1.19.6.1"
RELEEM_INSTALL_PATH=$MYSQLCONFIGURER_PATH"install.sh"
logfile="/var/log/releem-mysqlconfigurer.log"

Expand Down
4 changes: 4 additions & 0 deletions tasks/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ func ApplyConfLocal(metrics *models.Metrics, repeaters models.MetricsRepeater, g
task_status = 4
} else if need_restart {
task_exit_code = 10
task_status = 1
} else {
task_exit_code = 0
task_status = 1
}
}
time.Sleep(10 * time.Second)
Expand Down

0 comments on commit 2e1be8b

Please sign in to comment.