@@ -99,8 +99,8 @@ cancel_fullsync(Pid) ->
9999% %%===================================================================
100100
101101init ([Cluster , Client , Transport , Socket , Partition , OwnerPid , Proto ]) ->
102- lager :debug ( " AAE fullsync source worker started for partition ~p " ,
103- [Partition ]),
102+ lager :info (
103+ " AAE fullsync source worker started for partition ~p " , [Partition ]),
104104
105105 Ver = riak_repl_util :deduce_wire_version_from_proto (Proto ),
106106 {_ , ClientVer , _ } = Proto ,
@@ -285,7 +285,9 @@ update_trees(tree_built, State = #state{indexns=IndexNs}) ->
285285 NeededBuilts ->
286286 % % Trees built now we can estimate how many keys
287287 {ok , EstimatedNrKeys } = riak_kv_index_hashtree :estimate_keys (State # state .tree_pid ),
288- lager :debug (" EstimatedNrKeys ~p for partition ~p " , [EstimatedNrKeys , State # state .index ]),
288+ lager :info (
289+ " EstimatedNrKeys ~p for partition ~p " ,
290+ [EstimatedNrKeys , State # state .index ]),
289291
290292 lager :debug (" Moving to key exchange state" ),
291293 key_exchange (init , State # state {built = Built , estimated_nr_keys = EstimatedNrKeys });
@@ -320,7 +322,7 @@ key_exchange(cancel_fullsync, State) ->
320322 {stop , normal , State };
321323key_exchange (finish_fullsync , State = # state {owner = Owner }) ->
322324 send_complete (State ),
323- lager :debug (" AAE fullsync source completed partition ~p " ,
325+ lager :info (" AAE fullsync source completed partition ~p " ,
324326 [State # state .index ]),
325327 riak_repl2_fssource :fullsync_complete (Owner ),
326328 % % TODO: Why stay in key_exchange? Should we stop instead?
@@ -341,8 +343,9 @@ key_exchange(start_key_exchange, State=#state{cluster=Cluster,
341343 tree_pid = TreePid ,
342344 exchange = Exchange ,
343345 indexns = [IndexN |_IndexNs ]}) ->
344- lager :debug (" Starting fullsync key exchange with ~p for ~p /~p " ,
345- [Cluster , Partition , IndexN ]),
346+ lager :info (
347+ " Starting fullsync key exchange with ~p for ~p /~p " ,
348+ [Cluster , Partition , IndexN ]),
346349
347350 SourcePid = self (),
348351
@@ -396,14 +399,20 @@ key_exchange(start_key_exchange, State=#state{cluster=Cluster,
396399 end ,
397400
398401 % % TODO: Add stats for AAE
399- lager :debug (" Starting compare for partition ~p " , [Partition ]),
400- spawn_link (fun () ->
401- StageStart = os :timestamp (),
402- Exchange2 = riak_kv_index_hashtree :compare (IndexN , Remote , AccFun , Exchange , TreePid ),
403- lager :debug (" Full-sync with site ~p ; fullsync difference generator for ~p complete (completed in ~p secs)" ,
404- [State # state .cluster , Partition , riak_repl_util :elapsed_secs (StageStart )]),
405- gen_fsm :send_event (SourcePid , {'$aae_src' , done , Exchange2 })
406- end ),
402+ lager :info (" Starting compare for partition ~p " , [Partition ]),
403+ spawn_link (
404+ fun () ->
405+ StageStart = os :timestamp (),
406+ Exchange2 =
407+ riak_kv_index_hashtree :compare (
408+ IndexN , Remote , AccFun , Exchange , TreePid ),
409+ lager :info (
410+ " Full-sync with site ~p ; fullsync difference generator for ~p completion_time=~p secs" ,
411+ [State # state .cluster ,
412+ Partition ,
413+ riak_repl_util :elapsed_secs (StageStart )]),
414+ gen_fsm :send_event (SourcePid , {'$aae_src' , done , Exchange2 })
415+ end ),
407416
408417 % % wait for differences from bloom_folder or to be done
409418 {next_state , compute_differences , State }.
0 commit comments