[RE: makeTransactional] (second attempt)

Craig et al.,
We either have confusion on my part, lack of clarity in the spec, or a
bug in Kudo. Can you perform some triage?
Thanks,
David
"White, Abe" wrote:
David --
This is an excellent question. I believe that Kodo's behavior is
correct; i.e. that calling makeTransactional() on a persistent
non-transactional instance during an optimistic transaction does not
guarantee that the state of the instance is compared to that of the
data store. However, my evidence for this is a little shaky:
Section 5.8 of the JDO specification covers optimistic transactions.
Check out p. 40 and 41 where the makeTransactional() method is
discussed. Only for persistent dirty instances does the spec say the
state of the instance is verified against the data store during
commit. The spec also mentions that users should call refresh() if
they want to make sure the state of the instance in memory is correct
(though refresh() is an expensive operation).
From the above evidence I believe that p-clean instances are never
compared to the datastore for consistency. But as I noted, this isn't
a whole lot to go on, so I could be wrong. I encourage you to contact
the JDO spec team about the issue... or if you don't we on the Kodo
team will get around to it eventually.
Let us know if you get any clarification!
-- Abe White
-----Original Message-----
From: David Ezzio
To: Tech Trader JDO List
Sent: 8/12/01 4:59 PM
Subject: makeTransactional
Concerning the makeTransactional() method, the spec (V 0.95 p 79)
says,
"These methods are also used to mark a nontransactional persistent
instance as being part of the read-consistency set of the
transaction."
For transactions with optimistic on and nontransactional read on, I
took
this statement to imply that a call to makeTransactional would force a
comparison of the age of the object's concurrency field (its
optimistic
lock) to the value in the datastore at the time of transaction commit.
I believed that this would occur even if there were nothing dirty to
write in the object or, even, in the transaction. If there were an
age
descrepancy with any of the transactional objects, I expected that an
exception would be raised rather than having the transaction commit.
However, I am not seeing the behavior that I expected in Kudo. So my
question is: am I confused or is there a bug?
David

Hi David,
The intent of makeTransactional is to require the implementation to
check the state of persistent nontransactional instances at commit.
If this is done without a refresh, then the state of the instance at the
moment makeTransactional is called is assumed to be the state to be
checked. If a subsequent refresh is called, then the refreshed state is
to be checked at commit.
David Ezzio wrote:
>
Craig et al.,
We either have confusion on my part, lack of clarity in the spec, or a
bug in Kudo. Can you perform some triage?
Thanks,
David
"White, Abe" wrote:
David --
This is an excellent question. I believe that Kodo's behavior is
correct; i.e. that calling makeTransactional() on a persistent
non-transactional instance during an optimistic transaction does not
guarantee that the state of the instance is compared to that of the
data store. However, my evidence for this is a little shaky:
Section 5.8 of the JDO specification covers optimistic transactions.
Check out p. 40 and 41 where the makeTransactional() method is
discussed. Only for persistent dirty instances does the spec say the
state of the instance is verified against the data store during
commit. The spec also mentions that users should call refresh() if
they want to make sure the state of the instance in memory is correct
(though refresh() is an expensive operation).
This paragraph discusses the state transition, but assumes that the
checking behavior as discussed in 12.5.7 takes place:
These methods are also used to mark a nontransactional persistent
instance as being part of the read-consistency set of the transaction.
In this case, the call must be made in the context of an active
transaction, or a JDOUserException is thrown.
And again in 13.5:
Unmodified instances that have been made transactional will be verified
against the current contents of the data store, to ensure that the state
in the data store is the same as the "before image" of the instance in
the transaction. If any instance is found to have changed, a
JDOUserException is thrown which contains an array of JDOUserException,
one for each instance that failed the verification. The optimistic
transaction is failed. The definition of "changed instance" is a JDO
implementation choice, but it is required that a field that has been
changed to different values in different transactions results in one of
the transactions failing.
Details of the state transitions of persistent instances in optimistic
transactions may be found in section 5.8.
If this is not clear enough, kindly suggest the specific parts of the
specification that you think should be updated.
Regards,
Craig
>>
From the above evidence I believe that p-clean instances are never
compared to the datastore for consistency. But as I noted, this isn't
a whole lot to go on, so I could be wrong. I encourage you to contact
the JDO spec team about the issue... or if you don't we on the Kodo
team will get around to it eventually.
Let us know if you get any clarification!
-- Abe White
-----Original Message-----
From: David Ezzio
To: Tech Trader JDO List
Sent: 8/12/01 4:59 PM
Subject: makeTransactional
Concerning the makeTransactional() method, the spec (V 0.95 p 79)
says,
"These methods are also used to mark a nontransactional persistent
instance as being part of the read-consistency set of the
transaction."
For transactions with optimistic on and nontransactional read on, I
took
this statement to imply that a call to makeTransactional would force a
comparison of the age of the object's concurrency field (its
optimistic
lock) to the value in the datastore at the time of transaction commit.
I believed that this would occur even if there were nothing dirty to
write in the object or, even, in the transaction. If there were an
age
descrepancy with any of the transactional objects, I expected that an
exception would be raised rather than having the transaction commit.
However, I am not seeing the behavior that I expected in Kudo. So my
question is: am I confused or is there a bug?
David--
Craig Russell 650 786-7819
Architect mailto:[email protected]
Sun Microsystems, Inc. http://access1.sun.com/jdo

Similar Messages

  • I'm not sure if I am writing this in the correct area (this is my second attempt at posting a question), but I have a comment about a recent store experience in Sandusky, OH.  I am not a current Verizon customer, but I was visiting friends and we had to g

    I'm not sure if I am writing this in the correct area (this is my second attempt at posting a question), but I have a comment about a recent store experience in Sandusky, OH.  I am not a current Verizon customer, but I was visiting friends and we had to go to the store to get something taken care of.  First off, allow me to compliment the nice, new store.  Boy, its changed over the past few years ago when I was in last. My comment is mostly directed to one specific employee.  When we entered the store, we were "welcomed" by a sloppy dressed gentlemen (his clothes were probably two sizes two small), which really struck me as unusual because every other employee in the store was dressed really "casual" with nice sporty clothing and red shoes.  Either way, after being entered into the computer, the gentlemen told me to wander around or have a seat in the back and someone would be with us soon.  As soon as we walked away from the door, the gentlemen handed his "duty" off to another employee who took over welcoming people coming in.  For whatever reason, I felt glued to him as he stood out to me.  After leaving the door, he immediately went to the back of the room, hunched over a cabinet, where he stood for the next 30+ minutes playing on his phone, frowning and not speaking to anyone around him.  Again, I found this unusual because everyone else was overly friendly and smiling.  I finally decided to walk by and see what he was doing.  It appeared that he was texting someone.  He paid no attention to me whatsoever as I walked by, just continued to frown and text on his phone.  I did take not of his name tag for future reference.  His name was Justin.  I am assuming he's the manager of the location as he was just standing around while everyone else worked.  I do understand that managers aren't necessarily doing the "dirty work" of the employees, but he could have at least found some better fitting clothing (I find it hard to believe Verizon doesn't supply it), been a little friendly, pretended to be busy, and not been texting the entire time we were there.  Again, the store was great, the other employees were very helpful, but the manager seemed to be doing is own little thing and it didn't put off a good image for the rest of the store.  Just wanted to share my comments.

    lisab101,
    We appreciate you reaching out to us. We greatly appreciate the feedback that you have provided us. Please know that we will lift this up to management and the issues will be addressed.
    Thank you,
    RobinD_VZW
    Follow us on twitter @VZWSupport

  • I can copy and paste from mozilla to word in second attempt only first attempt fails and paste a zero sized dot on the word document

    i can copy and paste from Mozilla to word in second attempt only first attempt fails and paste a zero sized dot on the word document.more ever i can not drag fevicon from address bar to my desktop.

    Maybe:<br />
    Dafizilla Table2Clipboard: https://addons.mozilla.org/firefox/addon/1852

  • Webpage opens only on the second attempt

    Hello,
    I am on MacBook Air OS X 10.9.3. There is a strange and annyoing behaviour with Safari opening www.spiegel.de - a popular german news site - and only this site. It always needs a second attempt to open this address in Safari Browser.
    On my MacBook Air it is reproducable:
    1.) Starting Safari (Version 7.0.3)
    2.) Opening a new window with "Command-N" and enter www.spiegel.de:
    3.) After pressing return key - nothing happens - site will not load and window looks like has been re-opened freshly:
    4.) Entering www.spiegel.de a second time and pressing return key, now the page will be loaded:
    There are no extensions activated in Safari and Ggogle is set as search engine in the address line.
    Can someone help to solve this problem?
    Thanks,
    Markus

    Hello, I don't understand why the steps in the following make the problem disappear but finally it worked:
    In Safari: Switching “Do not preload Top Hit in the background” on. (in Safari: "Safari->Preferences .../Smart Search Field/:")
    In Safari: Exporting all bookmarks (in Safari: "File->Export Bookmarks …”)
    In Safari: Deleting all bookmarks, Top Sites, Cache and Cookies ("Safari->Reset Safari ...)
    In Terminal:
    cd ~/Library/Caches/com.apple.Safari
    rm Cache.*
    rm fsCachedData/*
    rm ./Webpage\ Previews/*
    rm com.apple.Safari.SafeBrowsing/*
    Quit Safari and starting Safari.
    (For testing: entering "www.spiegel.de" in the address line: no "Top Hits" are displayed anymore and the page is loading without second attempt. Success!)
    In Safari: Importing the bookmarks again and removing the the particular bookmark that was displayed formerly in "Top Hits". -> Test 6. is still successful.
    Would be interesting to know more about the Safari "Top Hits" feature. Yes, i know it helps preloading pages - but what sense does this make to preload pages (cookies and data) whenver i enter a simple prefix "w" "ww" "www" ... in the address line ?!?
    Especially like in my case "Top Hits" feature and the algorithm in the background does the job so bad that it determines allways pages as proposals for "Top Hits" that i did not use for a long long time and there were much better matches in my bookmarks with prefix "www".
    Maybe someone knows more about the obscure "Top Hits" feature?

  • Auto redial fails on the second attempt

    the new feature on the version 7.2.60.103 automatically redial the contact if the first attempt wasn't successful. however the second attempt made automatically will result in the call being dropped.

    Hey Carolyn,
    Thank you for your reply. I tried resetting the SMC but I still have the same issue.
    It doesn't really matter if I put it to sleep from the Apple Menu or if I close the Lid. It always works the first time, but never the second time. What happens is that it stops responding directly after "getting" the sleep signal (either by closing the lid, then the whole screen is black and won't respond, or by choosing sleep from the apple menu, then the screen is not black but nothing responds). In both cases, nothing works, and I have to force the macbook to shut down (by holding the power button).
    Amazing thing, the fan gradually goes to max speed when this issue occurs (always).
    I never installed or used any new applications except one single update which required the system to restart (Safari 4).
    Cheers!
    Wissam

  • Second attempt at uploading photo book purchase blue bar stalled half-way- please advise...

    Second attempt at uploading photo book purchase blue bar stalled half-way- please advise...

    Hi..
    Help here >  iPhoto: Difficulty submitting a book, card, or calendar order

  • 27" iMac only wakes from sleep on second attempt

    My 27" iMac, as the title suggest only wakes from sleep on the second attempt. If I wake the mac in the usual way(magic mouse, keyboard or power button), I hear the hard drive start but the screen stays blank. If i then press the power button it will put the mac back into sleep then if i then wake it up again everything comes on fine. This only seems to happen if the mac has been sleeping for longer than a few minutes, but it does happen every single time.
    I've obviously checked that the bluetooth devices are allowed to wake the machine. Ive been looking through various forums and haven't come across anyone with the same problem as me so far.
    Ive already tried resetting the smc,pram etc to no avail.
    Any ideas on what could be the problem?
    Thanks
    Message was edited by: ScreamingMusings

    Sorry, I get it now.
    If you are using the Screen Saver prior to auto-sleep, then try disabling it to see if that helps.
    If not then the only other thing I can suggest is to backup and reinstall the OS X or call Apple Support.

  • Record '4,565 ' successfully written into /BI0/YEMPLOYEE in second attempt

    Hi ,
    I am getting following warning while loading data in BI QA system for Employee master.
    " Record '4,565 ' successfully written into /BI0/YEMPLOYEE in second attempt "
    While loading the data in dev there was no warning ,but the in BI Qa I am facing this warning.
    Can someone please help me on this?
    Thanks
    Sajid

    Hi Sajid,
    This usually happens with time-dependent master data. It is a feature of the built in SAP code when activating master data that "Might Have" an issue when there is a lot of incoming records being loaded in a request that are splitting the time-line of the existing master data records.
    The BW system basically does a second loop/attempt at storing the newer records into an existing record that has just been split. This is a feature to ensure that the final integrity of the 0DATETO and 0DATEFROM values end up with a single,consistent timeline in the master data table upon completion of the load.
    Serializing the load by removing parallel data-packet processing will help reduce the possibility of this occurring. Also loading one request at a time by ticking the "Repeat until all requests loaded" option in the DTP settings will reduce the possibility of this occurring.
    Setting the "Treat warnings as ok" mentioned above is perfectly fine to do in this scenario.
    Kind regards,
    John.

  • ICloud, Calendar, and app store unresponsive. What can I do? (This is a second attempt to describe my problem(s); the first was very unclear).

    After upgrade to 10.9.1, iCloud, Calendar, and app store are  unresponsive. What can I do? (This is a second attempt to describe my problem(s); the first was very unclear).
    - Clicking Calendar brings up nothing but the banner "moving calendar to server account", a message that does not change.
    - Clecking the App Store (dock symbol or Application list) brings up a message: "Cannot connect to App Store".
    - Softare Update is unresponsive.

    Hello Wyodor,
    thanks for your reply on my question.
    You are wright the index file is 308 KB.
    And offcourse that I delete my files and documents is not an Iweb problem, but because my English is not that good, that I thougt I try to tell the whole story, and hope people can read trough the lines.
    Why I didn't use Iweb to upload to the server is because the server company recommanded to use file zilla. And I am a nobody with this kind of things, so I did exactly what they tell me to do.
    No, i did not make a backup of Iweb and the domain file, but reading other messages on this forum showed me that I can maybe try to make empty the cashfile (?)
    and otherwise I have bad luck and have to make my website again. Offcourse I have a lot of examples from all the pages (copied from the local map to my USB stick) and my website is aprox. 15 Mb, (not so big) so it will cost me a few nigths.
    But I'm still hoping on a miracle :-)
    greetings Lasource

  • Discover it approval on second attempt!!!

    Approved for Discover it (7/15/2015) with a 4k SCL, on the second attempt 12 months later. Used SO referral link to get the $50 + $50 referral bonus and looking forward to discover doubling the first year’s rewards. If I max out the %5 categories, which will definitely happen, I’m looking at an extra $300, that plus the $100 referral bonus makes a hefty $400 sign up bonus, not bad Discover. (12 months ago I was declined for not having enough history, didn't even get the ol' secured treatment)

    I wasn't expecting a 4k SCL since my highest limit is a 3k quicksilver which hasn't even reported the new limit yet (got the 3X CLI for that on Monday). Seams like this is a good time to apply for Discover since they're being quite generous these days. There's another post from today where a member is reporting a 21,300 SCL, that's bonkers!
    If you do apply remember to use the referral program!!! p.s. Heading to Lowe's when the card gets here, already got a 10% movers coupon which will make the card's 5% + 5% cashback that much sweeter.

  • Attachement drops on second attempt...

    Good morning,
    I found last night that my messages, after having to select a backup SMTP server, are dropping attachments. The message sends fine, but the attachment is dropped in the second attempt.
    Anyone have any insight into this?
    -b

    Ben,
    Why are you having the use a "backup SMTP" then? At what point does the one selected in the preferences fail to send, and you are presented with the option to choose another? Is the authenticated SMTP one that is provided by your ISP, or otherwise -- if otherwise, who is the provider?
    What types of attachments are being added to the email messages, and are you adding them, or are they the result of forwarding?
    Ernie

  • [svn:osmf:] 10102: Second attempt at VAST prototype, this time as an AS3 library rather than a plugin.

    Revision: 10102
    Author:   [email protected]
    Date:     2009-09-09 13:51:19 -0700 (Wed, 09 Sep 2009)
    Log Message:
    Second attempt at VAST prototype, this time as an AS3 library rather than a plugin.  Update MAST implementation to use the new library.
    Modified Paths:
        osmf/branches/briggs-prototype/apps/samples/framework/ExamplePlayer/.actionScriptProperti es
        osmf/branches/briggs-prototype/apps/samples/framework/ExamplePlayer/.project
        osmf/branches/briggs-prototype/apps/samples/framework/FactoryPlayer/.actionScriptProperti es
        osmf/branches/briggs-prototype/apps/samples/framework/FactoryPlayer/.project
        osmf/branches/briggs-prototype/apps/samples/framework/FactoryPlayer/org/openvideoplayer/v iew/MainWindow.as
        osmf/branches/briggs-prototype/plugins/MASTPlugin/.actionScriptProperties
        osmf/branches/briggs-prototype/plugins/MASTPlugin/.project
        osmf/branches/briggs-prototype/plugins/MASTPlugin/org/openvideoplayer/mast/dom/MASTDocume ntProcessor.as
        osmf/branches/briggs-prototype/plugins/VASTPlugin/org/openvideoplayer/vast/VASTLoader.as
    Added Paths:
        osmf/branches/briggs-prototype/libs/VAST/
        osmf/branches/briggs-prototype/libs/VAST/.actionScriptProperties
        osmf/branches/briggs-prototype/libs/VAST/.flexLibProperties
        osmf/branches/briggs-prototype/libs/VAST/.project
        osmf/branches/briggs-prototype/libs/VAST/org/
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/media/
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/media/TextElement.as
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/media/VASTLoadedContext .as
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/media/VASTLoader.as
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/media/VASTMediaGenerato r.as
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/model/
        osmf/branches/briggs-prototype/libs/VAST/org/openvideoplayer/vast/model/VASTDocument.as

    Hi, Nubz!
    Yes, I just saw that, and am still chuckling.
    Maybe that will mollify the Jive gods?
    Thanks again,
    Jim

  • Y processing succeding in the second attempt but not in the first attetmpt

    hi all,
    i am getting a strange problem....
    i have modelled a idocxijdbc scenario....
    but when i am releasing the idoc from the /3 system...in the RWM i see two entries for my messaage....
    the first entry alwasy fails...and after few seconds xi itself is attempting to process the message...and in this second attempt it is automatically succeding.....
    the same is happening with every idoc that i release from the sap system....
    i am confused...i dont understand what xi doing..
    the error message for the first attempt is changing every time...
    some times it says <b>cache refresh problem</b>...
    some time it says <b>queue stopped</b>
    some times it says <b>http initial error (ICM_HTTP_INTERNAL_ERROR)</b>..
    can any one explain me what exactly happening....if any one can give me their mail id i can send the screen shots as well...
    i am unable to understand if its my configuration problem...or system problem
    please tell me whats wrong with this system...

    hi venu,
    i checked my cache this time immediately after i fired an idoc from the tcode SXI_CACHE..and it says that the cache contents are up-to-date..
    i have one more problem....in RWB when i click on the details button..it says
    <b><i>Service cannot be reached
    What has happened?
    URL http://hwsapxi:50000/sap/bc/gui/sap/its/webgui/! call was terminated because the corresponding service is not available.</i></b>
    because of this i am not able to c the details of the message....how do rectify this problem..
    thanx
    pavan

  • The Clear recent History Tool, locks up and (not responding) appears. A second attempt then works fine ??

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/827453]</blockquote><br>
    the Clear recent History Tool, locks up and (not responding) appears. A second attempt then works fine ??

    You're welcome
    Clearing Cookies can cause problems because Firefox also asks plugins to clear their cookies.

  • On doing a full Restore on my iMac from A time capsule, I am getting a permanent white apple screen with permanent loading wheel. This is my second attempt to restore with the same outcome. Seems like the last stage of the restore is getting stuck. Any ti

    On doing a full Restore on my iMac from A time capsule, I am getting a permanent white apple screen with permanent loading wheel. This is my second attempt to restore with the same outcome. Seems like the last stage of the restore is getting stuck. Any tips on how to sort this out please.
    iMac, Mac OS X (10.7.3)

    It just means some spammer is using your email address as the sender address for their spam. This is very easy to do - anyone can do it simply by changing the From email address in their email program. It does not mean your account was hacked or you have a virus (there are no current Mac viruses on the loose anyway, nor has there been for years).
    There's nothing you can do about it. It can happen to anyone and the spammers will move on to using someone else's email address before long.

Maybe you are looking for

  • Excise invoice - basic excise duty not appearing

    Hi, I am creating excise invoice in ECC 6.0 . Education cess is appearing in the excise invoice. However, basic excise duty and secondary education cess are not appearing. I understand that some notes have to be applied for secondary education cess. 

  • Address book and bluetooth phone

    Hi, I have been trying to use my bluetooth enabled mobile phone with the address book to dial numbers and send sms. I am using the Nokia N80, Nokia 9500 and the Motorola Razr V3 BLK. But when I pair the phone with address book and click on the tab of

  • SG500's with seperate DHCP device

    I have (2) Cisco SG500's, native stacked using the S1/S2 ports. The first switch IP is still 192.168.1.254. The manufacturer of the equipment I am installing requires a TP-Link wireless router functioning as DHCP server for the devices (50 plus). Wha

  • New E1000 is slower than old router

    I hooked up a new E1000 yesterday.  I've got a desktop pc connected to it through a wire - the desktop pc is not wireless (so there's no interference or confusion).  I changed the password and I live in a rural area - no neighbors are using my wifi n

  • Transfer from Project stock(Q) to Ordinary Stock

    Transfer from Project stock(Q) to Ordinary Stock I 'm unable to Transfer Material from Project Stock To Ordinary Stock I want to issue Stock to a cost center and stock is available only in Project stock. Plz let me know the Mvt Type / Procedure for d