[hibernate-issues] [Hibernate-JIRA] Commented: (HSHARDS-49) flush all sub sessions before commit when 2PC is not used

Max Ross (JIRA) noreply at atlassian.com
Thu Jan 10 22:59:55 EST 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSHARDS-49?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_29285 ] 

Max Ross commented on HSHARDS-49:
---------------------------------

Doing everything we reasonably can to avoid a partial-success situation makes a ton of sense.  How would we detect that 2PC isn't being used?

> flush all sub sessions before commit when 2PC is not used
> ---------------------------------------------------------
>
>                 Key: HSHARDS-49
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSHARDS-49
>             Project: Hibernate Shards
>          Issue Type: New Feature
>          Components: engine
>    Affects Versions: 3.0.0.Beta2
>            Reporter: Emmanuel Bernard
>            Assignee: Max Ross
>            Priority: Minor
>
> When 2PC is not used, it can be interesting to minimize the risk and flush all operations before running all the commits.
> We might be able to guess that and disable the internal Hibernate flush for each session in this case, 
> we also could let this as a recommended pattern for users (trigger flush manually before commit)
> or we could do it during transaction.commit() maybe optionally (define a flag property)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list