Skip to content

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

Closed
ijuma wants to merge 4 commits intoapache:trunkfrom
ijuma:kafka-1595-remove-deprecated-json-parser-jackson
Closed

KAFKA-1595; Remove deprecated and slower scala JSON parser#74
ijuma wants to merge 4 commits intoapache:trunkfrom
ijuma:kafka-1595-remove-deprecated-json-parser-jackson

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 <[email protected]>

Co-authored-by: Lucas Brutschy <[email protected]>
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)
davide-armand pushed a commit to aiven/kafka that referenced this pull request Dec 1, 2025
As we will have different control plane implementation, it would be great to have a common base set of tests for them.
fvaleri pushed a commit to fvaleri/kafka that referenced this pull request Feb 4, 2026
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