Long RepQuoteExample: Replica do not sync with master

Hello

I extended the example RepQuoteExample (in Java), mainly to work with DBXML and use transactions. This seems to have had the unfortunate side effect that my replica does not synchronize with the master. The journal clearly indicates that updates to the master are the acknowledgment of the replica, but requests to the replica do not return results. Closing the master (Env1) down results in the replica (Env2) to become a master and a reboot later from Env1 results be a replica, I can read my original updates. Repeat this procedure gives similar results for Env2, i.e. updates are not synchronized with Env1. SetTxnNoSync definition (false) did not help.

Log on to master when you add an XML document:

[13061:109000] [5540/3916] MASTER: wait for the acknowledgement of receipt: need 1
[13061:156000] [5540/4912] MASTER: got ack [1] [3550800] (16) 8092 site

The environment is initialized as follows:
     EnvironmentConfig envConfig = new EnvironmentConfig();
        envConfig.setErrorStream(System.err);
        envConfig.setErrorPrefix("someprefix");
        envConfig.setReplicationManagerLocalSite(appConfig.getThisHost());
        for (RepRemoteHost host = appConfig.getFirstOtherHost();
            host != null; host = appConfig.getNextOtherHost()){
            envConfig.replicationManagerAddRemoteSite(
                host.getAddress(), host.isPeer());
        }
        if (appConfig.totalSites > 0)
            envConfig.setReplicationNumSites(appConfig.totalSites);
        envConfig.setReplicationPriority(appConfig.priority);
        envConfig.setCacheSize(RepConfig.CACHESIZE);
//        envConfig.setTxnNoSync(true);
        envConfig.setEventHandler(new RepQuoteEventHandler());
        envConfig.setReplicationManagerAckPolicy(appConfig.ackPolicy);
        envConfig.setReplicationRequestMin(20000);
        envConfig.setReplicationRequestMax(500000);
        envConfig.setLockDetectMode(LockDetectMode.DEFAULT);
//        envConfig.setDsyncDatabases(true);
//        envConfig.setDsyncLog(true);
//        envConfig.setDirectDatabaseIO(true);
//        envConfig.setDirectLogIO(true);
        envConfig.setLogAutoRemove(true);
        envConfig.setAllowCreate(true);
        envConfig.setRunRecovery(true);
        envConfig.setThreaded(true);
        envConfig.setInitializeReplication(true);
        envConfig.setInitializeLocking(true);
        envConfig.setInitializeLogging(true);
        envConfig.setInitializeCache(true);
        envConfig.setTransactional(true);
        envConfig.setVerbose(VerboseConfig.REPLICATION_ELECTION, appConfig.verbose);
        envConfig.setVerbose(VerboseConfig.REPMGR_CONNFAIL, appConfig.verbose);
        envConfig.setVerbose(VerboseConfig.REPMGR_MISC, appConfig.verbose);
        envConfig.setVerbose(VerboseConfig.REPLICATION_LEASE, appConfig.verbose);
        envConfig.setVerbose(VerboseConfig.REPLICATION_TEST, appConfig.verbose);
     try {
          dbenv = new ReqQuoteEnvironment(appConfig.getHome(), envConfig);
          xmlMgr = new XmlManager(dbenv, new XmlManagerConfig());
     } catch (FileNotFoundException e) {
          System.err.println("FileNotFound exception: " + e);
          System.err.println("Ensure that the environment directory is pre-created.");
     }

     if (appConfig.bulk)
          dbenv.setReplicationConfig(ReplicationConfig.BULK, true);

     dbenv.setReplicationTimeout(ReplicationTimeoutType.HEARTBEAT_SEND,
          5000000);
     dbenv.setReplicationTimeout(ReplicationTimeoutType.HEARTBEAT_MONITOR,
          10000000);

     ckpThr = new CheckpointThread(dbenv);
     ckpThr.start();
     dlrThr = new DeadlockResolverThread(dbenv, appConfig);
     dlrThr.start();
     dbenv.replicationManagerStart(3, appConfig.startPolicy);
Commented lines were attempts to solve my problem. I'm not sure of this as any other information that you need, so I'll save space for now.

Thank you
Rade

Published by: user13112097 on 20.05.2010 04:46

Published by: user13112097 on 20.05.2010 05:13

Hello Bay,

You are right.

In the Berkeley DB reference Guide, on the page titled "strengthening of".
replicated applications", it is said:

For implementation reasons, all replicated databases must reside
in the directories of data, the value of DB_ENV-> set_data_dir() (or in the)
Directory default environment, if not using
DB_ENV-> set_data_dir()), rather than in a subdirectory below the
specified directory.

I highly recommend reading the chapter of the replication of the
Reference guide.

Alan Bram
Oracle

Tags: Database

Similar Questions

  • iPhone not syncing with itunes

    Hello

    I have a problem with my iPhone 6 do not sync with iTunes. I tried many fixes nothing works.

    When connecting my iPhone to my laptop via the USB port, it will load. But iTunes won't recognize the device. I got around this before creating a separate playlist (access by holding SHIFT when opening iTunes), as my wife and I both use the same laptop computer for iTunes. But this no longer works and the laptop does not recognize the iPhone on any playlists. I tried the following:

    -Change the USB port

    -change the usb cable

    -reset the two devices (hard reset on iPhone)

    -allowing the radiation and authorizing on itunes

    -J' chose to allow the laptop to access the data and photos on the iPhone

    Someone at - it ideas? I am at a total loss after spending 45 minutes on this last night.

    Thanks in advance

    Tom

    Are you on Windows?  If so, try to uninstall and reinstall iTunes (later).

  • BlackBerry Smartphones Blackberry not syncing with Gmail

    My Blackberry Bold 9900 stopped sync with Gmail. I only synchronize e-mail, contacts, or calendar. I mainly use Gmail site on my PC to read and delete emails. I have more than 70 unread e-mails on my Blackberry that were already deleted from the Gmail Web site. The option 'balance' has no effect. I can receive new Gmail on Blackberry messages, but if I have to 'Mark as read' or 'Clear' an email actions does not sync with the Gmail Web site. The same is true if I 'Mark as read' or 'Delete' an email on Gmail Web site. The actions are not synchronized with the Blackberry. I have 2 Android devices and a Windows Phone that syncs with Gmail without a problem. I just have the problem on my Blackberry.

    My device information:

    BlackBerry Bold 9900

    7.1 bundle 2435 (v7.1.0.862, platform 5.1.0.662)

    Reconciliation of BlackBerry e-mail settings:

    Delete on: mailbox & Pocket

    Wireless reconcile: checked

    On conflicts: mailbox WINS

    Gmail settings:

    Inbox, and garbage are included in IMAP feeds

    Also, I tried to delete Gmail from Blackberry account. When I did he told me he would remove all Gmail messages from the phone but it moved all the Gmail unread messages in my main mailbox. (I keep Gmail and Exchange separate emails on my Blackberry). It is also impossible to select multiple messages at the same time to remove if they are not in a consecutive order.

    Hello and welcome to the community!

    With a strong carrier network (for example, not only WiFi), I suggest the following steps, in order, even if they seem redundant to what you have already tried (steps 1 and 2, each should result in a message from your BB... Please wait just before moving on to the next step):

    1) register HRT

    • KB00510 How to register a BlackBerry smartphone with wireless network
    • Please wait a 'registration' message reach your Messages application

    2) Remove and return Service books

    • KB05000 Remove the maintenance book for the BlackBerry Internet Service email account in the BlackBerry smartphone
    • If you do not have access CMIME, continue deleting
    • KB02830 Send the directories for the BlackBerry Internet Service
    • Please wait "the Activation' Messages, one per already configured e-mail account, arrive in your Messages. If you have not already configured email accounts, please wait 1 hour.

    3) restart

    • With power ON, remove the hood back and remove the battery. Wait a minute, then replace the battery and cover. Power on and wait patiently through the long reboot - about 5 minutes.
    • See if things return to functioning. Like all computing devices, BB suffers from memory leaks and others... with a hard reboot is the best remedy.

    I hope that will move things again for you! If not, then you should try remove and re-add your configurations for the relevant accounts. Otherwise, you should contact your mobile provider for formal support.

    Good luck!

  • Door-key, do not sync with icloud

    After that install OS X El Capitan new keychain on mac OS X is not sync with icloud Keychain, what can I do to restore my trousseau?

    Keychain - Get help help iCloud

    Keychain troubleshooting

  • IPad will not sync with iTunes on my laptop. Synchronization in iPpod settings will not work

    MY iPad will not sync with iTunes on my laptop, the sync on my iPad button will not work. I have the latest updates on both.

    I guess you mean that the sync button in iTunes, not on the iPad, will not work. If you are sure you have the latest version of iTunes and iOS (your profile shows 8.1) try quitting iTunes on the computer, restart the computer and force restart your iPad

    No data is lost during this procedure. Hold on the sleep and home buttons at the same time for about 10 seconds until the Apple logo appears on the screen.

  • 6 IPhone will not sync with my ITunes MacBook

    My IPhone 6 does not sync with my Macbook. When I plug it into the laptop, he said: "the iPhone"iPhone"cannot be used because it requires a newer version of iTunes. Go to www.itunes.com to download the latest version of iTunes. "

    I already downloaded the latest version to my laptop. Any suggestions?

    The problem is that the version of your OS X may be too old to support the latest version of iTunes.

    Currently the latest version of iTunes is 12.3.3.  iTunes 12.3.X is necessary for the iOS interface 9.  But iTunes 12.3.X requires OS X 10.8.5 or later version.

  • Just bought an iMac, can not sync with my iPhone 6, constant vibrates once I plugged.

    bought an iMac, unfortunately can not sync with my iPhone 6 64 GB, constantly vibrates once I plugged. Pls advice.

    Plug the phone on the iMac and follow the instructions to sync your iPhone, iPad or iPod touch with iTunes via USB - Apple Support

  • Calendar not syncing with the imac to the iphone

    Since getting my new iphone 6 s, my calendar was not syncing with the iMac. It's with the iPad

    I tried both icloud and itunes with no luck

    Hi Torquoise,

    Thank you for your participation in the communities of Support from Apple.

    I see that your iPhone 6s is not synchronize calendars with your iMac using iCloud or iTunes. You synchronize your iPad using iCloud?

    I would suggest troubleshooting and first with iCloud because you want to synchronize between your Mac and multiple iOS devices.

    Get help using iCloud calendar.

    Best regards.

  • iCloud Contacts do not sync with the iPad

    I put the new coordinates in my Contacts on my MacBook.

    It syncs with my iCloud account.

    But it is not sync with my iPad.

    On my iPad app, "all the iCloud" is checked.

    On my iPad, in the Mail, Contacts, calendars section, the scanning of Contacts button is on.

    On my iPad in my iCloud parameters, the scanning of Contacts button is on.

    I guess there is something simple I'm missing but I checked everything I can imagine.

    Anyone with ideas?
    Thank you very much.

    If you are sure that everything is configured correctly and your contacts are in the iCloud group, you might try to uncheck syncing contact in iCloud settings, reboot your device and then by reactivating contact synchronization.

  • Phone's calendar will not sync with Google Calendar

    My timing of my phone's calendar with Google Calendar, but my phone's calendar will not sync with my Google Calendar. In the calendar settings (on my phone), on behalf of Google, the 'sync' and 'visible' icons are both black, but for the phone's calendar, the 'sync' icon is gray and the 'visible' icon is black. All data is enabled, and I'm able to sync my contacts, etc.. Just the phone's calendar will not sync with my Google Calendar.


  • BlackBerry 8530 Curve smartphones does not sync with my Microsoft Outlook 2010.

    Curve 8530 does not sync with my Microsoft Outlook 2010.

    Although I used a Palm Treo years, I am new to BB and Metro PCS. The OS is v5.0.0.973. (The Palm Treo has not correctly synchronized since this summer. that's why I got the Blackberry.) Some old Palm Treo data are saved as ASCII files).

    I connect my new BB 8530 via the USB port on my computer. From the Blackberry Desktop Manager 5.0.1 version, I click the icon synchronize. I select the boxes to synchronize the data of the Organizer, to update the time and date of the device and synchronize automatically. When I click on synchronize, the message box asks me if I want to configure synchronization settings now. Ok.

    He asks me to choose an application to synchronize. By clicking on the calendar, select Microsoft Outlook and 2 way to sync. Complete the installation schedule welcome.

    However, when I cliquerai to finish, I get the error message "Microsoft Outlook Connector error: no available message store.» The setting does not save.

    the same result for other applications.

    I shut down my computer and restarted. I deleted the Intellisync folder, as suggested in another post. still no synchronization.

    Sync Suggestions welcome!

    Davsco

    Hi and welcome to the Forums!

    Office of RIM 5.0.1 software tells you that you are using is not compatible with Outlook 2010. You need to upgrade to level 6.0 from the RIM of the Desktop for Outlook 2010 compatibility software. However, if you use Outlook 2010 64-bit, there currently is no version of RIM software which is compatible... only the 32-bit Outlook 2010 is currently compatible.

    Good luck!

  • Centro of contacts will not sync with palm desktop

    My centro palm contacts are not syncing with my palm desktop. I checked my user name and parameters, and they are all correct. Who is wrong?

    What error do you get?

    Can you post the log of hot sync?

    Message relates to: None

  • Creative cloud storage limit not sync with the management plan. 2 GB display on the application instead of 100 GB.

    Creative cloud storage limit not sync with the management plan. 2 GB display on the application instead of 100 GB.

    Hi Christian,

    Please check the help below document:

    Applications creative Cloud back in test mode after an update until 2015 for CC

    Kind regards

    Sheena

  • BlackBerry smartphone Outlook 2003 calendar will not sync with the storm

    A couple of weeks my Outlook calendar (2003) has just stopped syncing with my Blackberry Storm. I have Vista. I was on the phone with Telus and they tried to help me, but nothing has worked.  I downloaded the new software for my Blackberry; I rebooted the Desktop Manager (version 5); I recharged Outlook. I tried to synchronize just a few days.   I loaded the Desktop Manager on another computer and that no longer works.  Tasks and Contacts will be synchronized, but not the calendar.  It turns on, said "wait a minute", and then stops without doing anything.  No error message.  After reading the other rivers, I wonder if the AEFI is corrupt (but have no idea what it is or where it is).  I also noticed that I have more "default device" as one of the options 'Send' - just Facebook and my email address (but have no idea how to get this option).  I worked on it for hours without success.  Any help would be appreciated.

    I finally called the Blackberry technical support service and they solved my problem.  I had remove databases (because there was probably a corrupted entry) and remove the books of CICAL service on the device.  Thanks for the comments.

  • IMessage do not sync with iphone

    Once I upgraded to macOs Sierra iMessages used to sync with my iPhone. Notes of fine synchronization. I can send the Mac iMessages to other iPhones, but the Mac and the iPhone do not see each and other messages.

    Any help will be appreciated.

    Thanks in advance.

    You can try to reboot your iPhone

    the iPhone settings > Messages > iMessage turn off and back on.

    Try logging on icloud and insert it again.

Maybe you are looking for