git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Bug report: orphaned pack-objects after killing upload-pack on [

From
Jeff King <peff@peff.net>
Date
Nov 24, 2020, 09:11 UTC
Message-ID
<X7zOKbzR9gwJHMbJ@coredump.intra.peff.net>
In-Reply-To
<xmqqd006s7ee.fsf@gitster.c.googlers.com>
On Sat, Nov 21, 2020 at 01:54:17PM -0800, Junio C Hamano wrote:
Show 7 quoted lines
> > I wrote this patch ages ago, and it is still sitting close to the bottom
> > (if not the bottom) of my todo stack, waiting to be investigated. ;)
> 
> Sounds sensible.
> 
> > -- >8 --
> > Subject: [PATCH] send-pack: kill pack-objects helper on signal or exit
Looks like you picked up this patch on a topic branch

I was thinking of polishing it further with a test, but I can't think of a good way to do one that would not be horribly racy. I even tried to think of a racy test I could run manually (e.g., pushing and killing in a loop) but even that is tough (even with the patch, it's racy whether the push will succeed or not, depending on exactly when you kill the parent, so there's no automatic way to distinguish the improved cases).

So I think it is still a good idea to do, and what I wrote earlier is as good a we can do.

René, do you want to wrap up your similar patch for the fetch side?
-Peff
Previous: 唐宇奕Next: Junio C Hamano
Message 6 of 16 in “”
  1. 唐宇奕Nov 19, 2020
  2. René ScharfeNov 20, 2020
  3. Jeff KingNov 21, 2020
  4. Junio C HamanoNov 21, 2020
  5. 唐宇奕Nov 24, 2020
  6. Jeff KingNov 24, 2020
  7. Junio C HamanoNov 25, 2020
  8. Jeff KingNov 26, 2020
  9. Junio C HamanoNov 26, 2020
  10. René ScharfeNov 26, 2020
  11. Jeff KingNov 27, 2020
  12. René ScharfeNov 27, 2020
  13. Jeff KingNov 28, 2020
  14. Jeff KingDec 1, 2020
  15. René ScharfeDec 2, 2020
  16. Junio C HamanoDec 2, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.