linkedin / linkedin/transport

Several bugs in AvroWrapper.createStdData(Object avroData, Schema avroSchema)

Open
#48 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
306
Forks
75
PR merge metrics
No merged PRs in 30d

Description

1. The method does not correctly handle null value of the input argument avroData
2. When avroSchema is STRING, avroData can be either a Java String or Utf8. If it's a Java String, ClassCastException will occur.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate AvroWrapper.createStdData(Object avroData, Schema avroSchema) and read its current handling of null input and STRING schemas. Verify both cases with focused tests or the existing test suite; done means null input is handled correctly and Java String values no longer cause a ClassCastException when the schema is STRING.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.