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

8244508: JFR: FlightRecorderOptions reset date format #2121

Closed
wants to merge 1 commit into from

Conversation

pushkarnk
Copy link
Contributor

@pushkarnk pushkarnk commented Sep 5, 2023

Hello all,

This backport request is related to JDK-8244508 [1]. When using JFR (-XX:StartFlightRecording), the configured default Locale is not honored, with FormatData or TimezoneNames(for example), because the relevant ResourceBundles do not get loaded when an attempt is made to locate and load them during VM startup (i.e when -XX:StartFlightRecording triggers JFR initialiazation). Though [1] quotes a mailing-list post [2] mentioning this issue was not seen with jdk11 then, the testcase in [1] does fail with 11.0.20 (as well as 11.0.22/master branch) as of today:

$ java --show-version -Duser.country=DE -Duser.language=de -XX:FlightRecorderOptions=stackdepth=128 Main
openjdk 11.0.22-internal 2024-01-16
OpenJDK Runtime Environment (build 11.0.22-internal+0-adhoc.pushkarnk.jdk11u-dev)
OpenJDK 64-Bit Server VM (build 11.0.22-internal+0-adhoc.pushkarnk.jdk11u-dev, mixed mode)
expected: 01.01.2020, 00:00:00
actual:   2020 Jan 1 00:00:00 

Testing: Linux x86-64 build, tier1 tests with release and fastdebug builds.

[1] https://bugs.openjdk.org/browse/JDK-8244508
[2] https://mail.openjdk.org/pipermail/hotspot-jfr-dev/2020-March/001313.html


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
  • JDK-8244508 needs maintainer approval

Issue

  • JDK-8244508: JFR: FlightRecorderOptions reset date format (Bug - P3 - Approved)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/2121/head:pull/2121
$ git checkout pull/2121

Update a local copy of the PR:
$ git checkout pull/2121
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/2121/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2121

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/2121.diff

Webrev

Link to Webrev Comment

@bridgekeeper bridgekeeper bot added the oca Needs verification of OCA signatory status label Sep 5, 2023
@bridgekeeper
Copy link

bridgekeeper bot commented Sep 5, 2023

Hi @pushkarnk, welcome to this OpenJDK project and thanks for contributing!

We do not recognize you as Contributor and need to ensure you have signed the Oracle Contributor Agreement (OCA). If you have not signed the OCA, please follow the instructions. Please fill in your GitHub username in the "Username" field of the application. Once you have signed the OCA, please let us know by writing /signed in a comment in this pull request.

If you already are an OpenJDK Author, Committer or Reviewer, please click here to open a new issue so that we can record that fact. Please use "Add GitHub user pushkarnk" as summary for the issue.

If you are contributing this work on behalf of your employer and your employer has signed the OCA, please let us know by writing /covered in a comment in this pull request.

@openjdk openjdk bot changed the title Backport f3519016c7766934d0aa3014b1a0593d91a0556c 8244508: JFR: FlightRecorderOptions reset date format Sep 5, 2023
@openjdk
Copy link

openjdk bot commented Sep 5, 2023

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added the backport label Sep 5, 2023
@pushkarnk
Copy link
Contributor Author

pushkarnk commented Sep 5, 2023

/covered

@bridgekeeper bridgekeeper bot removed the oca Needs verification of OCA signatory status label Sep 7, 2023
@openjdk openjdk bot added the rfr Pull request is ready for review label Sep 7, 2023
@mlbridge
Copy link

mlbridge bot commented Sep 7, 2023

Webrevs

@pushkarnk
Copy link
Contributor Author

Hello Maintainers,

Apologies for the ping. I was hoping to get some feedback on this backport request. Thanks!

@pushkarnk
Copy link
Contributor Author

Hello Maintainers,

Apologies for the ping. I was hoping to get some feedback on this backport request. Please do let me know if there are questions. cc @RealCLanger @GoeLin

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 24, 2023

@pushkarnk This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@pushkarnk
Copy link
Contributor Author

@pushkarnk This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

I'd appreciate feedback on this backport request. Thank you.

@RealCLanger
Copy link
Contributor

Hi @pushkarnk,

I think this backport is appropriate. Can you please run Github Actions verification? (E.g. enable actions here: https://github.com/pushkarnk/jdk11u-dev/actions and then merge the PR with master).

Furthermore, I'm wondering why the backport is not marked as clean. What did you have to resolve?

Cheers
Christoph

@pushkarnk
Copy link
Contributor Author

/issue JDK-8244508

@openjdk
Copy link

openjdk bot commented Oct 27, 2023

@pushkarnk This issue is referenced in the PR title - it will now be updated.

@pushkarnk
Copy link
Contributor Author

pushkarnk commented Oct 27, 2023

Hi @RealCLanger,

I've run the checks.

The original commit removed an unused import in DCmdConfigure.java which does not exist in jdk11. That's the only conflict I had to resolve.

Thanks!
~ Pushkar

@RealCLanger
Copy link
Contributor

OK, looks good. I'll run the backport through our tests and will approve when no regressions spotted.

@pushkarnk
Copy link
Contributor Author

OK, looks good. I'll run the backport through our tests and will approve when no regressions spotted.

Hi @RealCLanger, any news on this?

Copy link
Contributor

@RealCLanger RealCLanger left a comment

Choose a reason for hiding this comment

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

Oh, sorry and thanks for the ping. I completely forgot about this. Tests are looking good.

@openjdk
Copy link

openjdk bot commented Nov 8, 2023

⚠️ @pushkarnk This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@pushkarnk
Copy link
Contributor Author

/approval request

@openjdk
Copy link

openjdk bot commented Nov 16, 2023

@pushkarnk
8244508: The approval request has been created successfully.

@openjdk openjdk bot added the approval label Nov 16, 2023
@RealCLanger
Copy link
Contributor

/approval request

@pushkarnk, you are supposed to also add some comment as part of the approval request to provide the maintainers some information. That includes some reasoning why you want this backport plus a risk assessment and information about the testing you did. So, please update or re-issue the /approval command with some text. Thx.

@GoeLin
Copy link
Member

GoeLin commented Nov 17, 2023

/approve yes

@openjdk
Copy link

openjdk bot commented Nov 17, 2023

@GoeLin
8244508: The approval request has been approved.

@openjdk
Copy link

openjdk bot commented Nov 17, 2023

⚠️ @pushkarnk the full name on your profile does not match the author name in this pull requests' HEAD commit. If this pull request gets integrated then the author name from this pull requests' HEAD commit will be used for the resulting commit. If you wish to push a new commit with a different author name, then please run the following commands in a local repository of your personal fork:

$ git checkout backport-8244508-fix
$ git commit --author='Preferred Full Name <you@example.com>' --allow-empty -m 'Update full name'
$ git push

@openjdk
Copy link

openjdk bot commented Nov 17, 2023

@pushkarnk This change now passes all automated pre-integration checks.

After integration, the commit message for the final commit will be:

8244508: JFR: FlightRecorderOptions reset date format

Reviewed-by: clanger

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 151 new commits pushed to the master branch:

  • 10ddd51: 8275329: ZGC: vmTestbase/gc/gctests/SoftReference/soft004/soft004.java fails with assert(_phases->length() <= 1000) failed: Too many recored phases?
  • 45e3cbf: 8294427: Check boxes and radio buttons have rendering issues on Windows in High DPI env
  • 046b213: 8268916: Tests for AffirmTrust roots
  • 5a7b227: 8168408: Test java/awt/Focus/ActualFocusedWindowTest/ActualFocusedWindowBlockingTest.java fails intermittentently on windows
  • 1b6ff86: 8260035: Deproblemlist few problemlisted test
  • 4aa3196: 8258914: javax/net/ssl/DTLS/RespondToRetransmit.java timed out
  • 5d14b13: 8275333: Print count in "Too many recored phases?" assert
  • 27bfce0: 8210265: Crash in HSpaceCounters::update_used()
  • 2b9d54a: 8306134: Open source some AWT tests relating to Button and a few other classes
  • a2ef248: 6381945: (cal) Japanese calendar unit test system should avoid multiple static imports
  • ... and 141 more: https://git.openjdk.org/jdk11u-dev/compare/5327f67b9e40ad756c6616779f3a2a44cdd257f7...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@RealCLanger) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added ready Pull request is ready to be integrated and removed approval labels Nov 17, 2023
@pushkarnk
Copy link
Contributor Author

/approval request

@pushkarnk, you are supposed to also add some comment as part of the approval request to provide the maintainers some information. That includes some reasoning why you want this backport plus a risk assessment and information about the testing you did. So, please update or re-issue the /approval command with some text. Thx.

Thanks Chris. I guess this backport request has been approved now. I'll keep this in mind for all future work.

@pushkarnk
Copy link
Contributor Author

I requested for this backport because an Ubuntu user reported this bug of JFR not honoring a configured default Locale. Locally, I ran the tier1 tests on Linux x86-64 with release and fastdebug builds.

@pushkarnk
Copy link
Contributor Author

/integrate

@RealCLanger
Copy link
Contributor

/sponsor

@openjdk
Copy link

openjdk bot commented Nov 20, 2023

@RealCLanger The change author (@pushkarnk) must issue an integrate command before the integration can be sponsored.

@pushkarnk
Copy link
Contributor Author

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Nov 20, 2023
@openjdk
Copy link

openjdk bot commented Nov 20, 2023

@pushkarnk
Your change (at version ff14329) is now ready to be sponsored by a Committer.

@RealCLanger
Copy link
Contributor

Weird that it didn't take your initial /integrate. So be it.

/sponsor

@openjdk
Copy link

openjdk bot commented Nov 20, 2023

Going to push as commit 7814102.
Since your change was applied there have been 151 commits pushed to the master branch:

  • 10ddd51: 8275329: ZGC: vmTestbase/gc/gctests/SoftReference/soft004/soft004.java fails with assert(_phases->length() <= 1000) failed: Too many recored phases?
  • 45e3cbf: 8294427: Check boxes and radio buttons have rendering issues on Windows in High DPI env
  • 046b213: 8268916: Tests for AffirmTrust roots
  • 5a7b227: 8168408: Test java/awt/Focus/ActualFocusedWindowTest/ActualFocusedWindowBlockingTest.java fails intermittentently on windows
  • 1b6ff86: 8260035: Deproblemlist few problemlisted test
  • 4aa3196: 8258914: javax/net/ssl/DTLS/RespondToRetransmit.java timed out
  • 5d14b13: 8275333: Print count in "Too many recored phases?" assert
  • 27bfce0: 8210265: Crash in HSpaceCounters::update_used()
  • 2b9d54a: 8306134: Open source some AWT tests relating to Button and a few other classes
  • a2ef248: 6381945: (cal) Japanese calendar unit test system should avoid multiple static imports
  • ... and 141 more: https://git.openjdk.org/jdk11u-dev/compare/5327f67b9e40ad756c6616779f3a2a44cdd257f7...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Nov 20, 2023
@openjdk openjdk bot closed this Nov 20, 2023
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Nov 20, 2023
@openjdk
Copy link

openjdk bot commented Nov 20, 2023

@RealCLanger @pushkarnk Pushed as commit 7814102.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport integrated Pull request has been integrated
3 participants