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

Re: [PATCH JGIT] Allow writeObject() write to OutputStream

From
Daniel Cheng <j16sdiz+freenet@gmail.com>
Date
Mar 13, 2009, 15:47 UTC
Message-ID
<ff6a9c820903130847s5ade3df6p31089cbd4b688966@mail.gmail.com>
In-Reply-To
<20090313150806.GE22920@spearce.org>
On Fri, Mar 13, 2009 at 11:08 PM, Shawn O. Pearce <spearce@spearce.org> wrote:
Show 13 quoted lines
> "Daniel Cheng (aka SDiZ)" <j16sdiz+freenet@gmail.com> wrote:
>>
>> This patch make factor out the object writing code in ObjectWriter,
>> allow it to write to any OutputStream.
>> Subclass class may then override
>>   writeObject(final int type, long len, InputStream is, boolean store)
>> to make it write to alternative locations.
>>
>> There are some discussion on devl@freenetproject.org to use raw
>> (uncompressed) object to freenet. This patch allow the testing.
>
> Ok, I understand the code as-is, but I'm not sure I understand the
> reasoning for the change, or where you are trying to go with it.

In freenet (and most content-addressable network), file can be dropped out when unused. We need some method to "heal" the lost data. The easiest way is to do this is re-insert the very same file we used originally.

Pack files may change on different compression parameter, object order, etc. It need some tricks to get the original file. Loose object are immutable, so it is easier to use loose objects.

Nothing have finalized yet, we are just evaluating different approaches.

I know loose object are always larger, and have very large number of them. So it may backfire ....

Show 13 quoted lines
> Are you guys talking about making every object a loose object on
> freenet, and avoiding pack files?  Or making a form of JGit that
> access a Repository directly stored on freenode?
>
> I ask because there's some folks starting to talk about putting JGit
> onto a distributed hash table sort of system like Hadoop HBase,
> to allow the underlying storage to scale efficiently for really
> big hosting sites.  I would rather see a pooling of effort here
> than folks going in different directions.
>
> --
> Shawn.
>
Previous: Shawn O. Pearce
Message 3 of 3 in “Allow writeObject() write to OutputStream”
  1. Allow writeObject() write to OutputStreamDaniel Cheng (aka SDiZ), Mar 12, 2009
  2. Shawn O. PearceMar 13, 2009
  3. Daniel ChengMar 13, 2009

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.