Пример #1
0
            public void TopologyContainsPendingBackupsForCurrentNodeWillStartsBackupReplication()
            {
                node.SetTopology(new Topology(new[]
                {
                    new Segment
                    {
                        AssignedEndpoint = NodeEndpoint.ForTest(91),
                        PendingBackups   = { endPoint }
                    },
                }, 1));

                executer.AssertWasCalled(x => x.RegisterForExecution(Arg <OnlineSegmentReplicationCommand> .Is.TypeOf));
            }
Пример #2
0
 public bool Execute()
 {
     if (continueWorking == false)
     {
         return(false);
     }
     try
     {
         node.SetTopology(master.GetTopology());
         log.DebugFormat("Updated toplogy to version {0}", node.Topology.Version);
         return(true);
     }
     catch (Exception e)
     {
         log.Warn("Unable to update topology, we are probably running on incosistent topology", e);
         return(false);
     }
     finally
     {
         Completed();
     }
 }