Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
I have a nomad job with a connect enabled backend.
sometimes, It produces an error log in consul agent :
error filling agent cache: Internal cache failure: service '_nomad-task-XXX' not in agent state
Reproduction Steps
Here is an easy reproduction method
$ nomad -version
Nomad v0.12.4 (8efaee4ba5e9727ab323aaba2ac91c2d7b572d84)
$ consul -version
Consul v1.8.3
Revision a9322b9c7
Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)
Overview of the Issue
Hello,
I have a nomad job with a connect enabled backend. sometimes, It produces an error log in consul agent :
Reproduction Steps
Here is an easy reproduction method
Create the example nomad jobs
Start consul
Start nomad
Start backend job on nomad (wait it is fully started)
Start batch job on nomad
Wait an error in consul logs (job launches every 15 seconds)
Consul info for both Client and Server
Consul info
``` agent: check_monitors = 0 check_ttls = 0 checks = 6 services = 6 build: prerelease = revision = a9322b9c version = 1.8.3 consul: acl = disabled bootstrap = false known_datacenters = 1 leader = true leader_addr = 127.0.0.1:8300 server = true raft: applied_index = 44 commit_index = 44 fsm_pending = 0 last_contact = 0 last_log_index = 44 last_log_term = 2 last_snapshot_index = 0 last_snapshot_term = 0 latest_configuration = [{Suffrage:Voter ID:506cf337-31df-4815-01b0-90606fc638f6 Address:127.0.0.1:8300}] latest_configuration_index = 0 num_peers = 0 protocol_version = 3 protocol_version_max = 3 protocol_version_min = 0 snapshot_version_max = 1 snapshot_version_min = 0 state = Leader term = 2 runtime: arch = amd64 cpu_count = 8 goroutines = 123 max_procs = 8 os = linux version = go1.14.7 serf_lan: coordinate_resets = 0 encrypted = false event_queue = 1 event_time = 2 failed = 0 health_score = 0 intent_queue = 0 left = 0 member_time = 1 members = 1 query_queue = 0 query_time = 1 serf_wan: coordinate_resets = 0 encrypted = false event_queue = 0 event_time = 1 failed = 0 health_score = 0 intent_queue = 0 left = 0 member_time = 1 members = 1 query_queue = 0 query_time = 1 ```Operating system and Environment details
Linux
Log Fragments
Logs extract
Full logs