Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 4.0.4
    • None
    • None
    • None
    • 2
    • SDK32

    Description

      Implement replicate_to and persist_to durability options.

      NOTE: Currently c++ client does not implement observable durability.

      The current structure is called ClientDurability

      class ClientDurability:
       
          def __init__(self,
                       replicate_to=ReplicateTo.NONE,  # type: ReplicateTo
                       persist_to=PersistTo.NONE  # type: PersistTo
                       ):
              """
              Client Durability
       
              :param persist_to: If set, wait for the item to be removed
                  from the storage of at least these many nodes
       
              :param replicate_to: If set, wait for the item to be removed
                  from the cache of at least these many nodes
                  (excluding the master)
              """
              self._replicate_to = replicate_to
              self._persist_to = persist_to
       
          @property
          def replicate_to(self) -> ReplicateTo:
              return self._replicate_to
       
          @property
          def persist_to(self) -> PersistTo:
              return self._persist_to
      

      Attachments

        Issue Links

          For Gerrit Dashboard: PYCBC-1276
          # Subject Branch Project Status CR V

          Activity

            People

              jared.casey Jared Casey
              jared.casey Jared Casey
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty