[CONTROLLER-635] Fix YangStoreServiceImpl safety model Created: 17/Jul/14 Updated: 28/Jul/14 Resolved: 28/Jul/14 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | config |
| Affects Version/s: | Helium |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 1384 |
| Description |
|
Tracing SP edition startup shows that the fileinstall thread is blocked for 22 seconds (out of total 65 second bootup) trying to call YangStoreServiceImpl.refresh(). Since all refresh() does is invalidate the cache, it should be possible to add just a volatile flag, which would signal the constructing thread (which needs to be synchronized), that it should throw away the result and retry. |
| Comments |
| Comment by Robert Varga [ 17/Jul/14 ] |