]> source.dussan.org Git - jgit.git/commit
ReceivePackStats: Add size and count of unnecessary pushed objects 04/160004/31
authorYunjie Li <yunjieli@google.com>
Wed, 25 Mar 2020 17:59:06 +0000 (10:59 -0700)
committerYunjie Li <yunjieli@google.com>
Fri, 11 Sep 2020 23:19:57 +0000 (16:19 -0700)
commit58e991b5dee510ea372716b054b78994df4d63c0
tree7ebefaa34380091bfa4953478053cd6be511e950
parent0b487b4fcd3ff710738ad2ecaad10e28bb9902d3
ReceivePackStats: Add size and count of unnecessary pushed objects

Since there is no negotiation for a push, the client is probably sending
redundant objects and bytes which already exist in the server.

Add more metrics in the stats to quantify it. Duplicated size and number
to measure the size and the number of duplicated objects which should
not be pushed.

Change-Id: Iaacd4761ee9366a0a7ec4e26c508eff45c8744de
Signed-off-by: Yunjie Li <yunjieli@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/UploadPackTest.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/PackParser.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/PackedObjectInfo.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/ReceivedPackStatistics.java