Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-538

No way to raise errors in a Ruby IPC server such that they get returned as an avro error type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4.0
    • None
    • ruby
    • None
    • Mac OS X

    Description

      Raising an AvroError or even a subclass thereof doesn't simply return a nice clean Error to the client despite errors being specified in the schema.

      Instead, the client sees:

      .../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/io.rb:46:in `byte!': undefined method `[]' for nil:NilClass (NoMethodError)
      .../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/io.rb:63:in `read_long'
      .../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/io.rb:379:in `read_union'
      .../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/io.rb:315:in `read_data'
      .../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/io.rb:281:in `read'
      .../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:224:in `read_error'
      .../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:213:in `read_call_response'
      .../lib/ruby/gems/1.8/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:113:in `request'

      Attachments

        Activity

          People

            Unassigned Unassigned
            raelity Rael Dornfest
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: