You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Sean Busbey (JIRA)" <ji...@apache.org> on 2017/04/12 03:22:41 UTC

[jira] [Resolved] (AVRO-2013) Unit test failure in Ruby 1.9

     [ https://issues.apache.org/jira/browse/AVRO-2013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Busbey resolved AVRO-2013.
-------------------------------
       Resolution: Duplicate
         Assignee:     (was: Sean Busbey)
    Fix Version/s:     (was: 1.7.8)

this isn't a problem in master or branch-1.8 due to AVRO-1782, so switch to backporting that for branch-1.7

> Unit test failure in Ruby 1.9
> -----------------------------
>
>                 Key: AVRO-2013
>                 URL: https://issues.apache.org/jira/browse/AVRO-2013
>             Project: Avro
>          Issue Type: Bug
>          Components: ruby
>    Affects Versions: 1.7.8
>            Reporter: Sean Busbey
>            Priority: Critical
>         Attachments: AVRO-2013.0.patch, AVRO-2013-branch-1.8.v0.patch
>
>
> {code}
>   1) Error:
> test_md5_fingerprint(TestFingerprints):
> JSON::GeneratorError: only generation of JSON objects or arrays allowed
>     /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:224:in `generate'
>     /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:224:in `generate'
>     /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:394:in `dump'
>     /Users/busbey/projects/avro/lang/ruby/lib/avro/schema_normalization.rb:28:in `to_parsing_form'
>     /Users/busbey/projects/avro/lang/ruby/lib/avro/schema_normalization.rb:20:in `to_parsing_form'
>     /Users/busbey/projects/avro/lang/ruby/lib/avro/schema.rb:143:in `md5_fingerprint'
>     /Users/busbey/projects/avro/lang/ruby/test/test_fingerprints.rb:26:in `test_md5_fingerprint'
>   2) Error:
> test_sha256_fingerprint(TestFingerprints):
> JSON::GeneratorError: only generation of JSON objects or arrays allowed
>     /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:224:in `generate'
>     /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:224:in `generate'
>     /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:394:in `dump'
>     /Users/busbey/projects/avro/lang/ruby/lib/avro/schema_normalization.rb:28:in `to_parsing_form'
>     /Users/busbey/projects/avro/lang/ruby/lib/avro/schema_normalization.rb:20:in `to_parsing_form'
>     /Users/busbey/projects/avro/lang/ruby/lib/avro/schema.rb:149:in `sha256_fingerprint'
>     /Users/busbey/projects/avro/lang/ruby/test/test_fingerprints.rb:35:in `test_sha256_fingerprint'
>   3) Error:
> test_primitives(TestSchemaNormalization):
> JSON::GeneratorError: only generation of JSON objects or arrays allowed
>     /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:224:in `generate'
>     /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:224:in `generate'
>     /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:394:in `dump'
>     /Users/busbey/projects/avro/lang/ruby/lib/avro/schema_normalization.rb:28:in `to_parsing_form'
>     /Users/busbey/projects/avro/lang/ruby/lib/avro/schema_normalization.rb:20:in `to_parsing_form'
>     /Users/busbey/projects/avro/lang/ruby/test/test_schema_normalization.rb:28:in `block in test_primitives'
>     /Users/busbey/projects/avro/lang/ruby/test/test_schema_normalization.rb:23:in `each'
>     /Users/busbey/projects/avro/lang/ruby/test/test_schema_normalization.rb:23:in `test_primitives'
>   4) Error:
> test_shared_dataset(TestSchemaNormalization):
> NameError: uninitialized constant CaseFinder::StringScanner
>     /Users/busbey/projects/avro/lang/ruby/test/case_finder.rb:11:in `initialize'
>     /Users/busbey/projects/avro/lang/ruby/test/case_finder.rb:7:in `new'
>     /Users/busbey/projects/avro/lang/ruby/test/case_finder.rb:7:in `cases'
>     /Users/busbey/projects/avro/lang/ruby/test/test_schema_normalization.rb:166:in `test_shared_dataset'
> 52 tests, 799 assertions, 0 failures, 4 errors, 0 skips
> {code}
> I'm using 1.9.3 installed via RVM.
> {code}
> Busbey-MBA:ruby busbey$ rvm version
> rvm 1.29.1 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io/]
> Busbey-MBA:ruby busbey$ rvm list
> rvm rubies
> => ruby-1.9.3-p551 [ x86_64 ]
>  * ruby-2.2.1 [ x86_64 ]
> # => - current
> # =* - current && default
> #  * - default
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)