You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "pegasas (via GitHub)" <gi...@apache.org> on 2024/08/30 13:02:46 UTC
[PR] Kafka 12822 2 [kafka]
pegasas opened a new pull request, #17059:
URL: https://github.com/apache/kafka/pull/17059
KAFKA-12829: Remove deprecated StreamsBuilder#addGlobalStore of old Processor API
### Committer Checklist (excluded from commit message)
- [ ] Verify design and implementation
- [ ] Verify test coverage and CI build status
- [ ] Verify documentation (including upgrade notes)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-12829: Remove deprecated StreamsBuilder#addGlobalStore of old Processor API [kafka]
Posted by "pegasas (via GitHub)" <gi...@apache.org>.
pegasas commented on PR #17059:
URL: https://github.com/apache/kafka/pull/17059#issuecomment-2330788724
> @pegasas Could you please remove `addGlobalStore` from `StreamBuilder.java` too? see https://github.com/apache/kafka/blob/trunk/streams/src/main/java/org/apache/kafka/streams/StreamsBuilder.java#L556
Sure.
Thanks for reviewing.
I‘ve removed this deprecated method.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-12829: Remove deprecated StreamsBuilder#addGlobalStore of old Processor API [kafka]
Posted by "mjsax (via GitHub)" <gi...@apache.org>.
mjsax commented on PR #17059:
URL: https://github.com/apache/kafka/pull/17059#issuecomment-2335034080
@pegasas -- There is also checkstyle error. Please take a look, too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-12829: Remove deprecated StreamsBuilder#addGlobalStore of old Processor API [kafka]
Posted by "mjsax (via GitHub)" <gi...@apache.org>.
mjsax commented on PR #17059:
URL: https://github.com/apache/kafka/pull/17059#issuecomment-2344725399
Thanks for the PR! Merged to `trunk`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-12829: Remove deprecated StreamsBuilder#addGlobalStore of old Processor API [kafka]
Posted by "mjsax (via GitHub)" <gi...@apache.org>.
mjsax merged PR #17059:
URL: https://github.com/apache/kafka/pull/17059
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-12829: Remove deprecated StreamsBuilder#addGlobalStore of old Processor API [kafka]
Posted by "chia7712 (via GitHub)" <gi...@apache.org>.
chia7712 commented on PR #17059:
URL: https://github.com/apache/kafka/pull/17059#issuecomment-2323167852
@pegasas Could you please remove `addGlobalStore` from `StreamBuilder.java` too? see https://github.com/apache/kafka/blob/trunk/streams/src/main/java/org/apache/kafka/streams/StreamsBuilder.java#L556
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-12829: Remove deprecated StreamsBuilder#addGlobalStore of old Processor API [kafka]
Posted by "mjsax (via GitHub)" <gi...@apache.org>.
mjsax commented on code in PR #17059:
URL: https://github.com/apache/kafka/pull/17059#discussion_r1745888455
##########
streams/src/test/java/org/apache/kafka/streams/integration/StreamsUncaughtExceptionHandlerIntegrationTest.java:
##########
@@ -198,35 +195,6 @@ public void shouldShutdownSingleThreadApplication() throws Exception {
testShutdownApplication(1);
}
- @Test
- public void shouldShutDownClientIfGlobalStreamThreadWantsToReplaceThread() throws Exception {
Review Comment:
Why are we removing this test? I think we should just update the code to call to new/remaining overload of `addGlobalStore()` instead.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-12829: Remove deprecated StreamsBuilder#addGlobalStore of old Processor API [kafka]
Posted by "mjsax (via GitHub)" <gi...@apache.org>.
mjsax commented on code in PR #17059:
URL: https://github.com/apache/kafka/pull/17059#discussion_r1745890187
##########
streams/src/test/java/org/apache/kafka/streams/integration/StreamsUncaughtExceptionHandlerIntegrationTest.java:
##########
@@ -198,35 +195,6 @@ public void shouldShutdownSingleThreadApplication() throws Exception {
testShutdownApplication(1);
}
- @Test
- public void shouldShutDownClientIfGlobalStreamThreadWantsToReplaceThread() throws Exception {
- builder.addGlobalStore(
- new KeyValueStoreBuilder<>(
- Stores.persistentKeyValueStore("globalStore"),
- Serdes.String(),
- Serdes.String(),
- CLUSTER.time
- ),
- inputTopic2,
- Consumed.with(Serdes.String(), Serdes.String()),
- () -> new ShutdownProcessor(processorValueCollector)
Review Comment:
Seems we need to change `ShutdownProcessor` to let it implement the new `api.Processor` interface to make this work.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-12829: Remove deprecated StreamsBuilder#addGlobalStore of old Processor API [kafka]
Posted by "pegasas (via GitHub)" <gi...@apache.org>.
pegasas commented on PR #17059:
URL: https://github.com/apache/kafka/pull/17059#issuecomment-2343272830


fix lint & test.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] KAFKA-12829: Remove deprecated StreamsBuilder#addGlobalStore of old Processor API [kafka]
Posted by "pegasas (via GitHub)" <gi...@apache.org>.
pegasas commented on PR #17059:
URL: https://github.com/apache/kafka/pull/17059#issuecomment-2336743967
> @pegasas -- There is also checkstyle error. Please take a look, too.

fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Kafka 12822 2 [kafka]
Posted by "pegasas (via GitHub)" <gi...@apache.org>.
pegasas commented on PR #17059:
URL: https://github.com/apache/kafka/pull/17059#issuecomment-2321259947

CI passed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org