Strange behavior of CB 3.0.1 Community

Hello,

I found strange behavior of CB Server.

Configuration:

CB Server 3.0.1 Community on one AWS micro instance (I know it is small but it is free)
“default” bucked is Couchbase type.

Steps for Reproduce:

  1. Run Python script from local host:

from couchbase import Couchbase
from couchbase.exceptions import CouchbaseError

c = Couchbase.connect(bucket=‘default’, host=‘localhost’)

try:
for i in range(0, 100000):
c.set(“test_key{}”.format(i), “value{}”.format(i))
#c.delete(“test_key{}”.format(i))
except CouchbaseError as e:
print("{}".format(e))
raise

  1. Check in the Admin interface that 100 000 documents are in bucket.

  2. Run Python script from local host:

from couchbase import Couchbase
from couchbase.exceptions import CouchbaseError

c = Couchbase.connect(bucket=‘default’, host=‘localhost’)

try:
for i in range(0, 100000):
#c.set(“test_key{}”.format(i), “value{}”.format(i))
c.delete(“test_key{}”.format(i))
except CouchbaseError as e:
print("{}".format(e))
raise

  1. Check in the Admin interface that 0 documents are in bucket.

  2. Insert 1 document to the bucket

  3. Try to browse document by “Documents” button in the Admin Interface

Result:

Server takes 100% CPU.
In “TOP Keys” is following table:

Key Ops/Sec
test_key1542 0
test_key15420 0
test_key15428 0
test_key15655 0
test_key15431 0
test_key15421 0
test_key15654 0
test_key15429 0
test_key1543 0
test_key15430

In Log is:

Bucket “default” loaded on node ‘ns_1@127.0.0.1’ in 0 seconds. ns_memcached000 ns_1@127.0.0.1 05:55:15 - Mon Jan 12, 2015
Control connection to memcached on ‘ns_1@127.0.0.1’ disconnected: {badmatch,
{error,
timeout}} ns_memcached000 ns_1@127.0.0.1 05:55:15 - Mon Jan 12, 2015
Bucket “default” loaded on node ‘ns_1@127.0.0.1’ in 0 seconds. ns_memcached000 ns_1@127.0.0.1 05:43:54 - Mon Jan 12, 2015
Control connection to memcached on ‘ns_1@127.0.0.1’ disconnected: {badmatch,
{error,
timeout}} ns_memcached000 ns_1@127.0.0.1 05:43:54 - Mon Jan 12, 2015
Bucket “default” loaded on node ‘ns_1@127.0.0.1’ in 0 seconds. ns_memcached000 ns_1@127.0.0.1 05:42:37 - Mon Jan 12, 2015
Control connection to memcached on ‘ns_1@127.0.0.1’ disconnected: {badmatch,
{error,
timeout}} ns_memcached000 ns_1@127.0.0.1 05:42:37 - Mon Jan 12, 2015

Could you please explain why it works like this?

I forgot to mention:
OS Ubuntu 14.04 64 bit
Server 3.0.1 Community 64 bit for Ubuntu.

I am just interesting - is it bug or I am doing something wrong?