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

8334305: Remove all code for nsk.share.Log verbose mode #21267

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rsunderbabu
Copy link
Contributor

@rsunderbabu rsunderbabu commented Sep 30, 2024

Cleaning up nsk.share.Log code after the verbose mode was set always true.

Tested all the vmTestbase/ tests.


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-8334305: Remove all code for nsk.share.Log verbose mode (Enhancement - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 21267

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

Using diff file

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

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 30, 2024

👋 Welcome back rsunderbabu! 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 Sep 30, 2024

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

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

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

8334305: Remove all code for  nsk.share.Log verbose mode

Reviewed-by: mli, lmesnik

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 25 new commits pushed to the master branch:

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 (@lmesnik, @Hamlin-Li) 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 changed the title 8334305: Remove all code for nsk.share.Log verbose mode 8334305: Remove all code for nsk.share.Log verbose mode Sep 30, 2024
@openjdk openjdk bot added the rfr Pull request is ready for review label Sep 30, 2024
@openjdk
Copy link

openjdk bot commented Sep 30, 2024

@rsunderbabu The following labels will be automatically applied to this pull request:

  • hotspot
  • serviceability

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

@mlbridge
Copy link

mlbridge bot commented Sep 30, 2024

Webrevs

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Sep 30, 2024
@@ -315,16 +262,9 @@ public void trace(int level, Object message, Throwable exception) {

/**
* Print <code>message</code> to the assigned output stream,
Copy link
Contributor

Choose a reason for hiding this comment

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

Need replace the comma with a period.

Comment on lines -285 to -287
if (!verbose()) {
doPrint(message);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this method ever called? Is there a CR to remove it (and any references to it)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are deprecated methods and are still getting called. The calls need to be replaced with display. I will create a separate CR for this and address because the impact radius of such a change is bigger than this CR.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok

@@ -406,10 +337,9 @@ private void logExceptionForFailureAnalysis(String msg) {
/////////////////////////////////////////////////////////////////

/**
* Redirect log to the given <code>stream</code>, and switch
* log mode to verbose.
* Redirect log to the given <code>stream</code>
Copy link
Contributor

Choose a reason for hiding this comment

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

Need period at end of sentence.

Comment on lines 341 to 342
* Prints errors summary to current stream, cancel current stream
* and switches to new stream. Turns on verbose mode for new stream.
* and switches to new stream.
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it really do all this? It looks to me like it just switches to the new stream. I'm not sure what is meant by "error summary" and cancelling.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

marked for deprecation.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, but unless it is going to be removed by another CR soon, I think the comments should at least reflect what it currently does.

@rsunderbabu
Copy link
Contributor Author

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Oct 1, 2024
@openjdk
Copy link

openjdk bot commented Oct 1, 2024

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

@dholmes-ora
Copy link
Member

@rsunderbabu this should wait for the second review by @plummercj to be completed before it is integrated. Thanks.

@openjdk openjdk bot removed sponsor Pull request is ready to be sponsored ready Pull request is ready to be integrated labels Oct 1, 2024
@rsunderbabu
Copy link
Contributor Author

@rsunderbabu this should wait for the second review by @plummercj to be completed before it is integrated. Thanks.

Thanks for pointing out David. I missed seeing those comments. I have addressed them now.

import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.HashSet;
import java.util.Vector;

import nsk.share.test.LazyFormatString;

/**
* This class helps to print test-execution trace messages
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing period.

Comment on lines -285 to -287
if (!verbose()) {
doPrint(message);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

ok

Comment on lines 341 to 342
* Prints errors summary to current stream, cancel current stream
* and switches to new stream. Turns on verbose mode for new stream.
* and switches to new stream.
Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, but unless it is going to be removed by another CR soon, I think the comments should at least reflect what it currently does.

@rsunderbabu
Copy link
Contributor Author

JDK-8341302 created for addressing deprecated method usage.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot [email protected] ready Pull request is ready to be integrated rfr Pull request is ready for review serviceability [email protected]
Development

Successfully merging this pull request may close these issues.

5 participants