Fix performance storage jsonfile consistency at write:
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 13 Sep 2021 21:33:18 +0000 (23:33 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 13 Sep 2021 21:33:18 +0000 (23:33 +0200)
commitc63c21bce46d9230688d0c5ebd31f5dd861324de
tree8a180bde9ed59c135afc3d1fb6e58b28d400f187
parenteb835fa84ced86641214bff490b3b5ce4332dbb4
Fix performance storage jsonfile consistency at write:

+ Use a lock file to avoid concurrent read->write
+ Switch to synchronous fs operations
+ Ensure a unique id will be used as a performance mark

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
package-lock.json
package.json
rollup.config.js
src/charging-station/Bootstrap.ts
src/performance/PerformanceStatistics.ts
src/performance/storage/JSONFileStorage.ts