k3s-io / kine

Run Kubernetes on MySQL, Postgres, sqlite, dqlite, not etcd.
Apache License 2.0
1.5k stars 228 forks source link

Watch channel of ttl events maybe abnormally closed #219

Open gshilei opened 9 months ago

gshilei commented 9 months ago

Due to subscribe channel maybe closed by slow processing,I enhance the ttl events logic to process watch events.

Otherwise, once the watch channel of ttl events is closed, ttl events will no longer be processed.

Thank you for taking the time to review.

https://github.com/k3s-io/kine/pull/218