Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-1748

cannot store data to bucket that is too small

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • 1.6.0 GA
    • 1.6.0 beta4
    • couchbase-bucket
    • None
    • Operating System: All
      Platform: All

    Description

      • install one server
      • use the web UI to create a new bucket with a new port, such as "b1" on port 11212
      • wait awhile for it to quiesce
        when you try binary protocol directly against 11210, also, we get (incorrect) Not stored error responses.

      >>> import mc_bin_client
      >>> c = mc_bin_client.MemcachedClient(host="10.17.1.93",port=11210)
      >>> c.sasl_auth_plain("b1", "")
      (733836429, 0, 'Authenticated')

      >>> c.set("bbb", 0, 0, "222")
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "mc_bin_client.py", line 122, in set
      return self._mutate(memcacheConstants.CMD_SET, key, exp, flags, 0, val)
      File "mc_bin_client.py", line 96, in _mutate
      cas)
      File "mc_bin_client.py", line 92, in _doCmd
      return self._handleSingleResponse(opaque)
      File "mc_bin_client.py", line 85, in _handleSingleResponse
      cmd, opaque, cas, keylen, extralen, data = self._handleKeyedResponse(myopaque)
      File "mc_bin_client.py", line 81, in _handleKeyedResponse
      raise MemcachedError(errcode, rv)
      mc_bin_client.MemcachedError: Memcached error #5: Not stored

      >>> c.get("x")
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "mc_bin_client.py", line 139, in get
      parts=self._doCmd(memcacheConstants.CMD_GET, key, '')
      File "mc_bin_client.py", line 92, in _doCmd
      return self._handleSingleResponse(opaque)
      File "mc_bin_client.py", line 85, in _handleSingleResponse
      cmd, opaque, cas, keylen, extralen, data = self._handleKeyedResponse(myopaque)
      File "mc_bin_client.py", line 81, in _handleKeyedResponse
      raise MemcachedError(errcode, rv)
      mc_bin_client.MemcachedError: Memcached error #1: Not found
      >>>

      As an aside, moxi also sees NOT_STORED responses, if you telnet to 11212 (to the newly spawned embedded moxi for bucket "b1") to try and set data using ascii protocol.

      Attachments

        Issue Links

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

          Activity

            People

              frank@northscale.com Frank Weigel (Inactive)
              steve.yen@northscale.com Steve Yen
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty