Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] jgit and huge files

Here is the stack trace (we have some debug code in PackFile which is
definitely not related, hence I transformed only the relevant line
number). Should "int sz" be a "long sz" instead?

java.lang.NegativeArraySizeException
	at org.eclipse.jgit.storage.file.PackFile.decompress(PackFile.java:296)
	at org.eclipse.jgit.storage.file.PackFile.load(PackFile.java:...)
	at org.eclipse.jgit.storage.file.PackFile.get(PackFile.java:...)
	at
org.eclipse.jgit.storage.file.ObjectDirectory.openObject1(ObjectDirectory.java:439)
	at
org.eclipse.jgit.storage.file.FileObjectDatabase.openObjectImpl1(FileObjectDatabase.java:183)
	at
org.eclipse.jgit.storage.file.FileObjectDatabase.openObject(FileObjectDatabase.java:157)
	at org.eclipse.jgit.storage.file.WindowCursor.open(WindowCursor.java:122)
	at org.eclipse.jgit.lib.ObjectDatabase.open(ObjectDatabase.java:176)
	at org.eclipse.jgit.lib.ObjectDatabase.open(ObjectDatabase.java:147)
	at org.eclipse.jgit.lib.Repository.open(Repository.java:246)

Marc

On 19.03.2012 17:44, Shawn Pearce wrote:
> On Mon, Mar 19, 2012 at 02:46, Marc Strapetz <marc.strapetz@xxxxxxxxxxx> wrote:
>> One of our users currently gets an NegativeArraySizeException when
>> working with jgit and a repository with files >2.2G. Should we
>> investigate this particular problem or is it a known limitation of jgit?
> 
> This is a bug. JGit should handle any size file without error.
> 
> It may handle delta compressed files that are above the
> core.streamFileThreshold limit too slowly be useful. But it will...
> eventually... one decade or two from now... produce the data.
> 
> 
> If the file isn't delta compressed, JGit should handle it correctly
> with no errors, and little performance issues (as its really just
> inflating and streaming the data).
> 


Back to the top