Question: Will non committed persistence data loss if my application which is using Kodo/JDO crashes???

Hi,
I am very new to JDO and Kodo and I am still learning. I have a user
specification that requires no data loss when the application crashes. If I
am developing my application using Kodo for data access layer, when my
application crashes just because and needs to restart, what happen to all
the persistence data that have not committed to database??
Vivian

I am very new to JDO and Kodo and I am still learning. I have a user
specification that requires no data loss when the application crashes.
If I am developing my application using Kodo for data access layer, when
my application crashes just because and needs to restart, what happen to
all the persistence data that have not committed to database??If an app crashes, all current transactions will be aborted. There is a
difference between data loss and aborting the current transaction. Data
loss implies losing some persistent data -- data that resides in the
database. That won't happen with Kodo.
You will, however, lose any changes that have not been committed to the
database yet. This is a good thing. You absolutely DO NOT want an
unfinished transaction to be recorded, because that could violate the
integrity of your data. Consider a transaction that decrements from one
bank account and increments another to implement a funds transfer. You
certainly wouldn't want to record the decrement unless you are absolutely
sure the increment would be recorded too!

Similar Messages

  • Data loss in the secure file transfer using java

    Hi,
    My java Appllication uses the sftp(secure file transfer protocol) for file transferring. when the load is high like 150 GB , data loss occuring for some files especially last chunk of data is missing.
    Core file transfer code
    while (true)
    int read = bis.read(buffer); //Reading bytes into the byte array (buffer) from network stream (bis).
    if (read==-1) {
    break; //Break the loop, if there are no more bytes available in the InputStream.
    bos.write(buffer,0,read); //Writing the same number of bytes what we read into buffer byte array into OutputStream
    complete.update(buffer,0,read); //Giving the same number of bytes what we read above to the checksum calculation.
    bytesSoFar += read; //Incrementing the bytes that we have read from the source.
    //if the bytes transferred are equal to the source file size
    If (bytesSoFar == fileInfo.getFileSize().intValue())
    // Calculate the file checksum.
    // Update DbAuditLog with checksum and no. of bytes read
    else
    // Update DbAuditLog with no. of bytes read
    bos.flush();
    Please help , why the data loss is happening when the big size files transfer
    Note:
    1.150 gb not a single file multiple files.
    2.SFTP no java specific API, So connection is happening through java .io.sockect connection

    so, if you are not getting any exceptions, yet the data is incorrect, it sounds like you are having actual network issues. i'd start looking at things like the actual network cards in the computer as well other equipment involved in the transfer. since you are not getting exceptions, the network stack obviously thinks nothing was lost over the wire, so either the actual hardware has issues, or the network stack, or the issue is on the sending end. the last possibility is that the client is somehow munging the data it is sending. do you control the client code? if so, i'd start checking the client side code for bugs (and/or post it here).
    also, i'm assuming that all of the variables included in your original code are thread local (you aren't sharing any of those buffers/streams/etc between multiple threads).

  • Ve brought an ipod nano 1st gen off ebay, will i be able to plug it into itunes which i use for my iphone to put music on it?

    Iv brought an ipod nano 1st gen off ebay, will i be able to plug it into my tunes which i use for my iphone, and sync music to it? can u register 2 devices to 1 itunes?

    tallpaul from great yarmouth wrote:
    Iv brought an ipod nano 1st gen off ebay, will i be able to plug it into my tunes which i use for my iphone, and sync music to it? can u register 2 devices to 1 itunes?
    Yes.  There is no limit to the number of iPods you can sync with one computer, iTunes library or account.
    B-rock

  • Question on switch-version and data loss

    Hi,
    In reading info around the web, I do find and understand that any changes made to configuration of an upgraded CUCM node will be lost if they were made after upgrade but before switch-version.  I was wondering if CDR files/database were also grouped into this, or if those are copied over when switch-version is executed.

    Hi,
    CDR records will be lost, only user facing features are preserved. Please check the following post
    https://supportforums.cisco.com/discussion/11117171/cucm-upgrade-and-cdr-records#3293654
    HTH
    Manish

  • Will I loose existing data on the Time Capsule if I use it now for Time Machine also?

    Till now I only save photos, music and movies on my AirPort Time Capsule 2 TB. From now on I also want to use it for Time Machine Backups also. But I am not sure if it my data and the backup will exist in parallel.

    You can drag and drop files to the Time Capsule using the Finder.
    Open Macintosh HD or the Finder and look for the Time Capsule icon under the SHARED heading on the left side of window.
    Click on the Time Capsule icon and a folder representing the drive will appear in the window to the right.
    Double click the folder to mount the drive on the desktop.

  • Can I delete backup data from my old iPhone which I used to restore my new iphone 5?

    My iphone 4S was stolen, and I had to get a new phone. I had all my data backed up on icloud and it was easy to set up my new iphone 5 and getting all my data back, however, I still have my old'd phone backup data on my icloud and it's been taking up space (about 4gb) of data. Can I delete this data? Will it delete my iphone5's data as well, as I used it to restore all settings?
    Thanks

    Welcome to the Apple Community.
    You can safely delete the old back up now.

  • Forgot password icloud email will not accept my date of birth to recover same

    I have forgotten my password for my icloud email.
    Tried recovery - an email has been sent - but where?
    Tried answering questions - will not accept my date of birth as being correct.
    Would appreciate help.

    I had this issue too yesterday. Both my account and my wifes account disappeared and you could not log into them, or reset them as the Date of Birth was not recognized. I am talking with Apple iTunes support.. They are getting quite a few calls like this, sounds like an change has gone wrong, maybe in conjunction with the roll out of 2 step verification. Painful waste of time on a Saturday to resolve this. Interestingly if you have an icloud account linked to your Apple ID and log into that and check your account info, you will see your actual email address as a weird prefix with the word 'disputed'.. A system issues for sure.

  • Safest Way to Penetration Test an Oracle DB with Potential Data Loss

    Hi,
    I was wondering what the safest way to protect Oracle from data loss when running a web application scan. We currently have an external company about to perform a web application scan and they warned us of potential data loss. However, we can't afford much downtime and our storage doesn't support things such as Copy on Write. What would you recommend? Do you think that something like putting the database in read-only mode for the duration of the test (2 hours) and enabling audit on all actions would be sufficient (we could then review the audit to see if any unauthorized calls were made)? Thanks.

    If not running live you might consider restoring your database to before the test. But you need to have confidence this would work.
    I assume your running live for the duration of the test.
    Going read only might invalid the test, and your application might not be able to run read only without generating errors.
    Examine and be aware of the flashback technologies available to you at your database version and which ones might be useful. In this context increase undo space/retention target might be helpful but dont dash off doing something at last minute.
    Ensure you have checked out how to use logminer.
    Consider not continously updating and standby database you have until test is complete.
    Ensure your more recent backup is successful and you have checked your restore procedures and have contingency places in place.
    In practice the web peneration test may attempt to change a small amount of data in a small number of records, but the agreement probably means they are not liabable if they dropped schema in the database!
    If you have to correct data following their test then do so carefully. Doing the wrong thing (especially in a panic) can make a sitation worse, especially if you are doing something you are not familiar with. Often it may be better the data loss through the application itself.
    If you do turn on auditing be aware of what it gives you before you turn in on, and beware any space implications.
    I notice your are recently registered on the site ... this may mean you dont have much experience with oracle, you may be more of a system administrator for instance. No disrespect in that whatsoever. However especially if this is the case then remember in my opinion dashing to change something last minute statisically often does more harm than good overall and may be harder to undo.
    Hope this helps.
    bigdelboy
    Edited by: bigdelboy on 28-Mar-2009 01:18
    Edited by: bigdelboy on 28-Mar-2009 01:22

  • Why will None of the Add ons Load in 3.6?

    Why will none of my add on's load? I have used "Down Load Helper and a Screen Capture" fo years. Now Fire Fox will not load them.
    == This happened ==
    Every time Firefox opened
    == I Switched to Windows 7

    Tried to do the compatibility check with "Find updates". The command doesn't "light up" The only two that can be used are "options" and "Cancel Install." Have also reinstalled the add-ons with no luck.

  • Data Syncronisation between EPMA applications

    Hi
    General question
    I want to transfer data from 2 planning applications into a third planning application. All applications are EPMA (11.1.1.3 !).
    One way ( a bit clunky ) is to do a DATAEXPORT from the source applications & then load the file into the new one in the old-fashioned way.
    Another way is to utilise Data Syncronisation function in EPMA.
    The source & target hierarchies are largely the same, but the source application level 0 members for accounts & entities will not be present in the target application.
    Does anyone have any opinions on the best way to accomplsh this ?
    Thanks

    Hi,
    If you are using a structural coding scheme in your dimensions (i.e. 6 digits for level 0, 5 digits for level 1, 4 digits for level 2 etc.) You can define source dimension mappings as specified at below link:
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/epma_admin/epma_mapping.html#bpma_data_synch_1_43
    The other alternative is to literally pick all members except level 0 from member selector, it is possible to select all level 1 and above members, however this requires regular updates to your mappings.
    Have a look at below link if you haven't done so:
    http://download.oracle.com/docs/cd/E17236_01/epm.1112/epma_admin/epma_data_sync.html
    Cheers,
    Alp

  • I need to erase all content and settings from old iPhone 4s.  Will doing so affect new iPhone 6 which is using the same iCloud account and Apple ID?

    I need to erase all the content and settings from old iPhone 4s.  Will doing so affect content on new iPhone 6 which is using the same iCloud account and Apple ID?

    No, it will not affect the iPhone 6 content if you wipe the old iPhone 4s.

  • Just bought a 2tb external hard drive with the intention of moving my iPhoto data files on it. I have so much of my 500 gigs being used up by images and video. Questions: Will this foul up my iPhoto app? Do I need to point iPhoto to this new location?

    Just bought a 2tb external hard drive with the intention of moving my iPhoto data files to it. I have so much of my 500 gigs being used up by images and video. Questions: Will this foul up my iPhoto app?
    Do I need to point iPhoto to this new location?
    Thanks!

    Are you running a Managed or a Referenced Library?
    A Managed Library, is the default setting, and iPhoto copies files into the iPhoto Library when Importing. The files are then stored in the Library package
    A Referenced Library is when iPhoto is NOT copying the files into the iPhoto Library when importing because you made a change at iPhoto -> Preferences -> Advanced. (You unchecked the option to copy files into the Library on import) The files are then stored where ever you put them and not in the Library package. In this scenario you are responsible for the File Management.
    Assuming a Managed Library:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • After updating my 4S to iOS 5.1.1 last night, none of my data applications are working today, nor Siri, iMessage or anything of the like. I'm at a loss as to what might have caused it. Is anyone else having this issue/has anyone found a fix?

    After updating my 4S to iOS 5.1.1 last night, none of my data applications are working today, nor Siri, iMessage or anything of the like. I'm at a loss as to what might have caused it. Is anyone else having this issue/has anyone found a fix? Everything seems to work fine if I connect to wireless, but if I'm not connected to it then nothing is working. My service provider says everything should be working fine, I still have the 3G symbol and full bars.

    Somebody clearly hasn't read the User Guide.
    Basic troubleshooting steps are retart, reset, restore from backup, restore as NEW. 
    If you have tried ALL of these steps and you're still having problems, then you need to bring your phone into Apple for evaluation.

  • Script that will help validate if there is any data loss after a DB restore

    Hi,
    I need to write a single script that will perform the following
    operations:
    1)return me the highy accessed tables across all databases.
    2)List the count, Min and Max system date of the highy accessed tables returned from step 1.
    The idea is to validate if there is any data loss to the highly transactional tables after a database restore operation has been performed.
    Thanks.

    Hello,
    I would also like you to see nice blog by Aron,you can modify the script a bit to change according to your need
    http://sqlblog.com/blogs/aaron_bertrand/archive/2008/05/06/when-was-my-database-table-last-accessed.aspx
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers
    Hello Shanky,
    The post would not be helpful too much for OP's requirement. The post was talking about when was the database last accessed. DMLs are not capturing in the script and also there will be many variant forms that can be applied for DML. Hence, I do not think,
    the script would help too much. 
    Or Am I missing something? 
    Latheesh as i mentioed OP has to modify the script little bit may be add User_seek,user_update,user_scans.Still IMO there is no *perfect* way to actually analyze this.So I pointed out point in my original post.Also unless he has some timestamp he cannot
    see min time when it was accessed ,max time can be taken from last user seek,scan,lookup time. Motive was to lethim know what he was trying to achieve cannot be axactly obtained by using sys.dm_index_usage_stats.Below query will give most accessed table
    : Source (Query)
    SELECT
    t.name AS 'Table',
    SUM(i.user_seeks + i.user_scans + i.user_lookups)
    AS 'Total accesses',
    SUM(i.user_seeks) AS 'Seeks',
    SUM(i.user_scans) AS 'Scans',
    SUM(i.user_lookups) AS 'Lookups'
    FROM
    sys.dm_db_index_usage_stats i RIGHT OUTER JOIN
    sys.tables t ON (t.object_id = i.object_id)
    GROUP BY
    i.object_id,
    t.name
    ORDER BY [Total accesses] DESC
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Will running Mantainence 3.7 on my eMac result in data loss?

    We have restored our eMac to 29GB and it still is not operating properly (Safari won't launch, the whole machine functions very slowly). I have Maintenace 3.7 and was going to run it but it is asking which operations it wants me to perform:
    repair permissions
    verify preference files
    periodic cleanup
    update pre bindings
    clear cache files
    update locate data base
    update whatis data base
    rebuild launch services
    Which do I want? Would any of these potentially result in data loss?
    I should really change my profile name to Mac Idiot.

    Haven't heard of that utility but, before you go further, I strongly ecommend you read several of the articles listed here:
    http://thexlab.com/faqs/faqs.html
    The articles will tell you what's safe and what isn't. Note especially articles with "Maintenance" and "Cleaning" in the title.

Maybe you are looking for