Skip to content

Resolve "Open BackendVFS ObjectStore files in R/W mode when obtaining exclusive locks"

Closes #1069 (closed)

Tested in continuous integration environment with CTA based objectstore:

[cta@fermicloud524 objectstore]$ kubectl logs -n cta init
...
Using this configuration for library:
Configuring mhvtl library
DRIVESLOT is not defined, using driveslot 0
export LIBRARYTYPE=mhvtl
export LIBRARYNAME=VLSTK10
export LIBRARYDEVICE=sg0
export DRIVENAMES=(VDSTK11 VDSTK12 VDSTK13)
export DRIVEDEVICES=(nst0 nst1 nst2)
export TAPES=(V01001 V01002 V01003 V01004 V01005 V01006 V01007)
export driveslot=0
Configuring objectstore:
Configuring file objectstore
Wiping objectstore
Nov 23 23:15:33.079962 init cta-objectstore-initialize: LVL="DEBUG" PID="150" TID="150" MSG="In AgentReference::appyAction(): added object to ownership." agentObject="cta-objectstore-initialize-init-150-20211123-23:15:33-0" ownedObject="DriveRegister-cta-objectstore-initialize-init-150-20211123-23:15:33-0-1" 
Nov 23 23:15:33.089517 init cta-objectstore-initialize: LVL="DEBUG" PID="150" TID="150" MSG="In AgentReference::appyAction(): removed object from ownership." agentObject="cta-objectstore-initialize-init-150-20211123-23:15:33-0" ownedObject="DriveRegister-cta-objectstore-initialize-init-150-20211123-23:15:33-0-1" 
Nov 23 23:15:33.093431 init cta-objectstore-initialize: LVL="DEBUG" PID="150" TID="150" MSG="In AgentReference::appyAction(): added object to ownership." agentObject="cta-objectstore-initialize-init-150-20211123-23:15:33-0" ownedObject="SchedulerGlobalLock-cta-objectstore-initialize-init-150-20211123-23:15:33-0-2" 
Nov 23 23:15:33.102439 init cta-objectstore-initialize: LVL="DEBUG" PID="150" TID="150" MSG="In AgentReference::appyAction(): removed object from ownership." agentObject="cta-objectstore-initialize-init-150-20211123-23:15:33-0" ownedObject="SchedulerGlobalLock-cta-objectstore-initialize-init-150-20211123-23:15:33-0-2" 
Nov 23 23:15:33.106637 init cta-objectstore-initialize: LVL="INFO" PID="150" TID="150" MSG="In Agent::removeAndUnregisterSelf(): Removed agent object." agentObject="cta-objectstore-initialize-init-150-20211123-23:15:33-0" 
New object store path: file:///mnt/nfs/objectstore
...
### INIT COMPLETED ###

Merge request reports