sarah
sarah

Reputation: 620

Couchbase bucket won't remove metadata with Full Ejection Mode

I can't understand how Couchbase bucket ejection methods exactly works. Db version is 7.0.3 enterprise.

It has two methods as value-only and full. It says with full ejection, everything is deleted including metadata. However when you delete document and recreate it with same id, its metadata revision number is increased instead of resetting. Example scenario I tried:

Document created with id as "foo"
"rev": "1-174c39a795a800000000000002000006",

updated the document(rev number is increased as expected):
"rev": "2-174c39b2dd1000000000000002000006"

deleted and recreated and id "foo" again(that is the problem):
"rev": "4-174c39b96cfe00000000000002000006",

As you can see, even in full ejection mode, couchbase won't delete metadata and revision number is increased from old one. (2 to 4). Does not matter where I delete it, java api, ui itself, eventing etc, same result.

How do you explain that? Am I missing something?

Upvotes: 1

Views: 95

Answers (1)

dnault
dnault

Reputation: 8909

Ejection is about removing documents/metadata from the in-memory cache. The documents/metadata are still present on disk (unless the bucket type is "ephemeral").

Upvotes: 2

Related Questions