-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bytter til channels for å vente på shutdown
vi har observert i prod at kafka-rapid ikke stopper før shutdown-hooken har returnert. kafka-rapid stopper konsumenttråden ved å kalle på Consumer.wakeup(), og prestop-hooken kaller på CountDownLatch.await(). vi har en teori om at disse java-tråd-apiene (CountDownLatch.await()) blokkerer underliggende javatråd (og ikke coroutine), og rare ting skjer. uansett tenker vi at det er best å bruke kotlin-API så lenge vi er coroutines, enn å bruke en blanding.
- Loading branch information
1 parent
11009b4
commit 7c8474f
Showing
1 changed file
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters