File tree Expand file tree Collapse file tree
chill-hadoop/src/main/java/com/twitter/chill/hadoop Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public void open(InputStream in) throws IOException {
4646
4747 public Object deserialize (Object o ) throws IOException {
4848 // TODO, we could share these buffers if we see that alloc is bottlenecking
49- byte [] bytes = new byte [( int ) Varint .readUnsignedVarLong (inputStream )];
49+ byte [] bytes = new byte [Varint .readUnsignedVarInt (inputStream )];
5050 inputStream .readFully ( bytes );
5151 return kryoPool .fromBytes (bytes , klass );
5252 }
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public void serialize(Object o) throws IOException {
4747 try {
4848 st .writeObject (o );
4949 // Copy from buffer to output stream.
50- Varint .writeUnsignedVarLong (st .numOfWrittenBytes (), outputStream );
50+ Varint .writeUnsignedVarInt (st .numOfWrittenBytes (), outputStream );
5151 st .writeOutputTo (outputStream );
5252 }
5353 finally {
You can’t perform that action at this time.
0 commit comments