Search Results for

    Show / Hide Table of Contents

    Enum PartitionLossPolicy

    Partition loss policy. Defines how cache will behave in a case when one or more partitions are lost because of a node(s) failure.

    All Safe policies prevent a user from interaction with partial data in lost partitions until ResetLostPartitions(IEnumerable<String>) method is called.

    *All policies allow working with partial data in lost partitions.

    ReadOnly and ReadWrite* policies do not automatically change partition state and thus do not change rebalancing assignments for such partitions.

    Namespace: Apache.Ignite.Core.Cache.Configuration
    Assembly: Apache.Ignite.Core.dll
    Syntax
    public enum PartitionLossPolicy : int

    Fields

    Name Description
    Ignore

    If partition is lost, reset it's state and do not clear intermediate data. The result of reading from a previously lost and not cleared partition is undefined and may be different on different nodes in the cluster.

    ReadOnlyAll

    All writes to the cache will be failed with an exception. All reads will proceed as if all partitions were in a consistent state. The result of reading from a lost partition is undefined and may be different on different nodes in the cluster.

    ReadOnlySafe

    All writes to the cache will be failed with an exception, reads will only be allowed for keys in non-lost partitions. Reads from lost partitions will be failed with an exception.

    ReadWriteAll

    All reads and writes will proceed as if all partitions were in a consistent state. The result of reading from a lost partition is undefined and may be different on different nodes in the cluster.

    ReadWriteSafe

    All reads and writes will be allowed for keys in valid partitions. All reads and writes for keys in lost partitions will be failed with an exception.

    In This Article
    Back to top © 2015 - 2019 The Apache Software Foundation