configstore: if the size of the serialised jenv decreases the .jenv file will be corrupt
Bug #1348458 reported by
Dave Cheney
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Dave Cheney |
Bug Description
Due to dint of fate, or sheer dumb luck, the on disk size of .jenv files always grew -- never shrank.
However, if they do, the new, smaller, contents of the file are written starting from offset 0, _but_not_
The end result is if the size of the environinfo shrinks, possibly because the set of API addresses shrinks, then the jenv file will be corrupted -- readers of the file will see the bit of the yaml which was not overwritten at the end of the file
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
https:/ /github. com/juju/ juju/pull/ 402#issuecommen t-50104078