AddIndex problem on replicas

Hello

My application uses two knots, a master of the bdb and the other is slave. My version of dbxml is linux/2.4.14. The flag is DB_THREAD | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN | DB_RECOVER | DB_CREATE | DB_PRIVATE.


I stop the application on the first node, then the second request become a master. What is expected.

Then I add an index (using dbxml without transaction) to the container on the first node. New documents are inserted into the container to the second node. Then I try to restart the application to the first node, but it fails. I got an error: BDB: PANIC: error fatal region detected; run recovery. The error can easily be duplicated. Even if I run db_recover - c - h. /, it still does not work.

How to add an index for containers in the workplace master/replica (slave)?

Thank you very much.

-hua

Published by: user10929419 on March 23, 2009 21:26

Hi Hua.
>

My version of bdb is db4.7.25 with all the patches. My application uses DB_PRIVATE.

You use dbxml shell to add the index? In my case, dbxml shell doen't always work.

Yes. I think that dbxml shell does not support environment replicates in this version. You can dig into src/utils/shell/dbxmlsh.cpp, modify the code for your special use, re - compile the dbxml shell and try again.

>

Then I wrote a program with c++ API addindex, also using the DB_INIT_REP flag. This works. But I got to stop master and replica first before I can add indexes by using the program.

I have try to add indexes in master and it works. Please make sure that:
1. ALL PART of your operations are protected by an EXPLICIT transaction.
2. protect your transactions by try & catch blocks and try to make sense again. Exit the caught exception can help you see this error message occurs.

If I stop at one of them (say, stop the master and keep slaves running), index can be added successfully to master, but then be removed from maser automatically after restart of the master. Is this reasonable?

In fact you can NOT add indexes on slave. And what happens is reasonable: the captain joined the network, failed in the election and need to sync with the new master (the previous slave). If the index you inserted is removed.

Thank you
Rucong

Tags: Database

Similar Questions

  • problem with the screen

    I bought a laptop HP pavilion g6 and the problem for some time now, that's my screen gets lines horizontal randomly and flicker and slowly get all white [Windows 7 Ultimate]

    Product number: b3t23EA #ABZ

    Is your laptop still under warranty?  (free standard warranty is one year)

    Connect an external monitor to your laptop and power.

    What is the problem that you see on the replica of the laptop to the external display screen?

    If it's not, and you see a normal Windows desktop on the external screen, the laptop LCD screen must then be replaced.

    If the problem is replicated on the external monitor, then video the laptop (integrated into CPU) is a failure. That is less likely than the possibility of old.

    HP this document is worth viewing for more information on the issue you described.

    Best regards

    ERICO

  • Move multiple emails using imap causing emails to disappear

    I have an IMAP email account configured in Thunderbird. When I drag and drop multiple messages to move them to another folder, only some of them actually move to this folder (none of them are local folder, they are all records of e-mail on the server). The rest is simply disappear. They are not in the Recycle Bin or the original file or new folder. I connect to my e-mail account directly on the server using webmail and emails have disappeared from the server as well with the exception of those who have moved successfully. I fixed the folder in Thunderbird, but nothing changes. I find it odd that the problem is replicated on the mail server, and not just in Thunderbird. Everyone knows about this problem before? I use Thunderbird 24.6.0. Any help would be appreciated.

    Paul

    QUIT and reopen your Thunderbird

    SYNC > get all THE Messages.

    Instead of drag, try again with ' click on the right move to ' Option.

    Check with this and update for us.

  • No sound during calls

    I searched for weeks for a solution to this, but I have not been able to find one.

    The only way for me to hear anything when a call is if I choose my monitor like device speaker on Skype and the Jack of 3.5 mm on then plug it into my computer's line-in input. It's the only way I can receive audio calls through my headphones. This started from nowhere and didn't change a thing for making it happen.

    Keep in mind that literally everywhere with Skype, I get audio very well. Audio, tests, new messages, calling sounds etc etc.

    This wouldn't be a problem if it was not the fact that the reason why I got this 3.5 mm cable was in the first place if I could play on my PS4 and talk on Skype at the same time while getting the game audio and audio from Skype through my headphones. Now I can not do. I can't get sound from Skype or only from the PS4.

    For the life of me I can't understand why this happened or how to fix it. I tried the update of Skype and even re - install.

    My helmet is a Razer Kraken 7.1 and I use Windows 8 (not 8.1) if info is helpful somehow.

    Lorangina wrote:

    My helmet is a Razer Kraken 7.1

    Hello and welcome to the Skype community.

    There have been several recent reports, this model helmet complaining about the lack of audio. Try to use another brand to see if the problem is replicated.

    TIME ZONE - US EAST. LOCATION - PHILADELPHIA, PA, USA.

    I recommend that you always run the latest version of Skype: Windows & Mac

    If my advice helped to solve your problem, please mark it as a solution to help others.
    Please note that I usually do not respond to unsolicited private Messages. Thank you.

  • DFSR Question on the DFSRPrivate folder

    Hello all and thanks in advance for any info you can provide.

    I use DFSR for the first time and I am facing a problem with replicated data and the data from the source. I want to clarify that I use DFSR only for migrating data to a new file server.

    My problem is that when I check the source and destination data, they are the same, according to what should, as I thought that some of the files, if they are open or in use, they cannot be replicated. Well, it seems that this is not true, because I checked it in a test environment. So, after I tested it, I was wondering why the source and destination data are not the same.

    A colleague told me it's because I left the DFSRPrivate folder that contains the intermediate file in its original location in the replicated folder. The advice that it me to change this, which is a huge workload for me now. My question is, my colleague has right? Will I change it?

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • The mouse freezes at startup properly off. Mouse only thaws and works correctly when I hold the power button to stop and turn back.

    I just got a new Inspiron 1545 computer 2 weeks ago and it works fine but I got a problem for the last two days where my mouse will freeze after that I stopped it using the stop option. When my computer starts you can move the mouse, but after a few seconds, it freezes, and you can't move the mouse but the keyboard works. I try to restart the computer with the option to reboot from the start menu and when it starts up to the top of the mouse freezes still. No matter how many times I try to stop or restart properly mouse unlock not. It only works if I stopped it by pressing the power and then switch on again. Any ideas as to what I could do to fix this?

    The sad truth is that the mouse freeze problem is back. I searched the forum for other solutions, but so far without success.

    I am currently using MS Wireless Mobile Mouse 3500 and just to make sure that the problem is with the mouse, I inverted this mouse on my other laptop which works also on Windows 7. Mouse freeze problem is replicated, which never happened before for my other laptop.
    Conclusion, until Microsoft is able to solve this problem, I opted for Logitech. I bought a Logitech M235 wireless mouse last night and keep your fingers crossed that the mouse freeze problem will disappear.
    Life is too short to be stressed more mouse freeze problem.
  • G62Notebook HP G62-341NR PC: G62-341NR

    The problem is that the video light keeps going on this unit. Actually I Can shine a flashlight and you can see what is on the screen, but it's as if there is a blackout on it. I don't know what the problem is or how to fix it. He does intermittently, it flashes and then they go out, sometimes he'll come back and it depends on how long he decides to stay black when it turns back on. I can plug in another monitor to it and then I can see what is on the computer. Sometimes its screen remains lit while I hooked it up to another monitor, but not always.

    There is no light "video.

    Books of the old school had a UPS and a backlight, but your modern notebook is equipped with an LED backlight.

    Connect an external display to see if the problem is replicated to the external device.

    If this is not the case, the display of the laptop is faulty.

    Is your laptop still under warranty? A replacement screen would be covered by the warranty.

    Check the status of your warranty here.

  • My mouse not working (hang) periodically

    Mouse freezes and won't spend. I have to restart my computer to get it working again. I sometimes get a message USB Port not recognized when it arrives , but not always.  Computer makes a noise like a USB port is connected when this happens.  Problem occurring each session on the PC and is VERY annoying. Help!

    The sad truth is that the mouse freeze problem is back. I searched the forum for other solutions, but so far without success.

    I am currently using MS Wireless Mobile Mouse 3500 and just to make sure that the problem is with the mouse, I inverted this mouse on my other laptop which works also on Windows 7. Mouse freeze problem is replicated, which never happened before for my other laptop.
    Conclusion, until Microsoft is able to solve this problem, I opted for Logitech. I bought a Logitech M235 wireless mouse last night and keep your fingers crossed that the mouse freeze problem will disappear.
    Life is too short to be stressed more mouse freeze problem.
  • Mouse works erratically

    I have a Microsoft wireless optical mouse and a home premium windows 7 64-bit OS and a dell inspiron desktop 580.   The mouse works perfectly on my laptop.  But does not work with all clicks on my desk.  I have to click 3 or 4 times to get something to remember.  I also had a Logitech mouse which also had the same behavior on the desktop.   I got the wireless in a hub adapter - then spent at one of the ports on the central computer, then to a second way mainframe - same behavior.  I got this pc 4 years and up to what a month ago never had a problem.

    Any thoughts on how I might be able to solve this problem?  Thank you.

    It is probably a problem with the configuration of the wireless mouse.  Get a wired mouse and see if the problem is replicated.  I bet that's not.

    Wireless mice/keyboards are often problematic.  Battery and everything that goes with it.  Also a radio transmission of very low-power mouse at the hub, they rely on.  That the wireless transmission is easily disrupted by other sources of signals.  Try to reposition the mouse and/or the hub.  Replace the batteries.  Re-install the software.

    It is highly unlikely that this is caused by your computer.

  • Unable to delete the dllhost.exe process that slows down my computer

    Original title: dllhost.exe

    Last week (about 20 October 2014) dllhost.exe began to multiply com surrogate sessions until it slows down or blocks my request. I read through the answers and no address my situation: laptop Asus, Win7 64 bit, with 6 GB of RAM only games that come with Windows MS or MS Word (2007). The only way I can continue to do work is to maintain a process of window open and close each process manually. The last "update" was wrong somehow?

    If this problem coincided with an update of windows, run windows Update, see history and tell us what KB update have been installed to date

    You can also try a clean boot, and then see the problem is replicated

    http://support.Microsoft.com/kb/929135

  • screen become white

    Hello, I have a laptop of HP G60 - 443CL and running windows 7. My screen become white at different positions that it is open. I can get the screen to stay when I opened it all the way. At the time it will start blinking and then turn white, and I have to continue to play with the position of the screen so he can stay on. IM wondering if I need a new screen or if it has something to do with the video

    It sounds like a bad connection. You must have your portable inspected. It is always in the period of guarantee?

    You can check that it is not the video solution by connecting an external monitor to see if the problem is replicated. I think that it is probably not the case.

  • Frozen system

    Every time I leave the computer and return the computer froze and the only way to free seems to be a re-boot. How do I solve this problem

    Look for errors in the event viewer.

    Start the PC in a clean boot state, and see if the problem is replicated http://support.microsoft.com/kb/929135

  • Windows 7 - scrolling with Autozoom?

    I had this problem before and it was gone, but he's back and it's starting to really annoy me. I can't do anything.

    I don't know if it's my mouse because I tried using different mouse, clean the usb ports, etc..
    At stake, in programs or even on the desktop, the screen will zoom in and out and doesn't let me scroll at all. He will then browse around in the game as if the mouse if movement by himself.
    Help, please!
    I am running
    Windows 7 Ultimate 64 bit
    AMD Radeon HD 6800
    AMD Athlon 7750 Dual Core processor
    4 GB OF RAM

    Without doubt, which did not help?

    Clean boot the PC and see if the problem is replicated

  • Developer SQL 4.1.1 connect returns "invalid connection string format.

    The "invalid connection string format" error is returned, while trying to connect, you use sql developer 4.1.1.19, using 1.8.0_51 JDK on Win 7 x 64 environment.

    The powers of the exact same connection, on the same OS Win 7 x 64, a product without any errors using sql developer 4.0.2.15, using the JDK 1.7.0_80

    Credentials were basic, by default, the name of the Service (not SID) and no special authentication.

    This problem is replicated when it is installed on a different platform to Win 7.

    Screen attached.Capture_sqld_4.1.1.jpg

    You say you have no non-alphabetic characters, but see this previous discussion (a hyphen was the problem) and see if any of Jeff's suggestions work for you: connection error after upgrade to 4.1

    I also read another post (non - developer SQL) where a symbol (@) in the password was a problem, but that may not apply to your case.

  • vMotion stuck at 65%


    We had 4 machines last week get stuck at 65% in systematic under the DRS vMotion.  The largest machines responded after a few hours in this State.  My guess is file delta or something mash finally to the high enough means to stifle the machine enough that it stops responding.  The only way I could fix is to restart the service vCenter and management on the host agents.  Then a reboot of the guest.

    I caught of the server logs that this last happened, but I could use some help on where to find issues.

    The hosts run 5.1.0 799733


    Just as a precaution, I patched them all to 5.1.0 1065491.


    I don't know if its going to help or not, but I would at least try to get some root causes of previous problems.

    Hello

    It seems that the GUEST COMPUTER is part of a replication of vSphere relationship. I'm not aware, that it is not taken in charge, but you could look to the replication monitor and check the status. The newspaper, it seems that you have problems with replicated disk and this is probably the first cause.

    Erich

Maybe you are looking for