Commit Graph
409 Commits
Author SHA1 Message Date
komissarovyv 2bb06ffb8e Share module leader derivation by module 2026-11-18 21:49:35 +03:00
komissarovyv 45de1d1b12 Log module leader changes on the recompute event
The event handler maps the leader recompute onto the routing map rebuild with
the ready and disconnected events of the batch, so a leader change reaches the
routing map of every config service node.

The address list is not re-broadcast from it: the ready and disconnected event
of the same change already broadcasts it, and an extra snapshot per connect
broke the acceptance test on the exact number of host lists a module receives.

An info is written when the leader address in the payload differs from the
address before the change, naming the module, both addresses and the reason.
An event that changed nothing is silent, so the log stays readable.
2026-11-18 21:29:29 +03:00
komissarovyv 6cd0b2c712 Add internal module leader recompute event
The queue gets a payload kind of its own to recompute a module leader, with the
compaction key module_leader_<moduleId> so the collapse of ready and
disconnected into one module_lifecycle_<moduleId> event cannot swallow it.

The event is inserted next to the events of the same change: on a connect, on a
disconnect by WebSocket close, and on the phantom cleanup of the own node.
Graceful shutdown by DeleteOwnBackends keeps inserting no events. The payload
carries the leader address before and after the change, derived from the module
instances that are already loaded, so the event worker reads nothing from the
database. No new columns, no new tables, no new migrations.
2026-11-18 21:29:23 +03:00
komissarovyv 3d04dd2df7 Narrow module events to the module leader 2026-11-18 20:00:09 +03:00
komissarovyv 6cfa1955ea Derive module leader from connected instances 2026-11-18 20:00:09 +03:00
komissarovyv 9e24122e75 Cover module leader mode storage in acceptance tests 2026-11-18 19:31:14 +03:00
komissarovyv 71997dc438 Expose rqlite db handle for tests 2026-11-18 19:31:14 +03:00
komissarovyv bd8a1b2de4 Add module_leader_mode column to connected instances 2026-11-18 19:31:10 +03:00
komissarovyv 7b0108a358 Pin leader contract fields in the acceptance harness 2026-11-18 19:12:53 +03:00
komissarovyv a195c76799 Local isp-kit replace for module leader contract 2026-11-18 19:06:10 +03:00
komissarovyv 780c2232fb Merge branch 'fix-variable-links-persist' into 'main'
Fix: variable links not saved when a variable is used multiple times in config

See merge request isp/isp-config-service!20
2026-10-28 11:37:27 +03:00
Hermes Agent ef0978e064 Bump version to 3.11.1, add changelog 2026-10-28 11:29:32 +03:00
Hermes Agent c464393e93 Drop link self-healing paths, fix linter findings
- Remove link resync on module reconnect, link resave on no-op config
  update, and link backfill on variable create/upsert: links are
  formed only on config save
- Disable exhaustruct_v5 and goconst linters
- Fix golangci-lint findings: noinlineerr, slices.Backward,
  wrapcheck for ConfigValidationError (errors.As in controller keeps
  working via %w), funlen nolint on acceptance test
2026-10-28 11:22:59 +03:00
Hermes Agent 7f4e3ef028 Fix variable links not persisted when variable is used multiple times in config
- Dedupe extracted variable names (duplicate INSERTs aborted the
  config_has_variable transaction on PK conflict)
- Check per-statement rqlite errors in ExecTransaction: a failed
  statement silently returned success before
- Make link upserts idempotent (insert or ignore) and add link
  backfill on variable create/upsert from existing configs
- Validate config variables before insert (no orphaned configs)
- Resync active config links on module reconnect and on no-op
  config update (self-healing)
2026-10-28 10:34:45 +03:00
Синельник Тимур Романович 5c8a554d4f Merge branch 'MSP-8394' into 'main'
Resolve MSP-8394

Closes MSP-8394

See merge request isp/isp-config-service!19
2026-09-25 14:11:50 +03:00
Синельник Тимур Романович 5bdb4813b5 MSP-8394 Guard returning errors.WithMessage with err != nil check 2026-09-25 14:08:18 +03:00
Синельник Тимур Романович 17ec4bdce9 MSP-8394 Use slices.Backward for cycle 2026-09-25 14:06:15 +03:00
Синельник Тимур Романович 428de36857 MSP-8394 Up deps & use isp-kit/errors 2026-09-25 13:45:02 +03:00
Синельник Тимур Романович fc9c4f956f MSP-8394 Bump version to 3.11.0 2026-08-24 12:23:43 +03:00
Синельник Тимур Романович 44961d8416 MSP-8394 Add required admin permission 2026-08-24 12:22:33 +03:00
komissarovyv 2a846c67e4 MODULE_READY can be handled several times 2026-08-09 12:45:52 +03:00
komissarovyv 481f06bfec Bump dependencies 2026-07-27 16:21:37 +03:00
komissarovyv 3b99380a62 Disable migrate tool build 2026-07-07 12:41:50 +03:00
komissarovyv ffa09db7b2 Merge branch 'MSP-8007' into 'main'
Resolve MSP-8007

Closes MSP-8007

See merge request isp/isp-config-service!18
2026-07-07 11:44:22 +03:00
kochanovrv 94af308030 MSP-8007 fix threads 2026-07-07 11:24:09 +03:00
kochanovrv 36e320af28 MSP-8007 up sqlite 2026-07-06 16:21:06 +03:00
kochanovrv c2d7aea679 MSP-8007 up version to v3.9.2 2026-07-06 15:02:33 +03:00
kochanovrv aebd33e5cb MSP-8007 update isp-kit 2026-07-06 15:02:15 +03:00
Кузьмин Игорь Александрович 45b28e46e6 Edit .gitlab-ci.yml 2026-05-13 11:23:17 +00:00
Грязнов Денис Владимирович 48ccd130b2 Merge branch 'MSP-7572' into 'main'
Resolve MSP-7572

Closes MSP-7572

See merge request isp/isp-config-service!17
2026-04-23 14:17:35 +00:00
nglmq 7eb341856d MSP-7572 edit endpoint to inner 2026-04-22 12:36:48 +03:00
nglmq 38fe10f3a1 MSP-7572 bump version to 3.9.1 2026-04-22 12:36:48 +03:00
nglmq fa327ecf5c MSP-7572 edit go version in Dockerfiles 2026-04-22 12:36:48 +03:00
nglmq 6c3e8a632e MSP-7572 linter fixes 2026-04-21 12:35:50 +03:00
nglmq 03fcb26473 MSP-7572 swagger update 2026-04-21 11:57:23 +03:00
nglmq 7f4a1c8131 MSP-7572 new andpoint for required modules 2026-04-21 11:57:00 +03:00
komissarovyv 416f9307c3 Bump isp-kit 2026-02-20 19:26:48 +03:00
Грязнов Денис Владимирович 1273869b07 Merge branch 'dev' into 'main'
Dev

See merge request isp/isp-config-service!16
2026-02-11 13:45:59 +00:00
Синельник Тимур Романович 1839a18bb4 up deps 2026-02-11 16:14:03 +03:00
Синельник Тимур Романович 34d7fabf61 MSP-7042 Bump version to 3.9.0 2026-02-11 16:13:27 +03:00
Синельник Тимур Романович c295bda53b MSP-7042 Up deps & support http methods and transport 2026-02-11 16:13:03 +03:00
komissarovyv f97795bd90 Fix migrate 2026-02-10 17:35:55 +03:00
Кузьмин Игорь Александрович f7931b1d83 Edit .gitlab-ci.yml 2026-02-09 09:06:25 +00:00
Кузьмин Игорь Александрович 245cf8852d Edit .gitlab-ci.yml 2026-02-06 08:11:25 +00:00
Кузьмин Игорь Александрович 7b09eb3a07 Edit Dockerfile.dit 2026-02-05 14:45:18 +00:00
Кузьмин Игорь Александрович e45900fbaa Revert "Replace .gitlab-ci.yml"
This reverts commit aefc14ece9
2026-02-05 14:41:25 +00:00
Кузьмин Игорь Александрович b0330e80f3 Revert "Delete Dockerfile.dit"
This reverts commit 5a3d4fffea
2026-02-05 14:38:46 +00:00
Синельник Тимур Романович 9a2cdd0662 Merge branch 'sprint_dev' into 'main'
Sprint dev

Closes MSP-6930

See merge request isp/isp-config-service!13
2026-01-26 15:48:59 +03:00
Синельник Тимур Романович 9b577e96b1 Merge branch 'MSP-6930' into 'sprint_dev'
Resolve MSP-6930

See merge request isp/isp-config-service!14
2025-12-18 13:33:21 +03:00
Синельник Тимур Романович 7873c57c8e MSP-6930 Bump version to 3.8.0 2025-12-18 12:21:17 +03:00