Traceback (most recent call last):
File "/opt/tcollector/tcollector.py", line 375, in run
col.evict_old_keys(now)
File "/opt/tcollector/tcollector.py", line 276, in evict_old_keys
for key in self.values.keys():
RuntimeError: dictionary changed size during iteration
2021-01-23 16:54:56,333 tcollector[20919] INFO: Reading from processstats.py
In python3 we get this exception
Traceback (most recent call last): File "/opt/tcollector/tcollector.py", line 375, in run col.evict_old_keys(now) File "/opt/tcollector/tcollector.py", line 276, in evict_old_keys for key in self.values.keys(): RuntimeError: dictionary changed size during iteration 2021-01-23 16:54:56,333 tcollector[20919] INFO: Reading from processstats.py
This issue is discussed here.
https://stackoverflow.com/questions/11941817/how-to-avoid-runtimeerror-dictionary-changed-size-during-iteration-error
Please review the changes.