[GitHub] [kafka] philipnee commented on pull request #13190: KAFKA-12639: exit upon expired timer to prevent tight looping

2023-02-28 Thread via GitHub


philipnee commented on PR #13190:
URL: https://github.com/apache/kafka/pull/13190#issuecomment-1449191428

   yeah the DefaultStateUpdaterTest has been failing from time to time... not 
sure why  


-- 
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-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [kafka] philipnee commented on pull request #13190: KAFKA-12639: exit upon expired timer to prevent tight looping

2023-02-28 Thread via GitHub


philipnee commented on PR #13190:
URL: https://github.com/apache/kafka/pull/13190#issuecomment-1449185108

   Hmm. I think these tests are flaky actually
   ```
   Build / JDK 17 and Scala 2.13 / 
shouldPauseStandbyTaskAndNotTransitToUpdateStandbyAgain() – 
org.apache.kafka.streams.processor.internals.DefaultStateUpdaterTest
   30s
   Build / JDK 17 and Scala 2.13 / 
shouldPauseActiveTaskAndTransitToUpdateStandby() – 
org.apache.kafka.streams.processor.internals.DefaultStateUpdaterTest
   30s
   Build / JDK 17 and Scala 2.13 / testTaskRequestWithOldStartMsGetsUpdated() – 
org.apache.kafka.trogdor.coordinator.CoordinatorTest
   2m 0s
   Build / JDK 11 and Scala 2.13 / 
testListenerConnectionRateLimitWhenActualRateAboveLimit() – 
kafka.network.ConnectionQuotasTest
   19s
   Build / JDK 11 and Scala 2.13 / 
shouldRemovePausedAndUpdatingTasksOnShutdown() – 
org.apache.kafka.streams.processor.internals.DefaultStateUpdaterTest
   30s
   Build / JDK 11 and Scala 2.13 / 
shouldPauseStandbyTaskAndNotTransitToUpdateStandbyAgain() – 
org.apache.kafka.streams.processor.internals.DefaultStateUpdaterTest
   31s
   ```


-- 
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-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [kafka] philipnee commented on pull request #13190: KAFKA-12639: exit upon expired timer to prevent tight looping

2023-02-27 Thread via GitHub


philipnee commented on PR #13190:
URL: https://github.com/apache/kafka/pull/13190#issuecomment-1447347885

   Here are a couple things I updated:
   1. Added some documentation to clarify the intent, but I didn't rewrite it 
as nested if "can be" harder to read.
   2.  Added non zero timeouts for the tests as our timer now is stricter and 
will explicitly exit upon expiration.


-- 
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-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [kafka] philipnee commented on pull request #13190: KAFKA-12639: exit upon expired timer to prevent tight looping

2023-02-25 Thread via GitHub


philipnee commented on PR #13190:
URL: https://github.com/apache/kafka/pull/13190#issuecomment-1445261315

   The failures seem irrelevant to the change here: i.e. they dont' show up in 
both rounds.
   ```
   Build / JDK 11 and Scala 2.13 / 
testDynamicListenerConnectionCreationRateQuota() – 
kafka.network.DynamicConnectionQuotaTest
   41s
   Build / JDK 17 and Scala 2.13 / testTaskRequestWithOldStartMsGetsUpdated() – 
org.apache.kafka.trogdor.coordinator.CoordinatorTest
   2m 0s
   Build / JDK 8 and Scala 2.12 / [1] Type=ZK, 
Name=testRegisterZkBrokerInKraft, MetadataVersion=3.4-IV0, Security=PLAINTEXT – 
kafka.server.KafkaServerKRaftRegistrationTest
   7s
   Build / JDK 8 and Scala 2.12 / [1] Type=ZK, 
Name=testRegisterZkBrokerInKraft, MetadataVersion=3.4-IV0, Security=PLAINTEXT – 
kafka.server.KafkaServerKRaftRegistrationTest
   12s
   ```


-- 
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-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [kafka] philipnee commented on pull request #13190: KAFKA-12639: exit upon expired timer to prevent tight looping

2023-02-24 Thread via GitHub


philipnee commented on PR #13190:
URL: https://github.com/apache/kafka/pull/13190#issuecomment-1444268607

   Just a bit a note here on this PR: Seems like we need to be more deliberate 
at handling the timeout, because the non-retriable errors are always expected 
to be thrown. (except for the 4 cases), which is why the change triggered 
60-ish breaking tests. Updating the PR to retrigger the 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-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [kafka] philipnee commented on pull request #13190: KAFKA-12639: exit upon expired timer to prevent tight looping

2023-02-22 Thread via GitHub


philipnee commented on PR #13190:
URL: https://github.com/apache/kafka/pull/13190#issuecomment-1440514286

   Hmm, strangely, this branch seems to trigger a bunch of initializing error 
failures. And I can't seem to reproduce them locally...


-- 
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-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [kafka] philipnee commented on pull request #13190: KAFKA-12639: exit upon expired timer to prevent tight looping

2023-02-21 Thread via GitHub


philipnee commented on PR #13190:
URL: https://github.com/apache/kafka/pull/13190#issuecomment-1438909145

   Although, are we ok with handling these 4 exceptions the same way as before? 
I know you previously mentioned that it might be better off to make the rules 
more consistent, and I kind of agree with it.


-- 
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-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [kafka] philipnee commented on pull request #13190: KAFKA-12639: exit upon expired timer to prevent tight looping

2023-02-21 Thread via GitHub


philipnee commented on PR #13190:
URL: https://github.com/apache/kafka/pull/13190#issuecomment-1438907376

   Hey @guozhangwang it's WIP - I think moving the timer check before the 
exception handling block (that 4 exceptions), kind of breaks a bunch of tests, 
as most tests are expecting the complete within a single poll. I'm looking into 
these breakage actually. sorry about the confusion.


-- 
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-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [kafka] philipnee commented on pull request #13190: KAFKA-12639: exit upon expired timer to prevent tight looping

2023-02-17 Thread via GitHub


philipnee commented on PR #13190:
URL: https://github.com/apache/kafka/pull/13190#issuecomment-1435477923

   Moving the time check just broke a bunch of unit 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-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [kafka] philipnee commented on pull request #13190: KAFKA-12639: exit upon expired timer to prevent tight looping

2023-02-17 Thread via GitHub


philipnee commented on PR #13190:
URL: https://github.com/apache/kafka/pull/13190#issuecomment-1435229905

   Thanks, @guozhangwang, that's my understanding as well.


-- 
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-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [kafka] philipnee commented on pull request #13190: KAFKA-12639: exit upon expired timer to prevent tight looping

2023-02-12 Thread via GitHub


philipnee commented on PR #13190:
URL: https://github.com/apache/kafka/pull/13190#issuecomment-1427307821

   Thanks @guozhangwang for the feedback - Added some tests there to cover the 
untesed cases.  I still have a quick question around this block, is it 
intentional to continue w/o sleep on the backoff timer? (quoting the original 
code)
   
   ```
   if (exception instanceof UnknownMemberIdException ||
   exception instanceof IllegalGenerationException ||
   exception instanceof RebalanceInProgressException ||
   exception instanceof MemberIdRequiredException)
   continue;
   else if (!future.isRetriable())
   throw exception;
   
   timer.sleep(rebalanceConfig.retryBackoffMs);
   ```


-- 
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-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [kafka] philipnee commented on pull request #13190: KAFKA-12639: exit upon expired timer to prevent tight looping

2023-02-02 Thread via GitHub


philipnee commented on PR #13190:
URL: https://github.com/apache/kafka/pull/13190#issuecomment-1414556430

   @guozhangwang - would you have time to review this 梁 ?


-- 
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-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org