Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8938165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:33:54+00:00 2026-06-15T10:33:54+00:00

In 2 Phase Commit, after all the component that participate in the transaction have

  • 0

In 2 Phase Commit, after all the component that participate in the transaction have voted “Yes” the Transaction Co-ordinateer issues the “Commit” command. And then each participants commits their own transaction.

What happens if any of the participants fail at the “Commit” step? While this component has failed, other might have already commited their transactions.
Is the Transaction Coordinater able to issues a Rollback command to all the participants if this happens.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T10:33:55+00:00Added an answer on June 15, 2026 at 10:33 am

    The whole purpose of the first phase is to ensure that nothing fails during the commit phase. At least due to data integrity or business process point of view. So if the prepare phase of the commit is fine then it can be assumed that commit will work, except network/communication failure.

    All the participating system must agree on one or the other way of handling the situation

    1.Auto-commit. If the rollback is not explicitly called by the coordinator,(within a given time) the transaction would be treated as committed by the respective participating system.

    2.Transaction Coordinator retries for each failed component. In case of network failure the retry may still work.

    3.Compensation. After a specified number of retries the transaction coordinator assumes that the transaction has ended in an inconsistent state. It can then try to compensate. ( note: this is not necessarily the roll back, this is like actions to be taken when a transaction fails).

    Now think about this. Compensation itself may not be successful across all resource managers.

    Some business processes may need manual compensation as well ! SO you need to log, raise alerts and a manual compensation may be needed to bring the system back to the original state.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose all the databases involved in a distributed transaction implemented with two-phase commit signal
I want to know that how can I do two phase commit transaction by
I am implementing 2-phase commit for a distributed transaction(using 2 Databases). I simulate a
Inside of a phase listener class that runs during the RESTORE_VIEW phase, I have
I am studying how two-phase commit works across a distributed transaction. It is my
I am looking for an implementation of the 2-phase commit protocol and yes i
I have a Run Script phase on my target that renders a PDF manual.
I am in the Beginner phase of learning Java. In all docs I have
I have read that in session tables the data survives the commit process. In
I am creating a sample application to test two-phase commit (2PC). I have taken

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.