Revert agent_tracker's runGC function
Reverts part of: !1102 (merged)
This MR reverts tracker.go
and tracer_test.go
to ensure GC will be executed. Without these GC executions, it can be overflowed when the gitlab-agent continues to restart and it keeps registering the gitlab-agent, but the user never visits GitLab Rails. In this scenario, Hash.Scan
will never be called and thus the GC will never be executed. To avoid this situation, we need to run GC explicitly.