View Issue Details

IDProjectCategoryView StatusLast Update
0001112bareos-coredirectorpublic2019-12-18 15:24
Reporterarogge Assigned Toarogge  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSCentOSOS Version7
Product Version18.2.6 
Summary0001112: After mount/unmount of tape "status slots" shows empty list
DescriptionWhen 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 InformationThis seems to be related to the caching. Maybe mount/unmount clears the cache but fails to reset the flag?
Tagsstorage

Relationships

related to 0001152 closedarogge Release Bareos 18.2.7 

Activities

arogge

arogge

2019-09-17 16:22

manager   ~0003573

Fix committed to bareos bareos-18.2 branch with changesetid 11779.

Related Changesets

bareos: master a9293f13

2019-09-13 16:47

arogge

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

arogge

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

Issue History

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