See <https://builds.apache.org/job/AVRO-python/147/changes>

Changes:

[dcreager] AVO-746. C: Atomic reference counts

This patch updates all of the reference counts in various Avro objects
to be updated atomically.  This takes care of some race conditions when
Avro instances are passed between threads.  The atomic increment and
decrement operations are slower than the previous non-atomic operations,
but according to some basic performance tests, reference counting isn't
the dominating factor in the running time.

------------------------------------------
[...truncated 1289 lines...]
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 96, in tempfile
  [py-test]     return NamedTemporaryFile(delete=False).name
  [py-test] TypeError: NamedTemporaryFile() got an unexpected keyword argument 
'delete'
  [py-test] 
  [py-test] 
======================================================================
  [py-test] ERROR: test_files (test_script.TestCat)
  [py-test] 
----------------------------------------------------------------------
  [py-test] Traceback (most recent call last):
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 100, in setUp
  [py-test]     self.avro_file = tempfile()
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 96, in tempfile
  [py-test]     return NamedTemporaryFile(delete=False).name
  [py-test] TypeError: NamedTemporaryFile() got an unexpected keyword argument 
'delete'
  [py-test] 
  [py-test] 
======================================================================
  [py-test] ERROR: test_filter (test_script.TestCat)
  [py-test] 
----------------------------------------------------------------------
  [py-test]      {"name": "org.apache.avro.test.util.MD5", "type": "fixed", 
"size": 16},
  [py-test]      {"name": "ReferencedRecord", "type": "record", 
  [py-test]        "namespace": "org.apache.avro.other.namespace", 
  [py-test]        "fields": [ {"name": "foo", "type": "string"} ] },
  [py-test]      {"name": "ReferencedRecord", "type": "record", 
  [py-test]        "fields": [ {"name": "bar", "type": "double"} ] },
  [py-test]      {"name": "TestError",
  [py-test]       "type": "error", "fields": [ {"name": "message", "type": 
"string"} ]
  [py-test]      }
  [py-test]  ],
  [py-test] 
  [py-test]  "messages": {
  [py-test]      "echo": {
  [py-test]          "request": [{"name": "qualified", 
  [py-test]              "type": "ReferencedRecord"}],
  [py-test]          "response": 
"org.apache.avro.other.namespace.ReferencedRecord"
  [py-test]      },
  [py-test] 
  [py-test]      "error": {
  [py-test] Traceback (most recent call last):
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 100, in setUp
  [py-test]     self.avro_file = tempfile()
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 96, in tempfile
  [py-test]     return NamedTemporaryFile(delete=False).name
  [py-test] TypeError: NamedTemporaryFile() got an unexpected keyword argument 
'delete'
  [py-test] 
  [py-test] 
======================================================================
  [py-test] ERROR: test_help (test_script.TestCat)
  [py-test] 
----------------------------------------------------------------------
  [py-test] Traceback (most recent call last):
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 100, in setUp
  [py-test]     self.avro_file = tempfile()
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 96, in tempfile
  [py-test]     return NamedTemporaryFile(delete=False).name
  [py-test] TypeError: NamedTemporaryFile() got an unexpected keyword argument 
'delete'
  [py-test] 
  [py-test] 
======================================================================
  [py-test] ERROR: test_json_pretty (test_script.TestCat)
  [py-test] 
----------------------------------------------------------------------
  [py-test] Traceback (most recent call last):
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 100, in setUp
  [py-test]     self.avro_file = tempfile()
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 96, in tempfile
  [py-test]     return NamedTemporaryFile(delete=False).name
  [py-test] TypeError: NamedTemporaryFile() got an unexpected keyword argument 
'delete'
  [py-test] 
  [py-test] 
======================================================================
  [py-test] ERROR: test_print (test_script.TestCat)
  [py-test] 
----------------------------------------------------------------------
  [py-test] Traceback (most recent call last):
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 100, in setUp
  [py-test]     self.avro_file = tempfile()
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 96, in tempfile
  [py-test]     return NamedTemporaryFile(delete=False).name
  [py-test] TypeError: NamedTemporaryFile() got an unexpected keyword argument 
'delete'
  [py-test] 
  [py-test]          "request": [],
  [py-test] 
======================================================================
  [py-test]          "response": "null",
  [py-test] ERROR: test_print_schema (test_script.TestCat)
  [py-test]          "errors": ["org.apache.avro.test.namespace.TestError"]
  [py-test] 
----------------------------------------------------------------------
  [py-test]      }
  [py-test] Traceback (most recent call last):
  [py-test] 
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 100, in setUp
  [py-test]  }
  [py-test]     self.avro_file = tempfile()
  [py-test] 
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 96, in tempfile
  [py-test] }
  [py-test]     return NamedTemporaryFile(delete=False).name
  [py-test]     : STRING CAST SUCCESS
  [py-test] TypeError: NamedTemporaryFile() got an unexpected keyword argument 
'delete'
  [py-test] {"namespace": "org.apache.avro.test",
  [py-test] 
  [py-test]  "protocol": "BulkData",
  [py-test] 
======================================================================
  [py-test] 
  [py-test] ERROR: test_skip (test_script.TestCat)
  [py-test]  "types": [],
  [py-test] 
----------------------------------------------------------------------
  [py-test] 
  [py-test] Traceback (most recent call last):
  [py-test]  "messages": {
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 100, in setUp
  [py-test] 
  [py-test]     self.avro_file = tempfile()
  [py-test]      "read": {
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 96, in tempfile
  [py-test]          "request": [],
  [py-test]     return NamedTemporaryFile(delete=False).name
  [py-test]          "response": "bytes"
  [py-test] TypeError: NamedTemporaryFile() got an unexpected keyword argument 
'delete'
  [py-test]      },
  [py-test] 
  [py-test] 
  [py-test] 
======================================================================
  [py-test]      "write": {
  [py-test] ERROR: test_version (test_script.TestCat)
  [py-test]          "request": [ {"name": "data", "type": "bytes"} ],
  [py-test] 
----------------------------------------------------------------------
  [py-test]          "response": "null"
  [py-test] Traceback (most recent call last):
  [py-test]      }
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 100, in setUp
  [py-test] 
  [py-test]     self.avro_file = tempfile()
  [py-test]  }
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 96, in tempfile
  [py-test] 
  [py-test]     return NamedTemporaryFile(delete=False).name
  [py-test] }
  [py-test]     : STRING CAST SUCCESS
  [py-test] {
  [py-test]   "protocol" : "API",
  [py-test]   "namespace" : "xyz.api",
  [py-test]   "types" : [ {
  [py-test]     "type" : "enum",
  [py-test]     "name" : "Symbology",
  [py-test]     "namespace" : "xyz.api.product",
  [py-test]     "symbols" : [ "OPRA", "CUSIP", "ISIN", "SEDOL" ]
  [py-test]   }, {
  [py-test]     "type" : "record",
  [py-test]     "name" : "Symbol",
  [py-test]     "namespace" : "xyz.api.product",
  [py-test]     "fields" : [ {
  [py-test]       "name" : "symbology",
  [py-test]       "type" : "xyz.api.product.Symbology"
  [py-test]     }, {
  [py-test]       "name" : "symbol",
  [py-test]       "type" : "string"
  [py-test]     } ]
  [py-test]   }, {
  [py-test]     "type" : "record",
  [py-test]     "name" : "MultiSymbol",
  [py-test]     "namespace" : "xyz.api.product",
  [py-test]     "fields" : [ {
  [py-test]       "name" : "symbols",
  [py-test]       "type" : {
  [py-test]         "type" : "map",
  [py-test]         "values" : "xyz.api.product.Symbol"
  [py-test]       }
  [py-test]     } ]
  [py-test]   } ],
  [py-test]   "messages" : {
  [py-test]   }
  [py-test] }
  [py-test]     : STRING CAST SUCCESS
  [py-test] 
  [py-test] TEST ROUND TRIP
  [py-test] ===============
  [py-test] 
  [py-test] 
  [py-test] TEST FULLNAME
  [py-test] =============
  [py-test] 
  [py-test] 
  [py-test] TEST CAST TO STRING AFTER PARSE
  [py-test] ===============================
  [py-test] 
  [py-test] TypeError: NamedTemporaryFile() got an unexpected keyword argument 
'delete'
  [py-test] 
  [py-test] 
======================================================================
  [py-test] ERROR: test_multi_file (test_script.TestWrite)
  [py-test] 
----------------------------------------------------------------------
  [py-test] Traceback (most recent call last):
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 156, in setUp
  [py-test]     self.json_file = tempfile() + ".json"
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 96, in tempfile
  [py-test]     return NamedTemporaryFile(delete=False).name
  [py-test] TypeError: NamedTemporaryFile() got an unexpected keyword argument 
'delete'
  [py-test] 
  [py-test] 
======================================================================
  [py-test] ERROR: test_outfile (test_script.TestWrite)
  [py-test] 
----------------------------------------------------------------------
  [py-test] Traceback (most recent call last):
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 156, in setUp
  [py-test]     self.json_file = tempfile() + ".json"
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 96, in tempfile
  [py-test]     return NamedTemporaryFile(delete=False).name
  [py-test] TypeError: NamedTemporaryFile() got an unexpected keyword argument 
'delete'
  [py-test] 
  [py-test] 
======================================================================
  [py-test] ERROR: test_stdin (test_script.TestWrite)
  [py-test] 
----------------------------------------------------------------------
  [py-test] Traceback (most recent call last):
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 156, in setUp
  [py-test]     self.json_file = tempfile() + ".json"
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 96, in tempfile
  [py-test]     return NamedTemporaryFile(delete=False).name
  [py-test] TypeError: NamedTemporaryFile() got an unexpected keyword argument 
'delete'
  [py-test] 
  [py-test] 
======================================================================
  [py-test] ERROR: test_version (test_script.TestWrite)
  [py-test] 
----------------------------------------------------------------------
  [py-test] Traceback (most recent call last):
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 156, in setUp
  [py-test]     self.json_file = tempfile() + ".json"
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 96, in tempfile
  [py-test]     return NamedTemporaryFile(delete=False).name
  [py-test] TypeError: NamedTemporaryFile() got an unexpected keyword argument 
'delete'
  [py-test] 
  [py-test] 
======================================================================
  [py-test] ERROR: test_write_csv (test_script.TestWrite)
  [py-test] 
----------------------------------------------------------------------
  [py-test] Traceback (most recent call last):
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 156, in setUp
  [py-test]     self.json_file = tempfile() + ".json"
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 96, in tempfile
  [py-test]     return NamedTemporaryFile(delete=False).name
  [py-test] TypeError: NamedTemporaryFile() got an unexpected keyword argument 
'delete'
  [py-test] 
  [py-test] 
======================================================================
  [py-test] ERROR: test_write_json (test_script.TestWrite)
  [py-test] 
----------------------------------------------------------------------
  [py-test] Traceback (most recent call last):
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 156, in setUp
  [py-test]     self.json_file = tempfile() + ".json"
  [py-test]   File 
"/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build/test/test_script.py";,>
 line 96, in tempfile
  [py-test]     return NamedTemporaryFile(delete=False).name
  [py-test] TypeError: NamedTemporaryFile() got an unexpected keyword argument 
'delete'
  [py-test] 
  [py-test] 
----------------------------------------------------------------------
  [py-test] Ran 40 tests in 1.347s
  [py-test] 
  [py-test] FAILED (errors=16)

BUILD FAILED
/zonestorage/hudson<https://builds.apache.org/job/AVRO-python/ws/trunk/lang/py/build.xml>:130:
 Test execution failed.  See output for details.

Total time: 6 seconds

Reply via email to