Marathon 1.4.x experienced a regression in which history would not load for an app definition. This is a slightly more complex, that retains similar performance properties and races.
Fixes MARATHON-7133
Marathon 1.4.x experienced a regression in which history would not load for an app definition. This is a slightly more complex, that retains similar performance properties and races.
Fixes MARATHON-7133
...
No Linters Available |
No Unit Test Coverage |
Buildable 1832 | |
Build 3473: Marathon (deprecated) | Jenkins |
Build 3472: arc lint + arc unit |
Build has FAILED
Link to build: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/1855/
See console output for more information: https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/1855/console
Build is green https://jenkins.mesosphere.com/service/jenkins/job/public-test-marathon-phabricator/1856/ for more details.
src/main/scala/mesosphere/marathon/core/storage/store/impl/cache/LazyCachingPersistenceStore.scala | ||
---|---|---|
218 | Without introducing a VersionCacheStorageReference we could simplify this to: if (versionCache.contains((category, unversionedId))) { val cached = versionCache.getOrElse((category, unversionedId), Set.empty) // linter:ignore UndesirableTypeInference versionCache.put((category, unversionedId), cached + version) } Both solutions have a race problem, since the TrieMap does not have an update operation based on the existing value. |
Without introducing a VersionCacheStorageReference we could simplify this to:
Both solutions have a race problem, since the TrieMap does not have an update operation based on the existing value.