Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ paper.aux
# Test Reports
TEST*.xml
test_warehouses
<<<<<<< HEAD
=======

# Ensime files for emacs
>>>>>>> amplab
.ensime
.ensime_lucene
13 changes: 5 additions & 8 deletions src/main/scala/shark/execution/serialization/XmlSerializer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,11 @@ object XmlSerializer {
new ByteArrayInputStream(bytes.slice(1, bytes.size))
}

// Occasionally an object inspector is created from the decoding.
// Need to put a lock on the process.
val ret = SharkEnvSlave.objectInspectorLock.synchronized {
val d: XMLDecoder = new XMLDecoder(decodedStream, null, null, cl)
val ret = d.readObject()
d.close()
ret
}
//
// no lock needed because of the hive bug fix for concurrent
val d: XMLDecoder = new XMLDecoder(decodedStream, null, null, cl)
val ret = d.readObject()
d.close()
ret.asInstanceOf[T]
}
}