I HA: can a master State Unknown to transition to instead of throwing IRE?

Hello

I 5.0.48

I runs tests using the example of quotes with a cluster of four nodes. I have a question about the behavior of the cluster as replicas are killed.

I start with four nodes, n1, n2, n3 and n4. N1 was elected master. N2 - n4 become replicas.

If I kill n3 n1 rest master and written is still allowed as there are sufficient replicas to satisfy policy SIMPLE_MAJORITY. If I didn't then go on to kill n4, n1 is always master but InsufficientReplicasException is thrown in response to each entry. I see in the documentation, it's expected behaviour.

In our case, we want to know immediately when the number of replicas becomes too few to meet the ReplicaAckPolicy, rather than waiting for the next transaction due to InsufficientReplicasException. We wonder if there is a way to organize for the master to the transition from unknown back when this condition arises. If this is not possible, is it possible for the application to learn it in the other direction? I read on Monitor.startListener () and MonitorChangeListener. These could help us?

Any advice would be much appreciated.

Best regards, Keith Wall.

Keith,

Yes, the various mechanisms of notification that informs the user of the status of the members are the right way to go. You have already noticed the Monitor and MonitorChangeListener classes and I hope that the javadoc (starting with com.sleepycat.je.rep.monitor.monitor) chapter in the guide of replication is pretty informative: http://docs.oracle.com/cd/E17277_02/html/ReplicationGuide/monitors.html. Also note the chapter on the use of com.sleepycat.je.rep.StateChangeListener: http://docs.oracle.com/cd/E17277_02/html/ReplicationGuide/replicawrites.html.

The two mechanisms differ from the point of view of the question of if the management is at the point when the application has access to a ReplicatedEnvironment, or if it is done by an entity of the third party, such as a load balancer. They are two sides of the same coin. But neither to totally exempt the application code to handle the possibility of an InsufficientReplicasException.
-It is always possible that the notifications will be sent and processed later than the exception
-l' lack of response to a replica may be due to a temporary network problem, and as it was not a real change state, no notification is sent
-If a node goes down, it cannot send its own notification, of course, and it may take a little while for other nodes to intervene, to detect status change and make a notification

So the notification mechanisms can optimize and reduce the possibility of obtaining an InsufficientReplicasException, but it can not remove it completely. This could lead to having to manage various exceptions in the application code. For a long time, Jeff Alexander wrote this example of how he made a wrapper of the transaction to modularize all exception management: https://blogs.oracle.com/jhalex/entry/handling_transactions_in_bdb_je. We tend to do something in this sense when write us code that emits data against a BDB I HA cluster operations.

Hope that helps,

Linda

Tags: Database

Similar Questions

  • Hello world? I wonder where we can see the State repaired our phone, after that send it for warranty repair?

    I sent my iphone to warranty service for more than 20 days and still not recover.

    I wonder where we can see the State repaired our phone, after that send it for warranty repair?

    Thank you and best regards!

    You will receive emails with updates from Apple. Have you received one indicating that they have received your iPhone?

  • How can I load state do?

    Basically, I use a code example to lock a device. Now, I think, if the device can detect the State of charge can lock the phone. Therefore, my code is as follows: (I have not write locking code yet)

    If (batteryInfo.chargingState () == BatteryChargingState.Charging) {}

    }

    After compilation, it gave me an error that says "error: wait before create primary expression '.' token '.

    I don't know how to solve this problem. Can someone help me? Thank you.

    Hello

    Use ':' instead of a point:

    if(batteryInfo.chargingState() == BatteryChargingState::Charging) {
                   }
    
  • can a sql statement cause different sql_id?

    can a sql statement cause different sql_id? reason why I ask... in my AWR report by looking at the sql section I found even with different sql_id sql query... .i was thinking of a sql can have only a single sql_id... .i double checked 5 or 6 times the sql text... they are the exact same, but different sql_id... .is it possible?

    No, it is not possible.

    However if you compare:

    select * from emp.scott 
    

    with

    select * FROM emp.scott
    

    These two will have different hash values, because the hash value is case-sensitive.

    I know, Oracle uses the portion of the MD5 to generate the SQL_ID and the HASH_VALUE of a sql statement.

    Bearing in mind the last, it would be possible that two different sql queries have same hash values.

    I recommend Tanel Poder's article on the relationship between the SQL_ID and HASH_VALUE (it's a very good article)

    http://blog.tanelpoder.com/2009/02/22/sql_id-is-just-a-fancy-representation-of-hash-value/

  • managed servers started as windows service show state UNKNOWN in console

    I registered my AdminServer as a windows service with - delay: 60000 and I recorded three independent servers managed with - delay: 30000 and - dependent: "beasvc MyDomain_AdminServer".

    Edit: I put this before registration of managed servers, is that OK? Set ADMIN_URL = http://localhost:7001

    After restarting the server, all services, including NodeManager, started fine. When I log console and go to environment/servers, it shows all the servers managed with the State "unknown". Deployments do not meet the HTTP requests. When you try to start the servers through the console, I get an exception of locking files in the log files that should. Deployments are Active, Admin, States prepared, but nothing does, and I have no control using the console.

    Where am I wrong? Thanks for any help.

    Are you sure that the administrator of the server has been started with the set of attributes of "weblogic.management.discover" "true"?

  • How can I get my Email MSN old back instead of Windows Live Mail?

    I have XP, IE 8:

    After removing the infection of virus by support staff, I'm done with Windows Live mail after their dose.

    How can I get my Email MSN old back instead?

    Thank you very much!

    IKE

    Original title: MSN Email

    Perhaps what follows is what you are looking for.
    http://membercenter.MSN.com/download.aspx

  • What can reset so that the Research Assistant appears instead of windows search?

    When I click on search in a folder I get Windows Search instead of the search wizard. This happened after I installed an upgrade to the indexing service. What can reset so that the Research Assistant appears instead of windows search?

    Hey Bgol,.

    Welcome to the forum!

    You can get your search companion to Windows Search 4.0 uninstall feature. You can do this:

    ·         Click Start

    ·         Click on Control Panel

    ·         Click Add or remove programs

    ·         Right-click Windows Search 4.0

    ·         Click Remove

    It will come back to your system by using the search instead of the Windows Search Assistant.

    Hope that helps, I look forward to hearing from you.

    Steven
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Windows xp what parameters can choose to get a scrolling screen smooth, instead of nervousness

    Windows xp what parameters can choose to get a screen scroll smooth, instead of nervousness, I have a microsoft wireless

    mouse, 2000

    Hello

    1 how long have you been faced with this problem?
    2 did you recent hardware or software changes to your computer before this problem?
    3. This does happen with a particular application?

    I suggest you to try the methods of troubleshooting provided in the article below and check out them.
    The problems with the mouse button or scroll the parameters
    http://support.Microsoft.com/kb/303091

  • Can I remove internet explore and use chrome instead?

    Can I remove internet explore and use chrome instead? That is, crashes, to stop, resarts and slows my computor. I installed Google Chrome and have had no more problems. It opens and closes when I want it and going to the Web pages as I type in without hesitation. I like windows 7, I only have a problem with Internet Explore. It also caused changes in my modem. I need to uninstall the software and reinstall to get it working again. IO would open that is and get a message that says "no internet access - check your settings, I thought it was a virus at some point. As soon as I started using Chrome, everything worked again. That is also caused problems with my printer and home network. I don't mind that is being stored in a file, I don't want to work and make changes to my computer I'm not an it expert by any means. I restored my pc to an earlier time and new conditions of factory several times in the past year (I bought the HP pc new in December 2010).

    It is not really a way to remove Internet Explorer.  I have not heard of the type of problems, you had with IE, but if you prefer Chrome and who works for you, all you need to do is to make Chrome the default browser.  I use Firefox and make it my default browser.  Once you make Chrome default you just leave Internet Explorer installed but it won't get used.  Following comes the site help Chrome and tells how to do it by default: http://support.google.com/chrome/bin/answer.py?hl=en&answer=95417

  • How Windows Explorer can be configured to browse the folder hierarchy instead of behaving like a browser?

    I work with files in a folder tree.  I want to browse this folder hierarchy, just as I did in the original copy of Windows Explorer in Windows XP.  I want to use the arrow keys to navigate up and down, and when I'm in a folder and click the previous button, I want it to go up one level in the folder hierarchy, just like he used to.

    Now, when I hit the 'back' button, Windows Explorer behaves as a browserand goes to the last folder that I have read.

    It's so frustrating!  She interrupts my thought process and the movement of my work.  If I wanted to use a browser, I use Internet Explorer.

    How Windows Explorer can be configured to browse the folder hierarchy instead of behaving like a browser?  Remember the "unwebified" of Windows XP Windows Explorer version?  This is what I want so I can get back to work effectively.

    Windows Explorer 7 does not have the up button like XP, however, in the address bar you can select the folder in the hierarchy (sometimes called the trail of bread crumbs) to return.

    Windows 8 added the arrow pointing upwards.

  • The 7510 all-in-one can be connected to an iMac by Bluetooth instead of Wi - Fi connection?

    The 7510 all-in-one can be connected to an iMac by Bluetooth instead of Wi - Fi connection?

    Hi johnrpiano,

    No, the 7510 does not support bluetooth connections.

  • What can I use on my samsung Tablet 4 instead of flash player?

    What program can I use on my Samsung 4 Tablet instead of flash player?  I have tried the App store but couldn't find anything to use.

    Hi maryd73348871,

    Flash Player only is not supported on any mobile device (Android, Blackberry, iOS, Windows Phone, etc.).

    --

    Piyush

  • Can I buy Indesign for a month only (instead of full year?)

    Hi team,

    Can I buy Indesign for a month only (instead of full year?) I only need it for 2 months and was hoping that I can subscribe for only a month.

    Ideas?

    Thank you

    Mishary

    Hello Mishary,

    We're here in the forum users like you, sometimes, here you will find an Adobe employee.

    If I understand you in the right way: you want to save money, ok? In this case, I would like to download a verson try Indesign, to fill the first 30 days. For the next period, you should buy a 30 days "Single App" pricing and membership Creative Cloud plans | Adobe Creative cloud (see screenshot)

    Hans-Günter

  • VM with the State "unknown".

    After a power failure sudden, we could recover our vcloud Director cell, but all the virtual machines indicate 'unknown' State and all operations are disabled from the GUI. I am able to poweron vms with PowerCLI Start-CIVapp without problem.

    Example of output from Get-CIVM:

    Name State GuestOSFullName CpuCount MemoryGB

    ----                           ------                      ---------------                          -------- --------

    WINVM0 Unknown Microsoft Windows Server 2008 R2 (64-... 0.000 0

    WINVM1 Unknown Microsoft Windows Server 2008 R2 (64-... 0.000 0

    WINVM2 Unknown Microsoft Windows Server 2008 R2 (64-... 0.000 0

    I tried refreshing and reconnecting to vcenter vcloud without change.

    Any ideas?

    the vm_inv table can essentially be emptied... all the * _INV tables are basically just a get vCenter status... If you retrieved the table, the State may be absent for items in question.

    I think that you basically have to truncate all the * tables of _inv, followed by property_map... then reboot vCloud Director services.  This will force a full sweep of the inventory and get the correct/current.

    If you want to help by doing this, you can create a support request and the technical team can help.

  • Firefox cannot but Safari can view the "statements". CGI files. In Safari open in PDF format. How to display in Firefox?

    Several banks and statements utility company websites' open as a PDF in Safari. In Firefox, they download only as CGI files. How see open those statements in Firefox?

    You can change the name of the file and change the extension from .cgi by .pdf file and choose a more meaningful name if Firefox does not by itself.
    This should suffice in most cases.

Maybe you are looking for