cache.flush() not working - memcached.log: no access to command FLUSH

37 views
Skip to first unread message

Peter Chocholacek

unread,
Sep 15, 2017, 3:48:38 AM9/15/17
to simple-spring-memecached
Hello,

I was wondering if somebody had similar problem, and would be so kind sharing his knowledge.

when I try to clear CouchBase memcached bucket type,
regadles whether using SASL authentication or not,
the bucketwill not get flushed.

org.springframework.cache.Cache.clear()
which calls
com.google.code.ssm.Cache.flush()

There is the following in the server log,
memcached.log:

2017-09-15T09:32:13.313864+02:00 WARNING 1728 [ 127.0.0.1:52780 - 127.0.0.1:11210 ]: no access to command FLUSH

About Couchbase Server
Version: 4.5.1-2845 Community Edition (build-2845)
 
<dependency>
<groupId>com.google.code.simple-spring-memcached</groupId>
<artifactId>spring-cache</artifactId>
<version>3.6.1</version>
</dependency>

<dependency>
<groupId>com.google.code.simple-spring-memcached</groupId>
<artifactId>spymemcached-provider</artifactId>
<version>3.6.1</version>
</dependency>

Thanks for help,
Peter

Jakub Białek

unread,
Sep 15, 2017, 4:00:54 AM9/15/17
to simple-spring-memecached
Hi,

I don't think it's related to SSM or spymemcached. To make it work in SSM just make sure that allowClear=true.
From CouchBase doc: https://developer.couchbase.com/documentation/server/3.x/admin/CLI/CBcli/cbcli-bucket-flush.html seams that you have to enable flushing on bucket at creation time.

-- Ragnor

--
You received this message because you are subscribed to the Google Groups "simple-spring-memecached" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simple-spring-memecached+unsub...@googlegroups.com.
To post to this group, send email to simple-spring-memecached@googlegroups.com.
Visit this group at https://groups.google.com/group/simple-spring-memecached.
For more options, visit https://groups.google.com/d/optout.

Peter Chocholacek

unread,
Sep 15, 2017, 8:22:45 AM9/15/17
to simple-spring-memecached
Hi,

unfortunately
allowClear=true
is correctly set.

But using the REST Api works:
curl -v -X POST http://localhost:8091/pools/default/buckets/local/controller/doFlush

Thanks,
P
To post to this group, send email to simple-sprin...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages