Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-2
    • Fix Version/s: 2.1.0
    • Component/s: couchbase-bucket
    • Security Level: Public
    • Labels:
      None

      Description

      If a key is locked using getAndLock, this keys TTL can then be updated using Touch.

      This should not be the case because a locked key should not be able to be changed at all.

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        dipti Dipti Borkar added a comment -

        Discussed this with James and Mike. Chiyoung, the thought was that to maintain strong consistency we should not allow the touch when an item is locked. We'll need to change the behavior here. what do you think?

        Show
        dipti Dipti Borkar added a comment - Discussed this with James and Mike. Chiyoung, the thought was that to maintain strong consistency we should not allow the touch when an item is locked. We'll need to change the behavior here. what do you think?
        Hide
        thuan Thuan Nguyen added a comment -

        Integrated in github-ep-engine-2-0 #477 (See http://qa.hq.northscale.net/job/github-ep-engine-2-0/477/)
        MB-7375: Return TMPFAIL for locked key when doing touch or gat (Revision 11709697708ce1f4acaec4bb533430906177224e)

        Result = SUCCESS
        Mike Wiederhold :
        Files :

        • src/ep_engine.cc
        • src/ep.cc
        • tests/ep_testsuite.cc
        Show
        thuan Thuan Nguyen added a comment - Integrated in github-ep-engine-2-0 #477 (See http://qa.hq.northscale.net/job/github-ep-engine-2-0/477/ ) MB-7375 : Return TMPFAIL for locked key when doing touch or gat (Revision 11709697708ce1f4acaec4bb533430906177224e) Result = SUCCESS Mike Wiederhold : Files : src/ep_engine.cc src/ep.cc tests/ep_testsuite.cc
        Hide
        maria Maria McDuff (Inactive) added a comment -

        pls verify against 2.0.2 build. thanks.

        Show
        maria Maria McDuff (Inactive) added a comment - pls verify against 2.0.2 build. thanks.
        Hide
        maria Maria McDuff (Inactive) added a comment -

        closing - verified by ep-engine unit tests (mike)

        Show
        maria Maria McDuff (Inactive) added a comment - closing - verified by ep-engine unit tests (mike)
        Hide
        sublee Heungsub Lee added a comment -

        If a locked key cannot be touched, how we can renew TTL of the key?

        Here's my problem:

        I'm trying to implement a document modification form on a Web site. When a user starts to modify a document, the server will lock the document for a few minutes. When the lock expires but the user is still modifying the document, the server should renew the lock for more minutes but it is not possible.

        Show
        sublee Heungsub Lee added a comment - If a locked key cannot be touched, how we can renew TTL of the key? Here's my problem: I'm trying to implement a document modification form on a Web site. When a user starts to modify a document, the server will lock the document for a few minutes. When the lock expires but the user is still modifying the document, the server should renew the lock for more minutes but it is not possible.
        Hide
        sublee Heungsub Lee added a comment -

        If a locked key cannot be touched, how we can renew TTL of the key?
        Here's my problem:
        I'm trying to implement a document modification form on a Web site. When a user starts to modify a document, the server will lock the document for a few minutes. When the lock expires but the user is still modifying the document, the server should renew the lock for more minutes but it is not possible.

        Show
        sublee Heungsub Lee added a comment - If a locked key cannot be touched, how we can renew TTL of the key? Here's my problem: I'm trying to implement a document modification form on a Web site. When a user starts to modify a document, the server will lock the document for a few minutes. When the lock expires but the user is still modifying the document, the server should renew the lock for more minutes but it is not possible.

          People

          • Assignee:
            iryna iryna
            Reporter:
            james.mauss James Mauss
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes