Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8345500: Timeout in jdk.jfr.api.consumer.streaming.TestJVMCrash #23163

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gerard-ziemski
Copy link

@gerard-ziemski gerard-ziemski commented Jan 16, 2025

In this fix we add 1 second delay after we create a process.

On macOS we seem to be creating a process so quickly, that other threads need time to see it.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8345500: Timeout in jdk.jfr.api.consumer.streaming.TestJVMCrash (Bug - P3)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/23163/head:pull/23163
$ git checkout pull/23163

Update a local copy of the PR:
$ git checkout pull/23163
$ git pull https://git.openjdk.org/jdk.git pull/23163/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 23163

View PR using the GUI difftool:
$ git pr show -t 23163

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/23163.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jan 16, 2025

👋 Welcome back gziemski! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Jan 16, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk
Copy link

openjdk bot commented Jan 16, 2025

@gerard-ziemski The following label will be automatically applied to this pull request:

  • hotspot-jfr

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@gerard-ziemski gerard-ziemski marked this pull request as ready for review January 16, 2025 19:42
@openjdk openjdk bot added the rfr Pull request is ready for review label Jan 16, 2025
@mlbridge
Copy link

mlbridge bot commented Jan 16, 2025

Webrevs

@egahlin
Copy link
Member

egahlin commented Jan 16, 2025

I don't think this is the correct way to fix the issue. Users may write code that doesn't wait 1 s and run into the same problem. Why shouldn't a client be able to poll repeatedly? Also, it's only a matter of time before it happens again, either because the hardware is slow or because the processes are starved due to other things running on the machine.

@gerard-ziemski
Copy link
Author

I don't think this is the correct way to fix the issue. Users may write code that doesn't wait 1 s and run into the same problem. Why shouldn't a client be able to poll repeatedly? Also, it's only a matter of time before it happens again, either because the hardware is slow or because the processes are starved due to other things running on the machine.

To be honest I'm not 100% happy with the fix, it was just the simplest one that I could think of. Let me look into it a bit more.

@gerard-ziemski gerard-ziemski marked this pull request as draft January 16, 2025 23:00
@openjdk openjdk bot removed the rfr Pull request is ready for review label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants