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

moxi flush_all returns OK even if flush is disabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 1.8.1
    • None
    • moxi
    • Security Level: Public
    • None

    Description

      moxi does not return error when flush is disabled

      [root@localhost bin]# ./cbflushctl 10.3.121.110:11210 set flushall_enabled false
      setting flush param: flushall_enabled false

      [root@localhost bin]# telnet localhost 11211
      Trying 127.0.0.1...
      Connected to localhost.localdomain (127.0.0.1).
      Escape character is '^]'.
      flsuh
      ERROR
      flush_all
      OK
      quit

      [root@localhost bin]# ./cbstats localhost:11210 all | grep curr_items:
      curr_items: 5000
      vb_active_curr_items: 5000
      vb_pending_curr_items: 0
      vb_replica_curr_items: 5000
      [root@localhost bin]#

      now after enabling flush :
      [root@localhost bin]# ./cbflushctl 10.3.121.110:11210 set flushall_enabled true
      setting flush param: flushall_enabled true
      [root@localhost bin]# ./cbflushctl localhost:11210 set flushall_enabled true
      setting flush param: flushall_enabled true
      [root@localhost bin]# telnet localhost 11211
      Trying 127.0.0.1...
      Connected to localhost.localdomain (127.0.0.1).
      Escape character is '^]'.
      flush_all
      OK
      quit
      Connection closed by foreign host.
      [root@localhost bin]# ./cbstats localhost:11210 all | grep curr_items:
      curr_items: 0
      vb_active_curr_items: 0
      vb_pending_curr_items: 0
      vb_replica_curr_items: 0

      Attachments

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

        Activity

          People

            steve Steve Yen
            farshid Farshid Ghods (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty