You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "divijvaidya (via GitHub)" <gi...@apache.org> on 2023/07/07 15:28:47 UTC

[GitHub] [kafka] divijvaidya opened a new pull request, #13976: MINOR: Check for thread leak at the end of @AfterEach, not at beginning

divijvaidya opened a new pull request, #13976:
URL: https://github.com/apache/kafka/pull/13976

   This fixes a regression in usage introduced in #13868
   
   `TestUtils.assertNoNonDaemonThreads` should only used at the end of `@AfterEach` so that even if an assertion failure occurs, it does not prevent the other shutdown steps to proceed correctly.


-- 
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


[GitHub] [kafka] divijvaidya commented on pull request #13976: MINOR: Check for thread leak at the end of @AfterEach, not at beginning

Posted by "divijvaidya (via GitHub)" <gi...@apache.org>.
divijvaidya commented on PR #13976:
URL: https://github.com/apache/kafka/pull/13976#issuecomment-1625584575

   @jolshan since you reviewed #13868, would you also kindle review this PR?


-- 
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


[GitHub] [kafka] divijvaidya commented on a diff in pull request #13976: MINOR: Check for thread leak at the end of @AfterEach, not at beginning

Posted by "divijvaidya (via GitHub)" <gi...@apache.org>.
divijvaidya commented on code in PR #13976:
URL: https://github.com/apache/kafka/pull/13976#discussion_r1257220370


##########
core/src/test/scala/unit/kafka/server/ReplicaManagerTest.scala:
##########
@@ -113,10 +113,11 @@ class ReplicaManagerTest {
   @AfterEach
   def tearDown(): Unit = {
     // validate that the shutdown is working correctly by ensuring no lingering threads.

Review Comment:
   of course. Done in latest commit.



-- 
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


[GitHub] [kafka] dajac commented on a diff in pull request #13976: MINOR: Check for thread leak at the end of @AfterEach, not at beginning

Posted by "dajac (via GitHub)" <gi...@apache.org>.
dajac commented on code in PR #13976:
URL: https://github.com/apache/kafka/pull/13976#discussion_r1256903064


##########
core/src/test/scala/unit/kafka/server/ReplicaManagerTest.scala:
##########
@@ -113,10 +113,11 @@ class ReplicaManagerTest {
   @AfterEach
   def tearDown(): Unit = {
     // validate that the shutdown is working correctly by ensuring no lingering threads.

Review Comment:
   Should we move this comment?



-- 
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


[GitHub] [kafka] divijvaidya merged pull request #13976: MINOR: Check for thread leak at the end of @AfterEach, not at beginning

Posted by "divijvaidya (via GitHub)" <gi...@apache.org>.
divijvaidya merged PR #13976:
URL: https://github.com/apache/kafka/pull/13976


-- 
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