codex-team / codex-team/hawk.collector

Collector must close gracefully when rabbitmq is not available

Open
#77 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
2
Forks
0
Avg merge
35m
Merged PRs (30d)
2

Description

Now it just panics
```
2021/04/17 13:35:37 Failed to connect to RabbitMQ (amqp://guest:guest@rabbitmq:5672/): dial tcp: lookup rabbitmq: no such host
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x13523bb]
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the RabbitMQ connection setup and error path that produces the reported log and nil-pointer panic. Run the collector with RabbitMQ unavailable; done means it handles the connection failure and exits or shuts down gracefully without panicking.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, rabbitmq
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.