Commit Graph

30 Commits

Author SHA1 Message Date
Artem Bilan
6056fe258e Add a sample about Micrometer observation integration (#3699)
* Add a sample about Micrometer observation integration

* Fix typos in README.adoc
2025-01-07 18:49:27 -05:00
Soby Chacko
92c0bbf36a Optimize imports based on new checkstyle rules 2024-10-18 14:58:46 -04:00
Soby Chacko
16cb612a20 More cleanup - sample 07 (new consumer protocol) 2024-05-20 11:44:08 -04:00
Soby Chacko
acead71a6b Cleanup - sample 07 (new consumer protocol)
* Remove unnecessary test dependencies
* Update @since tag
2024-05-20 11:31:54 -04:00
ChickenchickenLove
00fd11b51c GH-3145 : Sample for next gen consumer-group rebalance protocol
Fixes: #3145 

* Add a sample demonstrating the next-generation consumer-group rebalance protocol.
* Provide a docker-compose script for spinning up a `kraft` based Kafka broker since the new consumer 
  protocol only works in `kraft` mode. 
* Add README explaining the sample.
2024-05-20 11:03:20 -04:00
Nacho Munoz
e547d0a96d Kafka Streams sample demo for TopologyTestDriver
Fixes: #1853

* Demonstrating Kafka Streams `TopologyTestDriver`
* README updates in the sample
* Update Spring Boot parent version of the samples to 3.2.5
2024-04-29 17:03:19 -04:00
Soby Chacko
5962e75681 Updates version on sample projects
* Update sample projects to the current snapshot version (3.2.0-SNAPSHOT)
2024-04-24 16:31:45 -04:00
Artem Bilan
8a684b3d1e Fix Global Embedded Kafka sample for current Spring Boot
* We don't need to worry about `spring.embedded.kafka.brokers` since Embedded Kafka
populates `spring.kafka.bootstrap-servers` as well
2024-01-29 09:41:54 -05:00
jito
88d58c6e05 Update Spring Boot of the samples to 3.2.1 2023-12-22 12:15:11 -05:00
김희망
3a11dd7c5c Update sample docs for console output format 2023-09-18 10:30:14 -04:00
Gary Russell
016e9b44c5 GH-2508: Upgrade Samples to 3.0.x
Resolves https://github.com/spring-projects/spring-kafka/issues/2508
2022-12-20 13:34:33 -05:00
Artem Bilan
0f69553736 GH-666: Single global embedded Kafka with JUnit 5 (#2308)
* GH-666: Single global embedded Kafka with JUnit 5

Fixes https://github.com/spring-projects/spring-kafka/issues/666

* Introduce a `GlobalEmbeddedKafkaTestExecutionListener` which is registered
by the service loader from JUnit Platform
* Make its activation conditional based on the `spring.kafka.global.embedded.enabled`
system property
* Expose some other configuration properties for the target global `EmbeddedKafkaBroker`
* Verify its functionality via manual `Launcher.execute()`
* Add more `@DirtiesContext` to some tests in the `spring-kafka-test` which don't close
their embedded brokers on the exit

* * Print local launcher summary into SOUT for tracing the nested problems

* * Fix prefix for `file:` resource in the test

* * Make `junit-platform-launcher` as provided dep -
this is part of JUnit platform the test plan is going to be run
* Add missed new line in the end of `junit-platform.properties`
* Rethrow an exception from the local launcher in the `GlobalEmbeddedKafkaTestExecutionListenerTests`
to fail if its suite test classes have failed.

* * Fix JavaDocs for `GlobalEmbeddedKafkaTestExecutionListener` constants
* Move system properties clean up in the `GlobalEmbeddedKafkaTestExecutionListenerTests` into `@AfterAll`
* Add docs for this new feature
* Add `sample-05` to demonstrate global embedded Kafka in action via Maven configuration

* * Mention `sample-05` in the common `README.adoc` for samples

* * Fix language in the `testing.adoc`
* Add new lines into new files
* Add `spring.kafka.consumer.auto-offset-reset=earliest` to make a consumer to start from the beginning of the partition:
fixes a race condition when publishing happens before consumer is started
* Make `mvnw` as an executable
* Add `spring.embedded.kafka.brokers.property` explanation into docs

* * Fix language in docs

Co-authored-by: Gary Russell <grussell@vmware.com>

* * Make `Sample05Application2Tests` passing
* Remove `deliberately failing` sentence from the JavaDoc an README
* Clean up unused imports

Co-authored-by: Gary Russell <grussell@vmware.com>
2022-06-22 17:14:14 -04:00
Gary Russell
ae80c5d005 More sample-01 README Fixes
Boot auto configures a string deserializer so we now explicitly configure
the byte array serializer.
2022-02-25 11:58:18 -05:00
Gary Russell
cc912425d0 Fix sample-01 README
Now using the more efficient byte array.
2022-02-25 11:57:03 -05:00
Gary Russell
910030eb25 Polish Samples
- use a generic `JsonMessageConverter` which can handle several input types.
2021-12-08 15:09:54 -05:00
Gary Russell
9aab9f66d7 GH-1817: Fix typo; revert unintended sample changes 2021-06-04 14:15:40 -04:00
Gary Russell
ad1ae60cd8 GH-1817: Allow Annotation Attribute Modification
Resolves https://github.com/spring-projects/spring-kafka/issues/1817

* Fix flaky reactor test - add a delay to prevent canceling the consumer before offsets sent.

* Simplify for developers; support multiple enhancers; add coverage for repeated listeners.

* Docs for new changes.

* Doc that enhancer bean definitions must be static; add test.
2021-06-04 10:52:50 -04:00
Gary Russell
2faa4f01c9 Add sample-04: Topic Delayed Non-Blocking Retry 2021-05-11 16:44:59 -04:00
Gary Russell
b399f2996e Polish Samples 2021-03-05 12:59:15 -05:00
Gary Russell
a58063c608 Upgrade Boot Version in Samples; Fix Tests
- don't run `ApplicationRunner.System.in.read()` from tests.
2021-02-02 10:48:06 -05:00
Gary Russell
0f43e34351 Update samples to Boot 2.3.0 2020-05-20 15:08:36 -04:00
Gary Russell
682d68f630 Update samples to use current boot autoconfigure
- auto config of error handler and message converter based on listener type.
2020-03-29 11:13:43 -04:00
Gary Russell
4f971568de Remove super() 2019-12-27 12:43:51 -05:00
Gary Russell
78a0f15ad9 Upgrade samples to Boot 2.2.0.RELEASE 2019-10-29 12:24:05 -04:00
Gary Russell
0feba30e76 Upgrade samples 2019-10-02 10:36:13 -04:00
Gary Russell
693afce6b9 Revert new file added by mistake 2019-06-14 10:47:32 -04:00
Gary Russell
db787fa181 Upgrade to Spring Data Moore RC1 2019-06-14 10:33:33 -04:00
Artem Bilan
b0dbea842d URL Cleanup
This commit updates URLs to prefer the https protocol.
Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status.
While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 245 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-21 18:50:44 -04:00
Spring Operator
b7b830b8e2 URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed But Review Recommended
These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended.

* http://www.puppycrawl.com/dtds/configuration_1_2.dtd (404) with 1 occurrences migrated to:
  https://www.puppycrawl.com/dtds/configuration_1_2.dtd ([https](https://www.puppycrawl.com/dtds/configuration_1_2.dtd) result 404).
* http://www.puppycrawl.com/dtds/suppressions_1_1.dtd (404) with 1 occurrences migrated to:
  https://www.puppycrawl.com/dtds/suppressions_1_1.dtd ([https](https://www.puppycrawl.com/dtds/suppressions_1_1.dtd) result 404).

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/maven-4.0.0.xsd with 3 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 6 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 3 occurrences

* Use the latest Checkstyle DTDs with their HTTPS variants
2019-03-20 10:57:25 -04:00
Gary Russell
56f5bfb8c5 Add Samples
* Polishing - PR Comments
2018-11-05 14:11:17 -05:00