Skip to content

Conversation

@Pepo48
Copy link
Contributor

@Pepo48 Pepo48 commented Jan 23, 2024

  • increased the timeout to let Keycloak stop

Closes #26374

@Pepo48 Pepo48 requested review from a team as code owners January 23, 2024 08:24
@ghost ghost added the team/cloud-native label Jan 23, 2024
@Pepo48 Pepo48 requested a review from shawkins January 23, 2024 08:33
ahus1
ahus1 previously requested changes Jan 23, 2024
Copy link
Contributor

@ahus1 ahus1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to see a comment in the code how the 3 minutes are determined.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is IMHO missing a comment why you whose 3 minutes here. Otherwise people will wonder in the future why this is here.

Looking at application.properties, the transaction timeout is 300 seconds, which is 5 minutes.

Waiting for 3 minutes here, and (given your comment in the issue) waiting for 2 minutes at another place, would add up to 5 minutes, which matches the 300 seconds. Maybe it would be good to add one more minute to he on the safe side. Whatever your reasoning is here, state the "why" for those minutes you choose here in a comment.

Copy link
Contributor Author

@Pepo48 Pepo48 Jan 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here I wrongly increased the timeout on the kill command while we actually need to increase the timeout for the stop command. The reason is the mentioned Narayana bug, which makes the process hang longer. I already made the change, I also added a comment that the timeout can be reverted once the bug is addressed.

Speaking about the timeout length, 180 seconds should be just enough. From the perspective of other tests, the used .waitFor() will continue as soon as the process terminates. This way the other tests shouldn't be influenced.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Pepo48 - I see that the code has changed, but I'd still like to see a comment in the code detailing the "why" you chose 180 seconds so our future selfs and other will know.

I someone wants to comment why such a comment is not necessary, I'm open to hear that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is in any case just a workaround that should go away once jbosstm/narayana#2201 is resolved.

Couldn't find an issue to remove the workaround. @shawkins Did we create one, I'm not sure. :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't find an issue to remove the workaround. @shawkins Did we create one, I'm not sure. :)

Not yet, just the comments in the code about the upstream issue.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created #26454

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ahus1 As far as I understand, the 180 seconds is just an "educated guess" (as with anything when dealing with async stuff in testsuite). Do you want to add a comment with that? :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was hoping something different than an educated guess, let's leave it as is.

* increased the timeout to let Keycloak stop

Closes keycloak#26374

Signed-off-by: Peter Zaoral <[email protected]>
Copy link
Contributor

@shawkins shawkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. If test runtimes become an issue we can put in more proactive destroyForcibly calls.

Copy link
Contributor

@ahus1 ahus1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going "neutral" after previous discussion.

@ahus1 ahus1 dismissed their stale review January 24, 2024 15:53

going neutral

@ahus1 ahus1 merged commit d23383e into keycloak:main Jan 24, 2024
@Pepo48 Pepo48 deleted the issue-26374 branch February 5, 2024 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workflow failure: Quarkus IT - FipsDistTest#testUnsupportedHttpsPkcs12KeyStoreInStrictMode

5 participants