View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0001112 | bareos-core | director | public | 2019-09-13 08:08 | 2019-12-18 15:24 | 
| Reporter | arogge | Assigned To | arogge | ||
| Priority | normal | Severity | minor | Reproducibility | always | 
| Status | closed | Resolution | fixed | ||
| Platform | Linux | OS | CentOS | OS Version | 7 | 
| Product Version | 18.2.6 | ||||
| Summary | 0001112: After mount/unmount of tape "status slots" shows empty list | ||||
| Description | When you mount or unmount a tape to or from a slot and then immediately issue an "status slots" this will show you an empty list. | ||||
| Steps To Reproduce | - attach a tape library - label some tapes - issue "status slots" (everything looks ok) - issue mount command - issue "status slots" (list shows empty) - wait a minute - issue "status slots" again (everything good again)  | ||||
| Additional Information | This seems to be related to the caching. Maybe mount/unmount clears the cache but fails to reset the flag? | ||||
| Tags | storage | ||||
| 
	
	 bareos: master a9293f13 2019-09-13 16:47 Ported: N/A Details Diff | 
core: reset cache on invalidate vol_list->contents Fixes 0001112: After mount/unmount of tape "status slots" shows empty list Previously the cache timestamp on vol_list->contents was not reset when the list has been emptied. This lead to strange behaviour with empty vol_lists showing up. This patch now resets timestamp to zero when clearing vol_list->contents so the cache is always rebuilt if contents had been cleared.  | 
Affected Issues 0001112  | 
|
| mod - core/src/dird/storage.cc | Diff File | ||
| 
	
	 bareos: bareos-18.2 839032ce 2019-09-13 16:47 Ported: N/A Details Diff | 
core: reset cache on invalidate vol_list->contents Fixes 0001112: After mount/unmount of tape "status slots" shows empty list Previously the cache timestamp on vol_list->contents was not reset when the list has been emptied. This lead to strange behaviour with empty vol_lists showing up. This patch now resets timestamp to zero when clearing vol_list->contents so the cache is always rebuilt if contents had been cleared. (cherry picked from commit c8dff08c03ed07d51bb5cda6deaed68878d20997)  | 
Affected Issues 0001112  | 
|
| mod - core/src/dird/storage.cc | Diff File | ||
| Date Modified | Username | Field | Change | 
|---|---|---|---|
| 2019-09-13 08:08 | arogge | New Issue | |
| 2019-09-13 08:09 | arogge | Status | new => assigned | 
| 2019-09-13 08:09 | arogge | Assigned To | => arogge | 
| 2019-09-13 08:09 | arogge | Tag Attached: storage | |
| 2019-09-17 16:22 | arogge | Changeset attached | => bareos master a9293f13 | 
| 2019-09-17 16:22 | arogge | Changeset attached | => bareos bareos-18.2 839032ce | 
| 2019-09-17 16:22 | arogge | Note Added: 0003573 | |
| 2019-09-17 16:22 | arogge | Status | assigned => resolved | 
| 2019-09-17 16:22 | arogge | Resolution | open => fixed | 
| 2019-12-12 13:30 | arogge | Relationship added | related to 0001152 | 
| 2019-12-18 15:24 | arogge | Status | resolved => closed |