Skip to content

Getting a crash since I updated the node pool #9

@danhawkins

Description

@danhawkins

It seems that libelection is expecting a resourceVersion, but it's not there

Kubernetes Version 1.23.16-gke.1400

realtimeex-6c5c69b4bf-xs6pz realtimeex 09:56:36.744 [error] GenServer Election.Elector terminating
realtimeex-6c5c69b4bf-xs6pz realtimeex ** (FunctionClauseError) no function clause matching in anonymous fn/1 in Election.Strategy.Kubernetes.parse_response/2
realtimeex-6c5c69b4bf-xs6pz realtimeex     (libelection) lib/strategy/kubernetes.ex:77: anonymous fn(%{"ip" => "10.8.2.137", "nodeName" => "gke-dev-e2-spot-pool-6b613fad-jwf2", "targetRef" => %{"kind" => "Pod", "name" => "realtimeex-6c5c69b4bf-xs6pz", "namespace" => "staging", "uid" => "86d8ea88-8e9f-4873-b1c0-2dd6c25d4a6e"}}) in Election.Strategy.Kubernetes.parse_response/2
realtimeex-6c5c69b4bf-xs6pz realtimeex     (elixir) lib/enum.ex:1327: Enum."-map/2-lists^map/1-0-"/2
realtimeex-6c5c69b4bf-xs6pz realtimeex     (elixir) lib/enum.ex:2986: Enum.flat_map_list/2
realtimeex-6c5c69b4bf-xs6pz realtimeex     (libelection) lib/strategy/kubernetes.ex:74: anonymous fn/3 in Election.Strategy.Kubernetes.parse_response/2
realtimeex-6c5c69b4bf-xs6pz realtimeex     (elixir) lib/enum.ex:1940: Enum."-reduce/3-lists^foldl/2-0-"/3
realtimeex-6c5c69b4bf-xs6pz realtimeex     (libelection) lib/strategy/kubernetes.ex:23: Election.Strategy.Kubernetes.leader/2
realtimeex-6c5c69b4bf-xs6pz realtimeex     (libelection) lib/elector.ex:102: Election.Elector.determine_election/2
realtimeex-6c5c69b4bf-xs6pz realtimeex     (libelection) lib/elector.ex:66: Election.Elector.handle_cast/2
realtimeex-6c5c69b4bf-xs6pz realtimeex Last message: :timeout

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions