User Request
Type: bug
Target: Console Application
Submitted by: @aashu2006
Console Request ID: bf1ff8d1-0dde-46c5-90d7-4ced473c1e3f
Description
What happened:
In pkg/api/handlers/orbit.go:137, mission IDs are generated as "orbit-" + time.Now().Format("20060102150405") with one-second resolution. Two HTTP POST requests arriving within the same wall-clock second receive identical IDs — the second h.missions[m.ID] = &m silently overwrites the first mission.
What I expected:
Mission IDs should use uuid.New() or include nanoseconds to ensure uniqueness under concurrent requests.
Steps to reproduce:
- Send two concurrent POST requests to create orbit missions within the same second
- Observe the first mission is silently overwritten by the second
This issue was automatically created from the KubeStellar Console.
User Request
Type: bug
Target: Console Application
Submitted by: @aashu2006
Console Request ID: bf1ff8d1-0dde-46c5-90d7-4ced473c1e3f
Description
What happened:
In
pkg/api/handlers/orbit.go:137, mission IDs are generated as"orbit-" + time.Now().Format("20060102150405")with one-second resolution. Two HTTP POST requests arriving within the same wall-clock second receive identical IDs — the secondh.missions[m.ID] = &msilently overwrites the first mission.What I expected:
Mission IDs should use
uuid.New()or include nanoseconds to ensure uniqueness under concurrent requests.Steps to reproduce:
This issue was automatically created from the KubeStellar Console.