Git development
 help / color / mirror / Atom feed
From: Robin Rosenberg <robin.rosenberg.lists@dewire.com>
To: Farrukh Najmi <farrukh@wellfleetsoftware.com>
Cc: git@vger.kernel.org
Subject: Re: Any plans to support JTA and XA in jgit?
Date: Thu, 13 Nov 2008 22:54:13 +0100	[thread overview]
Message-ID: <200811132254.13960.robin.rosenberg.lists@dewire.com> (raw)
In-Reply-To: <491C8DBE.9080105@wellfleetsoftware.com>

torsdag 13 november 2008 21:27:42 skrev Farrukh Najmi:
> A totally separate issue I have to sort out is how to handle multiple 
> unrelated transactions that are modifying the same git repo. If a 
> transaction needs to be rolled back how do roll back exactly some 
> changes in some files in git that were impacted by the transaction. This 
> is not easy because git (and most VCS) do not have transaction isolation 
> like databases do. Any suggestions?
Updating the head ref is the hard part, but we have locking already there
and it is atomic on any sane file system. There is no waiting implemented
so one gets an error if two threads try to update the same head simultaneously.
Seems doable I'd say. For server use one could wrap the repo with a real database,
and just let the disk based refs mirror the database view,  though that is quite a bit
off focus for my own needs.

> I am not very well versed in tag libraries myself. My situation is one 
> where everything happens inside a SOAP service endpoint and so I suspect 
> JSP tag libraries are not likely to be useful in that situation. Let me 
> know if I am wrong in this assessment.
not at all.

-- robin

  reply	other threads:[~2008-11-13 21:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-13 19:59 Any plans to support JTA and XA in jgit? Robin Rosenberg
2008-11-13 20:27 ` Farrukh Najmi
2008-11-13 21:54   ` Robin Rosenberg [this message]
2008-11-14 14:38   ` Kyle Moffett
2008-11-14 14:45     ` Farrukh Najmi
2008-11-15 20:21     ` Any overview available on jgit codebase? Farrukh Najmi
2008-11-15 23:15       ` Shawn O. Pearce
2008-11-16  0:21         ` Farrukh Najmi
  -- strict thread matches above, loose matches on Subject: below --
2008-11-13 19:20 Any plans to support JTA and XA in jgit? Farrukh Najmi
     [not found] ` <200811132057.32026.robin.rosenberg.lists@dewire.com>
2008-11-13 20:07   ` Robin Rosenberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200811132254.13960.robin.rosenberg.lists@dewire.com \
    --to=robin.rosenberg.lists@dewire.com \
    --cc=farrukh@wellfleetsoftware.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox