HashName mem leak
hzxuzhonghu opened this issue · comments
What happened:
In workload model, we introduced many bpf maps keyyed by str's hash value. And we used an inner object HashName
to provide unique hash val, it stores a map innerly. But we can see the keys is never deleted even when a workload/service removed.
FYI: https://github.com/kmesh-net/kmesh/blob/main/pkg/controller_workload/workload/workload_hash.go
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
- Kmesh version:
- Others: