home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / database / 6417 < prev    next >
Encoding:
Text File  |  1992-08-29  |  2.3 KB  |  55 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!gatech!hubcap!ncrcae!ncr-sd!SanDiego.NCR.COM!robin!don
  3. From: don@robin.SanDiego.NCR.COM (Don.Russell)
  4. Subject: Re: Hot Standby DBMS's
  5. Message-ID: <1992Aug28.170456.12162@donner.SanDiego.NCR.COM>
  6. Summary: blocking 2-phase commit
  7. Keywords: X/Open, heuristic decisions
  8. Sender: news@donner.SanDiego.NCR.COM (News Owner)
  9. Reply-To: don@robin.SanDiego.NCR.COM (Don.Russell)
  10. Organization: NCR Corporation, Rancho Bernardo
  11. References: <1992Aug20.192538.17842@cbnewsl.cb.att.com> <BtB7Lo.26u@world.std.com> <1992Aug25.201150.22996@fig.citib.com> <BtLzB8.H9J@world.std.com>
  12. Date: Fri, 28 Aug 1992 17:04:56 GMT
  13. Lines: 40
  14.  
  15. In article <BtLzB8.H9J@world.std.com> edwards@world.std.com (Jonathan Edwards) writes:
  16. >
  17. >Does the brokerage application makes changes to its own database as part
  18. >of a distributed transaction that includes changes in the requesting system?
  19. >If so, you have the well known problem that a 2-phase commit protocol can
  20. >block due to failure situations. This forces locks on one system to be held
  21. >till the other has recovered; manually breaking those locks can leave the
  22. >distributed transaction non-atomic: only parts of it completed. This is the
  23. >problem I was referring to.
  24. (stuff deleted)
  25. >
  26. >
  27. >
  28. >-- 
  29. >Jonathan Edwards                edwards@intranet.com
  30. >IntraNet, Inc                    617-527-7020
  31.  
  32. X/Open allows for heuristic transaction completion.  This could be a manual
  33. "breaking of locks".  The resource manager (DBMS) is required to
  34. remember the heuristic decision.  If the transaction coordinator times
  35. out the commit phase of the 2-phase commit, it tells the application
  36. that there is a heuristic hazard (possibility of non-atomic results).
  37. If the subordinate (broderage) takew a heuristic decision, it must
  38. remember it until told to forget it by the traansaction manager.  When
  39. communications is restored between the two systems, recovery will
  40. cause the commit to finish properly (if the brokerage blocked or took
  41. a heuristic commit), or recovery will detect that the brokerage took
  42. the wrong decision -- in this case: heuristic rollback.  At this
  43. point, an admiistrator can "fix" the problem.
  44.  
  45. No patents are necessary here since it is covered by the X/Open XA
  46. Specification.  TOP END is a transaction manager implementing the XA
  47. interface.
  48.  
  49. Don Russell
  50. TOP END Distributed Transaction Management
  51. NCR Corporation
  52. San Diego, CA
  53.  
  54. don.russell@SanDiegoCA.NCR.COM
  55.