Skip to content

Fixes wrong parse exception type being caught by TranquilityEventWriter#250

Open
SpotXPeterCunningham wants to merge 2 commits intodruid-io:druid-0.10.1from
spotxmobile:druid-0.10.1
Open

Fixes wrong parse exception type being caught by TranquilityEventWriter#250
SpotXPeterCunningham wants to merge 2 commits intodruid-io:druid-0.10.1from
spotxmobile:druid-0.10.1

Conversation

@SpotXPeterCunningham
Copy link

Avro extensions from the Druid codebase throw a ParseException
from the io.druid.java.util.common.parsers package, the Tranquility
code is not catching this as it is expecting the ParseException to
be from the com.metamx.common.parsers package.

This means that broken messages will halt processing regardless of the
reportParseExceptions setting as the exception goes uncaught.

Fixed this to use the ParseException from io.druid.java.util.common.parsers
package

Avro extensions from the Druid codebase throw a ParseException
from the io.druid.java.util.common.parsers package, the Tranquility
code is not catching this as it is expecting the ParseException to
be from the com.metamx.common.parsers package.

This means that broken messages will halt processing regardless of the
reportParseExceptions setting as the exception goes uncaught.

Fixed this to use the ParseException from io.druid.java.util.common.parsers
package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant