Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KAFKA-1595; Remove deprecated and slower scala JSON parser #74

Conversation

ijuma
Copy link
Member

@ijuma ijuma commented Jul 14, 2015

A thin wrapper over Jackson's Tree Model API is used as the replacement. This wrapper
increases safety while providing a simple, but powerful API through the usage of the
DecodeJson type class. Even though this has a maintenance cost, it makes the API
much more convenient from Scala. A number of tests were added to verify the
behaviour of this wrapper.

The Scala module for Jackson doesn't provide any help for our current usage, so we don't
depend on it.

An attempt has been made to maintain the existing behaviour regarding when exceptions
are thrown. There are a number of cases where JsonMappingException will be thrown
instead of ClassCastException, however. It is expected that users would not try to catch
ClassCastException.

ijuma added 4 commits July 10, 2015 10:09
Simple test that shows existing behaviour.
….consumer.TopicCount

A thin wrapper over Jackson's Tree Model API is used as the replacement. This wrapper
increases safety while providing a simple, but powerful API through the usage of the
`DecodeJson` type class. Even though this has a maintenance cost, it makes the API
much more convenient from Scala. A number of tests were added to verify the
behaviour of this wrapper.

The Scala module for Jackson doesn't provide any help for our current usage, so we don't
depend on it.

An attempt has been made to maintain the existing behaviour regarding when exceptions
are thrown. There are a number of cases where `JsonMappingException` will be thrown
instead of `ClassCastException`, however. It is expected that users would not try to catch
`ClassCastException`.
@ijuma ijuma closed this Jul 14, 2015
resetius added a commit to resetius/kafka that referenced this pull request Dec 5, 2016
…2-no-flush-on-shutdown

[LOGBROKER-2032] Add unclean.shutdown.enable config option which disables log flush on shutdown (off by default)
rustd pushed a commit to rustd/pranavfinaldemokafka that referenced this pull request Feb 9, 2024
…pache#74)

In two situations, the current code could transition the ChangelogReader
to UpdateStandby when already in that state, causing an IllegalStateException. 
Namely these two cases are:

1. When only standby tasks are restoring and one of them crashes.
2. When only standby tasks are restoring and one of them is paused.

This change fixes both issues by only transitioning if the paused or
failed task is an active task.

Reviewer: Bruno Cadonna <cadonna@apache.org>

Co-authored-by: Lucas Brutschy <lucasbru@users.noreply.github.com>
patrik-marton pushed a commit to patrik-marton/kafka that referenced this pull request Mar 11, 2025
CSMDS-564: Fix GHA runner label for unit tests (apache#74)
CSMDS-885: Jenkins unit tester action - patching api4jenkins with MavenModuleSetBuild (apache#129)
CSMDS-882: Updating workflow runner to redhat8-builds (apache#128)
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