scramjetorg / transform-hub

Scramjet Transform Hub (STH) is a runtime supervisor that can run data processing programs called Sequences and manage local resources on any Linux server, Docker on small edge servers, and even large-scale Kubernetes clusters in the cloud or datacenters. It connects to Scramjet Spaces in Scramjet Cloud Platform.
GNU Affero General Public License v3.0
67 stars 8 forks source link

SelfHostedHub connected to space with ID used earlier shows old sequences and instances #999

Open karoltylenda opened 1 year ago

karoltylenda commented 1 year ago

Describe the bug When I run SHH in cloud panel with the ID that was used earlier, CLI Command: SI HUB INFO lists the sequences and instances that were started previously

Steps to Reproduce

  1. Go to cloud platform and ADD NEW HUB
  2. Start sequences on this HUB, and kill them
  3. Then disconnect HUB
  4. In CLI delete this HUB
  5. in cloud platform ADD NEW HUB with the same ID(can be started on diffrent ports)
  6. in CLI connect to this hub and type si hub info
  7. sequences and instances list should be empty, but isn't

Expected behavior

When we start new HUB even with same ID, we should not see IDs of different sequences or instances

Version (please complete the following information):

Additional information like logs, screenshots etc. Zrzut ekranu z 2023-11-29 11-15-25 Zrzut ekranu z 2023-11-29 11-42-41

patuwwy commented 1 year ago

nice catch!

patuwwy commented 1 year ago

also topics dont reflect actual SHH state

patuwwy commented 11 months ago

Plese verify fix