[Bugs] [Bug 1397406] New: glfs_fini does not send parent down on inactive graphs.

bugzilla at redhat.com bugzilla at redhat.com
Tue Nov 22 13:16:30 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1397406

            Bug ID: 1397406
           Summary: glfs_fini does not send parent down on inactive
                    graphs.
           Product: GlusterFS
           Version: mainline
         Component: libgfapi
          Assignee: bugs at gluster.org
          Reporter: rjoseph at redhat.com
        QA Contact: sdharane at redhat.com
                CC: bugs at gluster.org



Description of problem:
At a time we maintain three graphs - active_subvol, next_subvol and 
mip_subvol (migration-in-progress). A new graph move from next_subvol -> 
mip_subvol -> active_subvol when glfs_active_subvol function is called. Before 
every fop we call glfs_active_subvol to make sure the fop goes to the correct 
graph.

when glfs_init is called the new graph is assigned to next_subvol and from
glfs_init we call glfs_active_subvol. Which will migrate the graph. But if
for some reason the mirgation fails, e.g. the first lookup on the "/" dir
fails then we would be left with a state where mip_subol is pointed to the
current graph and both active_subvol and next_subvol is NULL.

In glfs_fini we only send GF_EVENT_PARENT_DOWN to active_subvol and if it
is NULL we go ahead and delete fs and the corresponding ctx. This could
create some problem and also we might not free up used resources.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list