Riak: reliable object deletion

al so volkswak at gmail.com
Thu Feb 23 01:43:17 EST 2017


>
>  Here is brief env:
>  Riak v 2.0.8 + Solr/ 5 node cluster/ MDC
>
>  Problem:
>   Deleted object suddenly resurrected after few days. Solr search query(
> "*:*") was executed around the time of reappearance.
>
>  Bucket property for this reappeared object
>  {
>   "props": {
>     "name": "UsaHype",
>     "allow_mult": false,
>     "basic_quorum": false,
>     "big_vclock": 50,
>     "chash_keyfun": {
>       "mod": "riak_core_util",
>       "fun": "chash_std_keyfun"
>     },
>     "dvv_enabled": true,
>     "dw": "quorum",
>     "last_write_wins": false,
>     "linkfun": {
>       "mod": "riak_kv_wm_link_walker",
>       "fun": "mapreduce_linkfun"
>     },
>     "n_val": 3,
>     "notfound_ok": true,
>     "old_vclock": 86400,
>     "postcommit": [
>       {
>         "mod": "riak_repl_leader",
>         "fun": "postcommit"
>       },
>       {
>         "mod": "riak_repl2_rt",
>         "fun": "postcommit"
>       }
>     ],
>     "pr": 0,
>     "precommit": [
>
>     ],
>     "pw": 0,
>     "r": "quorum",
>     "repl": true,
>     "rw": "quorum",
>     "small_vclock": 50,
>     "w": "quorum",
>     "young_vclock": 20
>   }
> }
>
>
> * delete_mode is not configured at all. Defaults to 3 sec? Do Tombstone still get created when no delete_mode at all in the config? Can we query metadata(*X-Riak-Deleted)* for this reappeared object.*
>
>  How would one go about finding root cause. I do know the date when the
> object was deleted from our app logs. I also seem to know when it
> reappeared. Seems like a solr search ("*:*") in code was executed just
> before this object reappeared? Look at AAE? Is there a way to find if Solr
> and Riak backends are out-of-sync (AAE?).
>
>  I understand tuning other params (allow_mult = true, ...) will have its
> own implications.
>
>  In summary:
>   How do I find root cause of this issue.
>   How to reliable delete an object.
>
> -Volk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20170222/d0d1ff2d/attachment-0002.html>


More information about the riak-users mailing list