Closed rambo-panda closed 2 months ago
Describe the bug
Accidentally discovered that using cswch too high in version 2.2.4 (the same problem for consumers). this directly caused the load of my node app to have a CPU utilization rate of 10-20 even during off-peak hours.
cswch
2.2.4
Environment:
https://github.com/tulios/kafkajs/blob/c08472878724ce5fc62a9a9aa865255d7e7682a6/src/network/requestQueue/index.js#L314-L316
If this.pending.length is 0, it means that it will fall into the setTmeout dead loop
this.pending.length
setTmeout
Describe the bug
Accidentally discovered that using
cswch
too high in version2.2.4
(the same problem for consumers). this directly caused the load of my node app to have a CPU utilization rate of 10-20 even during off-peak hours.Environment: