Synchronizing put and select

In Berkeley DB, Java Ed. When using non-transactionl context and deferred writes, I get select method failures. My application has one writer(put) and one reader(select) thread.
I thought as soon as writer succesffuly returns, the record is inserted but possibly not on disk. It turns out, the record is nowhere yet. Select method of another thread who comes a bit later does not see it. I was able to fix it by synchronizing put and get methods. Did anybody run into this problem, is it true?
thanks,
eugene

Hi Eugene,
When you insert a record with JE with a non-transactional put() method (including with Deferred Write), it is available for querying in other threads when the put() method returns. There are no known bugs in this area.
Since you are inserting and querying in two different threads, how do you know that the query occurs after the insert? Of course, if two threads must execute operations in a particular sequence, you must synchronize them correctly yourself.
--mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • In history displays. put checkmarks and select all.

    In history displays. put checkmarks and select all.

    Can you clarify what you mean?
    Do you have a problem with the history?
    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    *Use a compressed image type like PNG or JPG to save the screenshot
    *Make sure that you do not exceed the maximum size of 1 MB

  • I use macbook and lion os. I want to sync gmail contact with address book. For this i goto preference in address book and select "sync with google". I put my gmail details. However, the sync does not happen. Please help.

    i use macbook and lion os 10.7.2.
    I want to sync gmail contact with address book.
    For this i goto preference in address book and select "sync with google".
    I put my gmail details.
    However, the sync does not happen.
    Please help.

    You should have signed in with that address in the first place, but there is a workaround: go to System preferences>Mail, Contacts@ Calendars and add your @me.com address as an account there.

  • Using iOS 7 on my iPad, is there a way to put an event into the calendar without having to scroll down to calendar and select "home" every time?  My friend's iPad retains that setting but mine doesn't .

    Using ios7 on my iPad, is there any way to enter a calendar event without having to scroll down to calendar and selecting "home" every time?  My friend's retains that setting, bu mine won't .

    Settings>Mail, Contacts & Calendar
    Scroll till you see calendar and set default calendar to the one you want.

  • Problem with focus and selecting text in jtextfield

    I have problem with jtexfield. I know that solution will be very simple but I can't figure it out.
    This is simplified version of situation:
    I have a jframe, jtextfield and jbutton. User can put numbers (0-10000) separated with commas to textfield and save those numbers by pressing jbutton.
    When jbutton is pressed I have a validator which checks that jtextfield contains only numbers and commas. If validator sees that there are invalid characters, a messagebox is launched which tells to user whats wrong.
    Now comes the tricky part.
    When user presses ok from messagebox, jtextfield should select the character which validator said was invalid so that user can replace it by pressing a number or comma.
    I have the invalid character, but how can you get the focus to jtextfield and select only the character which was invalid?
    I tried requestFocus(), but it selected whole text in jtextfield and after that command I couldn't set selected text. I tried with commands setSelectionStart(int), setSelectionEnd(int) and select(int,int).
    Then I tried to use Caret and select text with that. It selected the character I wanted, but the focus wasn't really there because it didn't have keyFocus (or something like that).
    Is there a simple way of doing this?

    textField.requestFocusInWindow();
    textField.select(...);The above should work, although read the API on the select(...) method for the newer recommended approach on how to do selection.
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)",
    see http://homepage1.nifty.com/algafield/sscce.html,
    that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    Don't forget to use the "Code Formatting Tags",
    see http://forum.java.sun.com/help.jspa?sec=formatting,
    so the posted code retains its original formatting.

  • I'm having problems (1)selecting onscreen text, (2) having problems resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    I'm having problems (1) selecting onscreen text, (2) resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • IPod nano 3rd gen. Apple logo remains on screen and iTunes doesn't recognise it's plugged in, I can't even turn it off. I've tried to get to disc menu but when I hold the 'menu and select button' it reboots it doesn't recognise the select and play button

    iPod nano 3rd gen. Apple logo remains on screen and iTunes doesn't recognise it's plugged in, I can't even turn it off. I've tried to get to disc menu but when I hold the 'menu and select button' it reboots and then doesn't recognise the select and play button to show the tick. I'm helpless.

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer                 
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • My iphone 4 will not turn on but when connected to the pc in itunes it says my device is in recovery mode and when i do SHIFT restore and select my ipsw it extracts then this 3914 error message appears someone help!!!

    my iphone 4 will not turn on but when connected to the pc in itunes it says my device is in recovery mode and when i do SHIFT restore and select my ipsw it extracts then this 3914 error message appears. i normal restore then it this error message appears 1601. and my iphone is in RECOVERY mode. and holding the power button and the home button doesnt do anything my latops just makes a ding sound after 6seconds. My iphone screen is just blank and will not come on and i really need help

    Has the iPod been wetted?
    Try DFU mode and then restore
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    Try on another computer.
    Also see:
    https://discussions.apple.com/message/12690674#12690674
    https://discussions.apple.com/message/13032101#13032101
    Last, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • Abap objects and selection screen

    Hello everybody,
    I am interested in your ways of implementing selection-screens in the style of ABAP Objects.
    In earlier times (when I used to implement ABAP objects in a procedural way) I just put the selection-screen commands in an include or a form routine of my ABAP report. So it was possible to run the report in background.
    Now I read something about selection-screens/dynpros and "separation of concerns" in the book "ABAP Objects" written by Keller. He advises using function groups to encapsulate presentation from logical matters. (Selection-screen commands are in an automatically generated include now). I implemented this way. (ABAP report with a local class, which has a main method, where function module of the function group is called). It works, but i see no chance to run my report in background now.. but I need to run the report in background.
    Does anybody know a solution without deleting function group?
    What do you think is the best way of using selection-screen-commands and ABAP Objects, especially regarding running in background?
    Thx for your advise in advance.
    Kind regards,
    Anne

    Hi Naimesh,
    thx for explanation. I am not sure, if I understood everything in the right way.
    Where do you write the code for building the selection-screen? (PARAMETERS, SELECT-OPTIONS etc.)
    If you write these commands in a class method, you will get a syntax error ( because it's forbidden per definition of ABAP objects). So, am I right assuming that you put the coding just at the beginning of the ABAP report ? And after START-OF-SELECTION-event you start the processing... ?
    Furthermore, I don't really understand why you create an separate class for ALV. I found your "SAP abap help"-blog, where you explained the concept of MVC ((By the way, well done!), but you didn't mention an "ALV class" there..
    Mh.. another question - have you ever combined MVC with object services?
    At the moment I'm working on a software project where I use object services. I created 2 persistent classes via SE24 and one local class in my ABAP Report.
    I don't really see possibility to implement MVC in this project without change very much of coding and class structure...
    In my opinion the M (data&business logic) are my existing global classes and my local class is kind of Controller class?!
    Thx in advance,
    Anne

  • Not able to put data selection condition in data selection tab of infopakag

    I was loading data from data source as data mart ( export data sauce from ODS) to other ODS.
    when I tried to do delta Initialization with data transfer , I am not able to put data selection condition in data selection tab of infopakage.
    when I choose Full Update in Update tab . It enables data selection fields in data selection tab. and I could put the condition.
    I have checked in transfer structure as well , the fields are marked for selection.
    Please advice .
    Please tell me what could be the reason for this problem

    Ashutosh,
    As you are doing delta upload the data selection tab will be disabled, if you want to do the selective load then you need to do init update with your selection.
    When you do the full updtae then definitely the data selection tab will be enabled for all the objects.
    Hope this helps...
    *******Assign Points if it helps********
    Thanks,
    Gattu

  • Synchronizing audio and video on a transparent layer - can it be done?

    Let me start by saying I opened After Effects CS3 for the first time last weekIm a nubbie. To date I have been working in Premiere Pro CS3, Photoshop etc trying to tweak things and make-do with effects and titles I know After Effects was made for.
    Can I apply an After Effects lighting/flash effect to transparent clip?
    I have a long title in PPro that comes in as we hear the Narrator speaking. The last words are all of this for Reading! On the word reading I want to add a lens flare synchronized with and audio Ting-a-Ling bell noise.
    In P-Pro I have been able to use Knoll Light Factory for the lens flare, and I found the right .wav file. Synchronizing them has been the problem its ok but not great. So here is where I turned to After Effects. Using Convert Audio to Key Frames I was able to generate a null object (?) and this I link (with the whip tool) to the Brightness and Scale attributes in Knolls Light Factory LE effect.
    Great so far but Id like to apply the over all effect to a transparent clip so I can lay it right in on top of my P Pro time line. This title sequence is complex; I do not want to re-create it from scratch in After Effects. Is there a way to add a lighting effect to some sort of transparent video?

    Hi Query 101! First of all welcome to the Apple community forums!
    No, you don't need to configure it! I am guessing you have brought the apple wireless keyboard?
    All you need to do is connect the keyboard to your iPad via bluetooth!
    Go to Settings app
    Select General
    Make sure Bluetooth is turned on
    Make sure your keyboard is in discovery mode (press the silver button on the right side of the keyboard - the green light will start flashing)
    In the Bluetooth section on the iPad, you should see the wireless keyboard
    Select the found keyboard to pair it with the iPad
    You'll be asked to type a pairing code on the keyboard - if it's entered successfully, your keyboard will be paired with the iPad (or any iOS device with Bluetooth)
    Note that when you are using the Bluetooth keyboard, the normal iPad keyboard does not appear - turn off Bluetooth or the external keyboard (press and hold the button on the right side of the Apple Wireless Keyboard), or travel outside the 10-15m range of Bluetooth to go back to using the regular iPad keyboard
    Hope this helps you and you can get using your new wireless keyboard on your iPad!
    Thanks
    Max Burbidge

  • Put a Select List on Page 0

    Is it possible to put a select list on page 0 so there's just one select list but it displays on every page?
    What I'm trying to achieve is this. Select "C" from the select list (A,B,C,D) on page 1. Then switch to page 2 and the select list is still set to"C" and the headers, charts and charts series using the select variable are "C". Select "D" from the select list and switch back to page 1 with the select list and all still set to "D" from page 2.
    What kind of region (on Page 0) would one use for the select list?
    Thanks, Howard

    Fateh - Thank you so much for answering.
    1) So that I can try what you said, what kind of region type (on Page 0) would I use to create the common select list? I've tried, using a couple different region types, but they don't support creating select lists--at least, "Select List" is not listed in the wizard when I go to create one. Once I get the select list created, I will try what you say.
    2) But, I'm confused by this part:
    1- Edit the branch of your page, in Action region you put:Set these items: P0_X
    With these values: &P_X.
    >
    Did you mean &P0_X.? Because I'm not sure what &P_X. is.
    Though, "&P0_X." would be strange; would it not? Why would one need to set P0_X to itself? Doesn't it already equal itself?
    3) You know, I've tried using a default value with separate select lists on each page and trying to pass a global variable between the pages. And sometimes I've used a default value to try to get this to work.
    2- just put &P0_X. in the default value of the item P0_X .But it seems to me, a default is only going to work when "P0_X" is null, so it's only going to work maybe the very first time.
    Thank you for your help! -- Howard (a newbie)

  • How can I put a selected picture in multiple places in slideshow

    As the heading states: how can I put a selected picture in multiple places in slideshow
    There is a slideshow with 50 pics. I want to use one of these pics in several places, in the front, middle, middle end and then the end.
    How can I place this pic in multiple locations in the slideshow
    redundently stated I know

    Dah!!!
    Thanks so much,
    I was unaware of that feature, it works.

  • How to put and burn two diaporama WITH DIFFÉRENT SOUND TRACK on one D,V,D

    I HAD A BIG PROBLEM! I HAVE MADE TWO chapters DIAPORAMA OF a band realated the history of the band. and i want to put them one one DVD .tHEY HAVE DIFÉRENT SOUND TRACK.
    My problem, is when i burn the Dvd only one show ? I use 1 video line and sound track and the second chapter on the video 2 and soundtrack 2 .It d'int make a différence .What did i do WRONG ?

    towline
    What version of Premiere Elements are you using and on what computer operating system is it running?
    Lots of possibilities.
    What do you mean "My problem, is when I burn the DVD only One Show"? Are you saying that instead of having two separate slideshows in DVD-VIDEO, you
    have the two running together as one slideshow?
    What menu markers (Chapter markers) are using - scene markers? Are there stop markers?
    How are your menu menu and scene menu set up?
    One scenario
    Timeline content set up....
    Slideshow 1 with a scene marker at its beginning and a stop marker at its end
    a few seconds gap
    Slideshow 2 with a scene marker at its beginning and NO STOP MARKER AT ITS END.
    (I put that in capital letters because putting a stop marker at the end of the last item of the Timeline 99.99999% of the time creates project failure.)
    With this setup, the viewer is greeted by the main menu and selects from Play Movie or Scene Selection.
    a. If Scene Selection is selected, the viewer is taken to the Scene Selection page where he/she picks a slideshow to watch.
    Important: If the viewer pick Slideshow 1, Slideshow 1 is played and then it reverts back to the main menu.
    b. In this type of scenario, the Play All Button on the main menu becomes meaningless, since selecting it will play only up to the
    stop marker ( end of Slideshow 1) and then revert back to the main menu.
    Alternately, you could create a main menu with the Slideshow 1 or Slideshow 1 choice (use main menu markers) and do away with the
    scene menu. That sounds abstract as written but I can give you how to on that and give you examples.
    First let us see if anything that I have written above has anything to do with what you really asked.
    Thanks. Clarification always available.
    ATR

  • Hi!  I am trying to print pictures from iPhoto.  I follow the directions and select a photo and click file-print-but it doesn't give me any size/printing options.  Instead I get a message that says "no themes available".  Do I need to install themes?

    Hi-I am trying to print pictures from iphoto.  I selected a picture and tried file-print.  But instead of giving me size/layout options, it gave me a message, "no available themes".  Not sure what to do next--something I need to install?

    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store or have a Recent Mac you can find it in your Purchases List.

Maybe you are looking for