Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/feature1 [JIRA: RIAK-2395] #10

Closed
wants to merge 5 commits into from
Closed

Conversation

dizzyd
Copy link
Contributor

@dizzyd dizzyd commented Nov 29, 2010

Please review these patches for bz508.

dizzyd and others added 5 commits November 18, 2010 09:24
Use the #state.returnbody boolean to clearly indicate if the caller
wants the body back; remove reply_arity accordingly. Preprocess
options coming in to init/1 so that we can pass additional options in
future. Distinguish between "options" and "vnode options" (flags
passed to the vnode).
Add a update_last_modified option to put_fsm and rename
update_metadata to update_last_modified. When updating last modified
info, check for situation where there is existing metadata that hasn't
been touched (even though the value may have changed). Note that we
keep the same semantics if there are multiple siblings.
If the caller of the put FSM requests the updated object
or a postcommit hook needs it, make sure that DW is set
to a minimum of 1 so that the put FSM receives a dw
event with the updated object.
@jonmeredith
Copy link
Contributor

Passes my testing. Verified test case in original bug as reported by Kevin works.

@dizzyd
Copy link
Contributor Author

dizzyd commented Dec 6, 2010

Merged to mainline.

@Basho-JIRA Basho-JIRA changed the title Bz508 lost metadata fix feature/feature1 [JIRA: RIAK-2395] Feb 18, 2016
ThomasArts added a commit to Quviq/riak_kv that referenced this pull request Mar 4, 2024
* Merge pull request basho#1 from nhs-riak/nhse-contrib-kv1871

KV i1871 - Handle timeout on remote connection

* Trigger batch correctly at each size (basho#4)

* Force timeout to trigger (basho#3)

Previously, the inactivity timeout on handle_continue could be cancelled by a call to riak_kv_rpelrtq_snk (e.g. from riak_kv_rpelrtq_peer).  this might lead to the log_stats loop never being triggered.

* Configurable %key query on leveled (basho#8)

Can be configured to ignore tombstone keys by default.

* Allow nextgenrepl to real-time replicate reaps (basho#6)

* Allow nextgenrepl to real-time replicate reaps

This is to address the issue of reaping across sync'd clusters.  Without this feature it is necessary to disable full-sync whilst independently replicating on each cluster.

Now if reaping via riak_kv_reaper the reap will be replicated assuming the `riak_kv.repl_reap` flag has been enabled.  At the receiving cluster the reap will not be replicated any further.

There are some API changes to support this.  The `find_tombs` aae_fold will now return Keys/Clocks and not Keys/DeleteHash.  The ReapReference for riak_kv_repaer will now expect a clock (version vector) not a DeleteHash, and will also now expect an additional boolean to indicate if this repl is a replication candidate (it will be false for all pushed reaps).

The object encoding for nextgenrepl now has a flag to indicate a reap, with a special encoding for reap references.

* Update riak_object.erl

Clarify specs

* Take timestamp at correct point (after push)

* Updates following review

* Update rebar.config

* Make current_peers empty when disabled (basho#10)

* Make current_peers empty when disabled

* Peer discovery to recognise suspend and disable of sink

* Update src/riak_kv_replrtq_peer.erl

Co-authored-by: Thomas Arts <thomas.arts@quviq.com>

* Update src/riak_kv_replrtq_peer.erl

Co-authored-by: Thomas Arts <thomas.arts@quviq.com>

---------

Co-authored-by: Thomas Arts <thomas.arts@quviq.com>

* De-lager

* Add support for v0 object in parallel-mode AAE (basho#11)

* Add support for v0 object in parallel-mode AAE

Cannot assume that v0 objects will not happen - capability negotiation down to v0 on 3.0 Riak during failure scenarios

* Update following review

As ?MAGIC is distinctive constant, then it should be the one on the pattern match - with everything else assume to be convertible by term_to_binary.

* Update src/riak_object.erl

Co-authored-by: Thomas Arts <thomas.arts@quviq.com>

---------

Co-authored-by: Thomas Arts <thomas.arts@quviq.com>

* Update riak_kv_ttaaefs_manager.erl (basho#13)

For bucket-based full-sync `{tree_compare, 0}` is the return on success.

* Correct log macro typo

---------

Co-authored-by: Thomas Arts <thomas.arts@quviq.com>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants