distributed-system-analysis / pbench

A benchmarking and performance analysis framework
http://distributed-system-analysis.github.io/pbench/
GNU General Public License v3.0
188 stars 108 forks source link

Protect the cache lock better #3604

Closed dbutenhof closed 9 months ago

dbutenhof commented 10 months ago

PBENCH-1317

We found a case where a cache lock could "leak" when an error occurs reading a file in the visualize and compare APIs. The file read has now been repackaged with a finally to be sure the stream is closed and unlocked on error.