ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kyra Pritzel-Hentley (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-1032) EntitySaxReader mostly-insert (store after create-error) Fix
Date Wed, 24 Jan 2018 09:35:00 GMT

    [ https://issues.apache.org/jira/browse/OFBIZ-1032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16337197#comment-16337197

Kyra Pritzel-Hentley commented on OFBIZ-1032:

Hello Jacques,

Here are the steps to test the patch:
 * Go to [https://localhost:8443/webtools/control/main]  --> Import/Export
 * On th pages "XML Data Import",  "XML Data Import Dir" and "XML Data Import Readers" check
to see if there is an "Only Inserts" instead of a "Mostly Inserts" checkbox option.
 * When checking the "Only Inserts" flag and importing a random xml-file the "useTryInsertMethod"
variable in the EntitySaxReader should be set to "true". (For example at line 418 in the EntitySaxReader)
 * To test the changes in the EntitySaxReader (which do not change functionality direktly
but instead reduce processing power by rolling back the transaction quicker) try to import
an xml file which contains inserts and updates to the database while the "OnlyInserts" flag
is checked. As soon as an update is encountered a log message should report that the primary
key for that update entity already exists. The transaction should be rolled back immediately
instead of trying to store values and rolling back after going through the rest of the document
(which would be unnescessary since the rollback will be indurced either way).

I hope this helps to test the patch. If there are more questions please write by today or
tomorrow. I will not be able to write later than that.

> EntitySaxReader mostly-insert (store after create-error) Fix
> ------------------------------------------------------------
>                 Key: OFBIZ-1032
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1032
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>         Environment: Win XP
>            Reporter: Karl Eilebrecht
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: OFBIZ-1032_Remove-fallback-store.patch, OFBIZ-1032_Remove-fallback-store_EntitySaxReader.patch,
OFBIZ-1032_Remove-fallback-store_rename-mostlyInserts.patch, patch9675.patch
> This issue is part of Key-Work Ofbiz Contribution Proposal.
> http://docs.ofbiz.org/display/OFBIZ/Key-Work+Ofbiz+Contribution+Proposal
> Based on Release: 540035
> Includes:         -
> Required:         JIRA-1031, JIRA-1030, JIRA-1029, JIRA-1017, JIRA-1016
> Recommended:      -
> Classes:          EntitySaxReader 
> Description:      Avoids rollback on create error to be able to store the 
>                   entity instead (mostly-inserts feature).

This message was sent by Atlassian JIRA

View raw message