Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-6264

CIFS Cluster : After timeout an oplock is being cleared even though the file is still opened by the user.

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1.2
    • Component/s: CIFS
    • Labels:
      None
    • Bug Priority:
      Category 2

      Description

      Follow on issue from ALF-12327

      3. After timeout an oplock is being cleared even the file is still opened by the user.

      Steps to reproduce:
      a. Open any text file on the first node with Notepad.
      b. Wait for a minute or so.
      c. Check the log. The oplock is cleared for opened file.

      Also it is important to highlight that the cache is still holding the FILE netry with Fid=-1. I mean the Fid for files is -1.

      10:06:02,423 DEBUG [org.alfresco.fileserver] ++ \SWSDP\DOCUMENTLIBRARY\AGENCY FILES\CONTRACTS\TEST.TXT(155) : [\SWSDP\DOCUMENTLIBRARY\AGENCY FILES\CONTRACTS\TEST.TXT,FileExists:Opn=1(shr=0x3,pid=6088,primary=/192.168.6.13:5701),Fid=-1,Expire=155,Sts=Available,Locks=0,OpLock=[Remote Owner=/192.168.6.13:5701,type=Batch,stateCache=null]]

      10:07:45,133 DEBUG [org.alfresco.fileserver] ** Access token finalized, not released, [Token owner=/192.168.6.13:5701,pid=6088,oplock=Batch,File=null] **
      10:07:45,135 DEBUG [org.alfresco.fileserver] ** Access token finalized, not released, [Token owner=/192.168.6.13:5701,pid=6088,oplock=Batch,File=\swsdp\documentLibrary\Agency Files\Contracts\test.txt] **
      10:07:47,449 DEBUG [org.alfresco.fileserver] Removing expired file states from local partition
      10:07:47,450 DEBUG [org.alfresco.fileserver] ++ Open files 0
      10:07:47,451 DEBUG [org.alfresco.fileserver] ++ HazelCastFileStateCache Entries:
      10:07:47,451 DEBUG [org.alfresco.fileserver] ++ \SWSDP\DOCUMENTLIBRARY\AGENCY FILES\CONTRACTS\TEST.TXT(49) : [\SWSDP\DOCUMENTLIBRARY\AGENCY FILES\CONTRACTS\TEST.TXT,FileExists:Opn=0,Fid=-1,Expire=49,Sts=Available,Locks=0]
      10:07:47,451 DEBUG [org.alfresco.fileserver] ++ (-225) : [\,DirExists:Opn=0,Fid=-1,Expire=-225,Sts=Available,Locks=0]
      10:07:47,452 DEBUG [org.alfresco.fileserver] ++ \SWSDP\DOCUMENTLIBRARY(44) : [\SWSDP\DOCUMENTLIBRARY,DirExists:Opn=0,Fid=-1,Expire=44,Sts=Available,Locks=0]
      10:07:47,452 DEBUG [org.alfresco.fileserver] Removing expired file states from local partition
      10:07:47,452 DEBUG [org.alfresco.fileserver] ++ Open files 0
      10:07:47,453 DEBUG [org.alfresco.fileserver] ++ HazelCastFileStateCache Entries:
      10:07:47,453 DEBUG [org.alfresco.fileserver] ++ \SWSDP\DOCUMENTLIBRARY\AGENCY FILES\CONTRACTS\TEST.TXT(49) : [\SWSDP\DOCUMENTLIBRARY\AGENCY FILES\CONTRACTS\TEST.TXT,FileExists:Opn=0,Fid=-1,Expire=49,Sts=Available,Locks=0]
      10:07:47,453 DEBUG [org.alfresco.fileserver] ++ (-225) : [\,DirExists:Opn=0,Fid=-1,Expire=-225,Sts=Available,Locks=0]
      10:07:47,453 DEBUG [org.alfresco.fileserver] ++ \SWSDP\DOCUMENTLIBRARY(44) : [\SWSDP\DOCUMENTLIBRARY,DirExists:Opn=0,Fid=-1,Expire=44,Sts=Available,Locks=0]

      QA haven't test it yet after the fix of ALF-12488, so they haven't been found by QA yet.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs
                Reporter:
                mrogers Mark Rogers [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: