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

REST API does not support flushing a bucket

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.5.3
    • Fix Version/s: 1.7 beta
    • Component/s: RESTful-APIs
    • Security Level: Public
    • Labels:
      None

      Description

      [perry@Membase1 ~]$ curl -i http://Administrator:norths@localhost:8091/pools/default/buckets/default/controller/doFlush
      HTTP/1.1 404 Object Not Found
      Server: MochiWeb/1.0 (Any of you quaids got a smint?)
      Date: Tue, 09 Nov 2010 18:33:23 GMT
      Content-Type: text/plain
      Content-Length: 10
      Cache-Control: max-age=10

      Not found.
      [perry@Membase1 ~]$

        Issue Links

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

          Activity

          Hide
          perry Perry Krug added a comment -

          A Pivotal Tracker story has been created for this Issue: http://www.pivotaltracker.com/story/show/9309559

          Show
          perry Perry Krug added a comment - A Pivotal Tracker story has been created for this Issue: http://www.pivotaltracker.com/story/show/9309559
          Hide
          perry Perry Krug added a comment -

          Perry Krug deleted the linked story in Pivotal Tracker

          Show
          perry Perry Krug added a comment - Perry Krug deleted the linked story in Pivotal Tracker
          Hide
          TimSmith Tim Smith (Inactive) added a comment -

          It looks like this bug is not actually fixed. See below:

          tim@lakshmi:~/c/p/java$ curl -i http://Administrator:password@localhost:8091/pools/default/buckets/MyBucket/controller/doFlush
          HTTP/1.1 404 Object Not Found
          Server: MochiWeb/1.0 (Any of you quaids got a smint?)
          Date: Mon, 25 Jul 2011 18:23:59 GMT
          Content-Type: text/plain
          Content-Length: 10
          Cache-Control: max-age=10

          Not found.tim@lakshmi:~/c/p/java$ curl -i http://Administrator:password@localhost:8091/pools/default/buckets/MyBucketHTTP/1.1 200 OK
          Server: Membase Server 1.7.0
          Pragma: no-cache
          Date: Mon, 25 Jul 2011 18:24:16 GMT
          Content-Type: application/json
          Content-Length: 1175
          Cache-Control: no-cache

          {"name":"MyBucket","bucketType":"memcached","authType":"sasl","saslPassword":"testing","proxyPort":0,"uri":"/pools/default/buckets/MyBucket","streamingUri":"/pools/default/bucketsStreaming/MyBucket","flushCacheUri":"/pools/default/buckets/MyBucket/controller/doFlush","nodes":[{"systemStats":

          {"cpu_utilization_rate":21.5,"swap_total":4294967296.0,"swap_used":4171464704.0}

          ,"interestingStats":

          {"curr_items":101,"curr_items_tot":1,"vb_replica_curr_items":0}

          ,"uptime":"419032","memoryTotal":3925136000.0,"memoryFree":95712000,"mcdMemoryReserved":2994,"mcdMemoryAllocated":2994,"replication":1.0,"clusterMembership":"active","status":"healthy","hostname":"127.0.0.1:8091","clusterCompatibility":1,"version":"1.7.0","os":"i386-apple-darwin10.6.0","ports":{"proxy":11211,"direct":11210}}],"stats":

          {"uri":"/pools/default/buckets/MyBucket/stats","directoryURI":"/pools/default/buckets/MyBucket/statsDirectory","nodeStatsListURI":"/pools/default/buckets/MyBucket/nodes"}

          ,"nodeLocator":"ketama","replicaNumber":0,"quota":

          {"ram":209715200,"rawRAM":209715200}

          ,"basicStats":{"quotaPercentUsed":0.0031423568725585938,"opsPerSec":0,"hitRatio":0,"itemCount":100,"diskUsed":0,"memUsed":6590}}tim@lakshmi:~/c/p/java$

          Also, when clicking the "FLUSH" button in the "Edit Bucket" page of the UI, nothing seems to happen (bucket is not flushed, items does not go down).

          Also, when calling mc.flush() from spymemcached client, nothing seems to happen.

          Show
          TimSmith Tim Smith (Inactive) added a comment - It looks like this bug is not actually fixed. See below: tim@lakshmi:~/c/p/java$ curl -i http://Administrator:password@localhost:8091/pools/default/buckets/MyBucket/controller/doFlush HTTP/1.1 404 Object Not Found Server: MochiWeb/1.0 (Any of you quaids got a smint?) Date: Mon, 25 Jul 2011 18:23:59 GMT Content-Type: text/plain Content-Length: 10 Cache-Control: max-age=10 Not found.tim@lakshmi:~/c/p/java$ curl -i http://Administrator:password@localhost:8091/pools/default/buckets/MyBucketHTTP/1.1 200 OK Server: Membase Server 1.7.0 Pragma: no-cache Date: Mon, 25 Jul 2011 18:24:16 GMT Content-Type: application/json Content-Length: 1175 Cache-Control: no-cache {"name":"MyBucket","bucketType":"memcached","authType":"sasl","saslPassword":"testing","proxyPort":0,"uri":"/pools/default/buckets/MyBucket","streamingUri":"/pools/default/bucketsStreaming/MyBucket","flushCacheUri":"/pools/default/buckets/MyBucket/controller/doFlush","nodes":[{"systemStats": {"cpu_utilization_rate":21.5,"swap_total":4294967296.0,"swap_used":4171464704.0} ,"interestingStats": {"curr_items":101,"curr_items_tot":1,"vb_replica_curr_items":0} ,"uptime":"419032","memoryTotal":3925136000.0,"memoryFree":95712000,"mcdMemoryReserved":2994,"mcdMemoryAllocated":2994,"replication":1.0,"clusterMembership":"active","status":"healthy","hostname":"127.0.0.1:8091","clusterCompatibility":1,"version":"1.7.0","os":"i386-apple-darwin10.6.0","ports":{"proxy":11211,"direct":11210}}],"stats": {"uri":"/pools/default/buckets/MyBucket/stats","directoryURI":"/pools/default/buckets/MyBucket/statsDirectory","nodeStatsListURI":"/pools/default/buckets/MyBucket/nodes"} ,"nodeLocator":"ketama","replicaNumber":0,"quota": {"ram":209715200,"rawRAM":209715200} ,"basicStats":{"quotaPercentUsed":0.0031423568725585938,"opsPerSec":0,"hitRatio":0,"itemCount":100,"diskUsed":0,"memUsed":6590}}tim@lakshmi:~/c/p/java$ Also, when clicking the "FLUSH" button in the "Edit Bucket" page of the UI, nothing seems to happen (bucket is not flushed, items does not go down). Also, when calling mc.flush() from spymemcached client, nothing seems to happen.
          Hide
          TimSmith Tim Smith (Inactive) added a comment -

          Sorry, previous results are from Membase 1.7.0 release.

          Show
          TimSmith Tim Smith (Inactive) added a comment - Sorry, previous results are from Membase 1.7.0 release.
          Hide
          TimSmith Tim Smith (Inactive) added a comment -

          Nevermind, sorry I had a typo in my test that caused this to show up; the flush is indeed working.

          Show
          TimSmith Tim Smith (Inactive) added a comment - Nevermind, sorry I had a typo in my test that caused this to show up; the flush is indeed working.

            People

            • Assignee:
              daleharvey Dale Harvey
              Reporter:
              perry Perry Krug
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes