Forum Stats

  • 3,814,069 Users
  • 2,258,814 Discussions
  • 7,892,523 Comments

Discussions

overridden persistence defaults still being displayed

snidely_whiplash
snidely_whiplash Member Posts: 576
edited Oct 11, 2018 12:08AM in Coherence Support

I believe the values in bold below are the default paths.  I have overridden those using -D<blah> and my overrides are working but still the defaults get displayed here.

Cache Configuration: orders

  SchemeName: orders-scheme

  AutoStart: true

  ServiceName: DistributedOrdersCacheService

  ServiceDependencies

    EventDispatcherThreadPriority: 10

    ThreadPriority: 10

    WorkerThreadsMax: 2147483647

    WorkerThreadsMin: 1

    WorkerPriority: 5

    ActionPolicyBuilder

      RulesArray (ArrayList of QuorumRule)

        [0]

          RuleElementName: distribution-quorum

          RuleMask: 1

        [1]

          RuleElementName: restore-quorum

          RuleMask: 2

        [2]

          RuleElementName: recover-quorum

          RuleMask: 16

        [3]

          RuleElementName: read-quorum

          RuleMask: 4

        [4]

          RuleElementName: write-quorum

          RuleMask: 8

    Backups: 1

    DistributionAggressiveness: 20

    DistributionSynchronized: true

    Partitions: 257

    BldrsPartitionListener

    AssignmentStrategyBuilder

      Strategy: simple

    TransferThreshold: 524288

    DepsPersistence

      PersistenceBuilder: Mode: active

       Active Location: /home/andrew/coherence/active

        Snapshot Location:/home/andrew/coherence/snapshots

        Trash Location:/home/andrew/coherence/trash

      FailureMode: 1

    StrictPartitioning: true

  ListenerBuilder (ClassScheme)

    CustomBuilder

      FactoryClassName: OrderAddTrigger

      FactoryMethodName: createTriggerListener

      MethodParametersList

  BackingMapScheme

    InnerScheme (LocalScheme)

      UnitFactor: 1

Best Answer

Answers

  • Ryan Lubke-Oracle
    Ryan Lubke-Oracle Member Posts: 26 Employee
    edited Oct 10, 2018 4:45PM

    Would you mind confirming the properties you used?

  • snidely_whiplash
    snidely_whiplash Member Posts: 576
    edited Oct 10, 2018 6:11PM

    in the cache-config's <distributed-scheme> I have:

    <persistence>

    <environment>default-active</environment>

    <active-failure-mode>stop-persistence</active-failure-mode>

    </persistence>

    default-active provides the following, which I set and I know they're working because the files are written to these paths

    -Dcoherence.distributed.persistence.active.dir=/opt/coherence/store/active/"

    -Dcoherence.distributed.persistence.snapshot.dir=/opt/coherence/store/snapshot"

    -Dcoherence.distributed.persistence.trash.dir=/opt/coherence/store/trash"

    Seems like the cache status display that's shown when coherence-console selects a cache is just showing the defaults which I've overridden successfully.   Nothing is being written in those default paths (/home/$USER/coherence/*).  The paths don't even get created now that I overrode their values.

  • Tmiddlet-Oracle
    Tmiddlet-Oracle Member Posts: 125
    edited Oct 10, 2018 9:51PM Answer ✓

    Make sure you set those properties in your client as well.

    I think it is just the client displaying the default values, but they are not used as its storage-dsiabled.

    Please confirm.

    Thanks

  • snidely_whiplash
    snidely_whiplash Member Posts: 576
    edited Oct 11, 2018 12:08AM

    Yes that was it.  Thanks!