Hangs with Master only running

Have been 4.7.25 with replication capabilities. Starting Master only running and no slaves hangs after a while.
The db put() hangs.
On attaching debugger the thread is waiting on mutex lock.
Tried to see who has locked the mutex and another thread is locked the mutes and the trace is
#0 0x00007ff7415c0f4b in read () from /lib/libpthread.so.0
#1 0x00007ff6bd0db7dc in __repmgr_select_loop (env=0x7ff6b84611f0) at ../dist/../repmgr/repmgr_posix.c:666
#2 0x00007ff6bd0dbea5 in __repmgr_select_thread (args=0x7ff6b84611f0) at ../dist/../repmgr/repmgr_sel.c:56
#3 0x00007ff7415ba3ea in start_thread () from /lib/libpthread.so.0
#4 0x00007ff741123cbd in clone () from /lib/libc.so.6
#5 0x0000000000000000 in ?? ()
(gdb) up
#1 0x00007ff6bd0db7dc in __repmgr_select_loop (env=0x7ff6b84611f0) at ../dist/../repmgr/repmgr_posix.c:666
666                    if (read(db_rep->read_pipe, buf, sizeof(buf)) <= 0) {
Looks like when the queue is full we try to wake up this thread from __repmgr_wake_main_thread().
This function is sending one byte only in pipe. and the read is trying to read 10 bytes as buf is defined as buf[0].
Is this the cause of the his hang up ??
Can somebody at Oracle check this out.
Thanks

Thanks for taking time to look into this.
We are running on linux Redhat and Ubuntu servers.
What we noticed after adding fprintf statements to function that is writing to pipe and the function reading from pipe, we noticed that in the beginning that the write and read works properly.
But after while the select() call triggers a read ready on the reap_pipe handle (spurious one). This leads to read hanging and the log also indicates that no write has happened earlier for the read to succeed.
I patched it up in a different way and this SEEMS to solve this issue. I would like you to verify if this has any ramifications.
I am using the db-4.7.25.NC .tar.gz and these line numbers below correspond to this download image from your site.
1. File : repmgr/repmgr_posix.c : original line number 327
Set the read pipe to non blocking mode
db_rep->read_pipe = file_desc[0];
db_rep->write_pipe = file_desc[1];
/* PATCH: to not block on read upon spurious select() */
__repmgr_set_nonblocking(db_rep->read_pipe);
2. Same File : repmgr/repmgr_posix.c : original line number 767
Since we made it non-blocking we need handle this condition appropriately.
if (FD_ISSET((u_int)db_rep->read_pipe, &reads)) {
* PATCH : this handle has been made non-blocking now
* to avoid getting blocked on read due to spurious select()
* wake-ups; this was causing the mutex to be locked
* and no db operations was possible after that
if (read(db_rep->read_pipe, buf, sizeof(buf)) <= 0) {
switch (ret = errno) {
case EINTR:
case EWOULDBLOCK:
if (db_rep->finished) {
ret = 0;
goto out;
} else {
break; /* simply retry later*/
default:
ret = errno;
goto out;
} else if (db_rep->finished) {
ret = 0;
goto out;
The above two changes made this problem go away and we do not see the master hanging any more.
Could you please verify if this is logical and does not cause any issue with the way the system is supposed to work.
Thanks
Raj

Similar Messages

  • Movie with flv only runs locally

    Greetings-
    I built a Flash movie using the FLVPlayback component and
    attached a .flv movie in its source. As far as I know the movie
    file is not embedded in the timeline, it is attached as a separate
    file for reference to the .swf.
    I published the movie and can play the resulting movie, as
    expected, locally. However, when I FTP the files up to my server
    the Flash player object appears to load (on IE I get the "Click
    here to activate this control" message) but nothing happens. I mean
    nothing. No movie, no error messages, no "please wait, loading..."
    nothing. I checked the local file security on the server in
    question and everything appears in order, even the MIME types are
    set correctly (as a test I put another .swf file in the same
    directory on the server, called it directly and it loaded fine; my
    movie in question simply does not play). This makes me wonder what
    I'm doing wrong in the publishing part of my Flash process. Why
    would it play OK locally but not on my server? And why would
    another .swf file play from the same directory and not my movie
    file? Again, I can not find any errors to speak of, I viewed the
    source, tried hardcoding the paths to the movie and the swf for
    testing and still nothing. Did I miss a chapter in publishing?
    Thanks in advance,
    Rich

    OK, this is getting crazy.... so I started over, again. I
    imported the video into my Flash movie, Published it and it ran as
    expected locally. Since my website is using ModelGlue framework for
    ColdFusion, I decided to try and eliminate as much doubt as
    possible so I put my files (html, swf (Flash movie and skin) and
    F4V) onto the root of my site:
    http://www.cfsnap.com/cervicalTractionDevices.html
    (notice I'm not even using a .CFM page, straight up html)
    Now the movie seems to appear but the status bar has been
    running for about 10 mins, as if it can't find the actual F4V movie
    file.
    So I tried to access the swf file directly and get the same
    result, the flash movie appears but the movie (F4V) does not.
    So as to rule out my own insanity I uploaded and tried:
    http://www.cfsnap.com/chart-and-graph.swf
    which works. Except that chart-and-graph.swf was built in
    CS3, my movie files were built in CS4.
    For grins I'm upgrading my Flash player right now. The
    installer is forcing me to close my browser so I'll post again as
    to the success or failure of this action.
    Thanks,
    Rich

  • I just installed Firefox on a new HP 600-1120 with Windows 7 and it is only running in "safe" mode. Why? How do I get it to run in "regular" mode? How does "safe" mode differ?

    I just installed Firefox on a new HP 600-1120 with Windows 7 and it is only running in "safe" mode. Why? How do I get it to run in "regular" mode? How does "safe" mode differ?

    > So now my question is, how can i fix this problem?
    Use the Toshiba recovery disk or the Toshiba HDD recovery option.
    If you dont have the Toshiba Recovery disk try the HDD recovery:
    http://aps2.toshiba-tro.de/kb0/HTD1303440001R01.htm
    This works only if the recovery image files from Toshiba are still on the HDD:
    If you installed the system using another disk as Toshiba recovery disk, this recovery option will not work.

  • Can i run microsoft on my macbook pro I'm wanting to buy a quoting software product called solo assist but it only runs on microsoft. all our office and business is set up with apple.

    Hi i am wanting to purchace some quoting software for my business the program i am looking at is called SoloAssist and only runs on microsoft software, We changed over all our office and foremen to apple about a year ago and love the product. The main office computer is a macbook pro and has no CD drive. I have been told that i may be able to use a parrarlell program to run microsoft.
    i am a builder by trade and not really up to date with this sort of detail could anyone please shed some light on this for me or let me know what i will need or if its even possible.
    Thanks

    Yes you can install Miscosoft Windows on a mac.  Read this: http://support.apple.com/kb/ht1461.  Parallels is also an option: http://www.parallels.com/products/desktop/

  • Running with Smartband only

    Hi everyone,
    I know others have posted about this, but I can't find an answer to my specific problem...
    I went running today, with my Smartband only, leaving my phone at home. When I got back LifeLog showed my run, down to the closest minute, but then when I went back on an hour or so later the run had disappeared, it's still showing my steps but the running value is down to 0. Does anyone know why this may happen?
    Thank you in advance!

    I'm still struggling with this, tried resetting it etc and it's still the same. Did a 20 minute jog today, at 12pm I took a screenshot and the running had tracked, by 12.23pm it has disappeared. I'd not disconnected my Smartband or anything. My partner still has the same problem with his smartband and phone. I've noticed that my Smartband will only connect with Bluetooth, when I turn it off and try to connect with NFC only my phone turns Bluetooth on automatically. Could that be affecting it? Thank you all for your help once more.

  • I am having issues with connecting to the store...the page just hangs and when I run Diagnostics it states that a secure connection could not be established.

    I am having issues with connecting to the store...the page just hangs and when I run Diagnostics it states that a secure connection could not be established.
    I have contacted apple via email and tried all the steps they have recommended and it is still not working. 
    I have tried disabling my McAfee and that does not work either. 
    Anyone that the phone number to apple express so I don't have to keep waiting for them to email within 48 hours? 
    Thanks. 

    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • My youtube videos are only running for a few seconds, then stop.  Is this an issue with my macbook?

    My youtube videos are only running for a few seconds, then stop.  Is this an issue with my macbook?

    Go step by step and test.
    1. System Preferences > Other/ Flash Player > Advanced >  Delete  All
         Press the "Delete All" button
         Install Adobe Flash Player.
        http://get.adobe.com/flashplayer/
        http://get.adobe.com/flashplayer/?PID=7105813 
        Follow the prompts.
        Quit Safari.
        Restart computer. Relaunch Safari.
    2.  Enable Plug-ins
        Safari > Preferences > Security
        Internet Plug-ins >  "Allow  plug-ins"
        Enable it.
        Press " Manage Website Settings" button for more options.
    3. Check  whether you are currently  in  YouTube HTML 5 trial.
         http://www.youtube.com/html5
        At the bottom  left of the page  uncheck the box beside
       "You are currently in the HTML5 trial".
    4. Reset Safari.
        Click Safari in the menu bar.
        From the drop down select "Reset Safari".
        Click "Reset".
    5. Turn off Extensions, if any.
        Safari > Preferences > Extensions
         Now try YouTube.
    Best.

  • Hi, I tried to create a slideshow that contain more than 500 photos. Now, trying to open / execute / select the slideshow, iPhoto hangs with the spinning coloured wheel and I have only to force the deletion from System Preference. Any suggestion?

    Hi, I tried to create a slideshow that contain more than 500 photos. Now, trying to open / execute / select the slideshow, iPhoto hangs with the spinning coloured wheel and I have only to force the deletion from System Preference. I already tried to rebuild the iPhoto Library (all the possible options) and tried to update teh version from 9.4.3 to 9.5 but the problem still persists: is there a way to delete this slideshow without selecting it ? How can I solve the problem, please?
    Kind Regards

    Can you restore your iPhoto Library from a backup version, that was created before you added the slideshow?
    If not, have you tried to rebuild the slideshow with iPhoto Library Manager?
    As described by Terence Devlin here:  Re: iphoto library was created with an unrelased version of iphoto please quit and ugrade library by opening it in iphoto 2 or iphoto 4

  • I want to switch between 2 open apps using only 1 step, i.e. touch once, tap once, push once, swipe once, etc. Can I do this with a 4s running 6.1.3?

    I want to switch between 2 open apps using only 1 step, i.e. touch once, tap once, push once, swipe once, etc. Can I do this with a 4s running 6.1.3?

    No.  2 steps if the app is already open, double tap the home button and then tap on the app.

  • Create Client copy only with Master data

    hi friends,
    we are going for SAP Re-Implementation.
    we want client copy only with master data without having transactional data
    Is it possible to copy the master data from production to production.
    can we transfer the data using ALE/I DOCS...?
    Is there is any standard BAPI  to transfer data across client....?
    if there is any solution please give me guidance.
    i have searched in SDN and SAP technical  but i can't find the proper solution.
    Thanks in advance.
    regards,
    karunakar

    Hi Karunakar,
    1) Make a client copy ready 2) Use Idoc and moved the master data. I am not sure how much data it is.We did the same before.
    Check these links form Peter.
    [TDMS|http://204.154.71.138/images/whiterhino/fp/tstsym5/testdatamigrationserver.pdf]
    [TDMS Wiki|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b43e2b4d-0b01-0010-c191-cba32880cb95?QuickLink=index&overridelayout=true]
    Regards,
    Madhu.

  • Only runs with "optimized" settings

    Hi All,
       I have a 1GB kit of dual channel Mushkin Blue PC3200 installed on my K7N2 Delta2-LSR. Everything runs great except for when I attempt to change the memory settings to something other than "Optimized". The computer will then lock up while XP Home Edition is loading. Memtest shows no problems with the memory. I have a Athlon XP 3200+ and an Antec SL400 power supply. Right now the memory is set up in a standard configuration and NOT in dual channel. CPU voltage is set to 1.65v and the memory is set to 2.6v. Other than this small snafu the system runs great. Any ideas on how to troubleshoot this will be greatly appreciated. Thanks!
                                                                                                                                     John

    Wonka provided a link in a recent thread but it seems to have disappeared. The orinal thread is here:- https://forum-en.msi.com/index.php?topic=73527.0 Make sure that your hardware can handle the extra overclock if you want to use the B50 bios as it only runs stable with D.O.T. enabled.The "private" setting boosts FSB by 1% when the system is running under heavy load and 3% on "sergeant" setting etc.

  • My external 27" AOC display only runs with 1080p

    My external 27" AOC display only runs with 1080p, even though my 27" iMac is capable of 2560x1440 via the attached mini-DisplayPort to DisplayPort cable. How can I get 2560x1440?
    When I run recovery mode, then I get the full 2560x1440 pixels. But when I boot back to 10.9.2, then I can only choose a maximum of 1080p.

    After some hours I found a solution...
    But let me vent a little bit first: My MacBook Air, which I have not yet upgraded to Mavericks, is able to drive the AOC display through DisplayPort at full resolution without a problem.
    Even an older lenovo Notebook with Windows 7 immediatelly used the intended resolution when hooking up the 27" screen. Windows 7 outplaying Mavericks. Oh boy...
    So it seems, that Mavericks introduced some "improvement" that limitd "unknown" displays to 1080p...
    By the way: Clearing PRAM didn't resolve my issue. Neither did holding down the Option key when klicking in the "Scaled" button in the screen resolution area of the system preferences for my screen.
    Anyway: I found out that I can use the plist file for a DELL 27" screen, which google found for me, copy this to /System/Library/Displays/Overrides and then rename the folder and file to match the ID I got back from ioreg.
    Obviously one has to be careful when mixing hardware data in this way. But since a modern screen will simply refuse to be driven with a signal that is out of spec, and since there are not too many different 27" pannels with 2560x1440 out there these days, this felt like a pretty safe thing to do... Your mileage may vary though!
    Unfortunately I don't have a plist editor installed. Thus I can only look at the XML contained in the plist file. With the plist editor from Mac (-> dev tools) it should be possible to edit available resolutions directly (in hex).

  • I have a on line office manager that will only run with windows 7 or vista, how can I run it on my iMac?

    I have an online office manager that will only run with windwos 7 or Vista, how can I run it on iMac?

    If they don't have a Mac version and you must have it, you'll have to install Windows in Boot Camp or similar app.

  • Run plan with SCO only

    Hi,
    How do we run an ASCP plan with SCO only (No MBP, No HLS)?
    I think a profile option has to be created for that.
    I want to know the details for this profile option so that I can create and test the plan.
    Is there anything else which needs to be done for SCO-only plan?
    Regards

    Siri requires internet access, which can be with an available wi-fi network.

  • JDeveloper 11.1.2.1.0  Hangs in Debug Mode Running in Windows 7 OS

    Hi All,
    i am working with JDeveloper 11.1.2.1.0 version,intel core i3 -2120 CPU,@3.30GHZ,4GB RAM, Windows 7 32 bit OS
    i am facing Jdeveloper Hangingness when loading BTF inside a popup and making a call to java code on any action if any debug point is avilable inside java file,JDeveloper is getting hanged and the only way to come out of this issue is by killing the process and restarting the JDeveloper.
    certain cases when integrated server is started with debug mode(intial startup ) also Jdeveloper is getting hanged and there is no way to get out of this except restart.
    if i see memory parameters from Java VisualVM console
    Heap is avilable
    and the other process are running with out any issue.
    is this problem is with configuration settigns ?
    what steps/settings/patches i need to follow to get out of this problem ?

    is this happening after removing the system folder also?

Maybe you are looking for

  • Problem with CONVERT_OTF, special character '-' printing not properly

    Hi experts, when printing PO item text; in Print Preview, text displays correctly. But in program by using 'CONVERT_OTF' FM output is converting into PDF and this PDF is send it to the PO creator through mail,   In the PDF present in the mail, the sp

  • How can i use two list screens in  Classical report.

    Dear Sir, In My Report in First screen i am taking the GR details and Display In it_final By Check Box Wise. Based On The Check Box selection in First screen In Second Screen i want The Challan Details Based On Some In Puts In First Field. so how can

  • Delivary Doc

    Dear All, tell me delivary documents T Code Sriarm

  • I tried to download version 8.0 - how do I know what version I have?

    When I tried to download version 8.0, like others have found it does not seem to "take". Firefox, I suggest you get on this with some assistance while we are still with you.

  • Pocket Internet Explorer - support

    hi all, I believe PIE doesn't support Java Scripts and Scriptlets. Is that so? Is there any new version of PIE which would support this? i want to do some client side validation. i'm currently using the PIE in the PDA Dell AXIM X50 with Win Mobile 5.