View Issue Details

IDProjectCategoryView StatusLast Update
0001112bareos-core[All Projects] directorpublic2019-09-17 16:22
ReporteraroggeAssigned Toarogge 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSCentOSOS Version7
Product Version18.2.6 
Fixed in Version 
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
bareos-master: impact
bareos-master: action
bareos-19.2: impact
bareos-19.2: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action

Activities

arogge

arogge

2019-09-17 16:22

developer   ~0003573

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

Related Changesets

bareos: master a9293f13

2019-09-13 14:47:06

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 14:47:06

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