diff --git a/CHANGES.txt b/CHANGES.txt index e69f0842..750bf25c 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,7 @@ +5.8.2 (Sep 17, 2024) +- Fixed healthcheck monitor for cases with no segments. +- Updated go-split-commons version to v6.0.1. + 5.8.1 (Jul 12, 2024) - Fixed vulnerabilities: - Updated debian image to 12.6 diff --git a/go.mod b/go.mod index 42a903b6..35f9e160 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/gin-gonic/gin v1.10.0 github.com/google/uuid v1.3.0 github.com/splitio/gincache v1.0.1 - github.com/splitio/go-split-commons/v6 v6.0.0 + github.com/splitio/go-split-commons/v6 v6.0.1 github.com/splitio/go-toolkit/v5 v5.4.0 github.com/stretchr/testify v1.9.0 go.etcd.io/bbolt v1.3.6 diff --git a/go.sum b/go.sum index e4c2d90e..9f6e2ecd 100644 --- a/go.sum +++ b/go.sum @@ -93,8 +93,8 @@ github.com/rogpeppe/go-internal v1.8.0 h1:FCbCCtXNOY3UtUuHUYaghJg4y7Fd14rXifAYUA github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE= github.com/splitio/gincache v1.0.1 h1:dLYdANY/BqH4KcUMCe/LluLyV5WtuE/LEdQWRE06IXU= github.com/splitio/gincache v1.0.1/go.mod h1:CcgJDSM9Af75kyBH0724v55URVwMBuSj5x1eCWIOECY= -github.com/splitio/go-split-commons/v6 v6.0.0 h1:qenr5qbXafjvM832C64CVpjtlShuQiWCwtR5I2h4ogM= -github.com/splitio/go-split-commons/v6 v6.0.0/go.mod h1:TsvIh3XP7yjc7ly4vpj06AkoBND36SodPs5qfhb8rHc= +github.com/splitio/go-split-commons/v6 v6.0.1 h1:WJcvTk8lwWw6kLQvxt8hOkY/tGlBN4w+2agkINPGugY= +github.com/splitio/go-split-commons/v6 v6.0.1/go.mod h1:TsvIh3XP7yjc7ly4vpj06AkoBND36SodPs5qfhb8rHc= github.com/splitio/go-toolkit/v5 v5.4.0 h1:g5WFpRhQomnXCmvfsNOWV4s5AuUrWIZ+amM68G8NBKM= github.com/splitio/go-toolkit/v5 v5.4.0/go.mod h1:xYhUvV1gga9/1029Wbp5pjnR6Cy8nvBpjw99wAbsMko= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= diff --git a/splitio/admin/views/dashboard/js.go b/splitio/admin/views/dashboard/js.go index eb584b99..127e98a1 100644 --- a/splitio/admin/views/dashboard/js.go +++ b/splitio/admin/views/dashboard/js.go @@ -350,8 +350,11 @@ const mainScript = ` if (health.healthySince != null) { const dateHealthy = new Date(Date.parse(health.healthySince)).toLocaleString() $('#healthy_since').html(dateHealthy); + $('#sync_div_error').addClass('hidden'); } else { - $('#healthy_since').html('NOT HEALTHY'); + $('#healthy_since').html('Not Healthy'); + $('#sync_div_ok').addClass('hidden'); + $('#sync_div_error').removeClass('hidden'); } if (health.dependencies == null) { return } const payload = {}; diff --git a/splitio/admin/views/dashboard/stats.go b/splitio/admin/views/dashboard/stats.go index 770a7a94..cf0d23cc 100644 --- a/splitio/admin/views/dashboard/stats.go +++ b/splitio/admin/views/dashboard/stats.go @@ -130,7 +130,7 @@ const cards = `
@@ -142,7 +142,7 @@ const cards = `
@@ -154,7 +154,7 @@ const cards = `
@@ -166,7 +166,7 @@ const cards = `
@@ -178,7 +178,7 @@ const cards = `
@@ -190,15 +190,21 @@ const cards = ` -
+

Sync

OK

+
{{else}}
@@ -252,8 +258,8 @@ const cards = `
@@ -261,14 +267,20 @@ const cards = `

Streaming

OK

-
-
-
+
+
+
+

Sync

+

OK

+
+
+ -
+
{{end}}
diff --git a/splitio/commitversion.go b/splitio/commitversion.go index c841f0fd..238005fb 100644 --- a/splitio/commitversion.go +++ b/splitio/commitversion.go @@ -5,4 +5,4 @@ This file is created automatically, please do not edit */ // CommitVersion is the version of the last commit previous to release -const CommitVersion = "ae5a5ac" +const CommitVersion = "8d090ac" diff --git a/splitio/producer/initialization.go b/splitio/producer/initialization.go index f1e6b6d1..445ccdad 100644 --- a/splitio/producer/initialization.go +++ b/splitio/producer/initialization.go @@ -137,7 +137,7 @@ func Start(logger logging.LoggerInterface, cfg *conf.Main) error { splitTasks := synchronizer.SplitTasks{ SplitSyncTask: tasks.NewFetchSplitsTask(workers.SplitUpdater, int(cfg.Sync.SplitRefreshRateMs)/1000, logger), SegmentSyncTask: tasks.NewFetchSegmentsTask(workers.SegmentUpdater, int(cfg.Sync.SegmentRefreshRateMs)/1000, - advanced.SegmentWorkers, advanced.SegmentQueueSize, logger), + advanced.SegmentWorkers, advanced.SegmentQueueSize, logger, appMonitor), ImpressionsCountSyncTask: tasks.NewRecordImpressionsCountTask(workers.ImpressionsCountRecorder, logger, impressionsCountPeriodTaskInMemory), // local telemetry diff --git a/splitio/proxy/initialization.go b/splitio/proxy/initialization.go index 5c8fd35c..30a3ca6f 100644 --- a/splitio/proxy/initialization.go +++ b/splitio/proxy/initialization.go @@ -130,7 +130,7 @@ func Start(logger logging.LoggerInterface, cfg *pconf.Main) error { stasks := synchronizer.SplitTasks{ SplitSyncTask: tasks.NewFetchSplitsTask(workers.SplitUpdater, int(cfg.Sync.SplitRefreshRateMs/1000), logger), SegmentSyncTask: tasks.NewFetchSegmentsTask(workers.SegmentUpdater, int(cfg.Sync.SegmentRefreshRateMs/1000), advanced.SegmentWorkers, - advanced.SegmentQueueSize, logger), + advanced.SegmentQueueSize, logger, appMonitor), TelemetrySyncTask: tasks.NewRecordTelemetryTask(workers.TelemetryRecorder, int(cfg.Sync.Advanced.InternalMetricsRateMs), logger), ImpressionSyncTask: impressionTask, ImpressionsCountSyncTask: impressionCountTask, diff --git a/splitio/version.go b/splitio/version.go index e2984b51..11d3d202 100644 --- a/splitio/version.go +++ b/splitio/version.go @@ -2,4 +2,4 @@ package splitio // Version is the version of this Agent -const Version = "5.8.1" +const Version = "5.8.2"