-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8263565: NPE was thrown when sun.jvm.hotspot.rmi.serverNamePrefix was set #3000
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
Conversation
👋 Welcome back ysuenaga! A progress list of the required criteria for merging this PR into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix looks fine. It would be nice if this was documented somewhere (and even tested). Also, while looking into this I noticed the following comment:
// debugServerID follows the pattern [unique_id@]host[:port]
// we have to transform this as //host[:port]/<serverNamePrefix>['_'<unique_id>]
The [:port]
part is also not document, not even in the command line syntax for sadebugd
@YaSuenag 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:
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 342 new commits pushed to the
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. ➡️ To integrate this PR with the above commit message to the |
Thanks @plummercj for your review!
In addition For example, I think we can expose them as following:
I will work for it if you are ok. |
That looks fine, although I'm a little unclear about the need for Also, I think a bit of explanation of |
We can use it when we want to register SA endpoint to RMI registry that exists (e.g. rmid). I think it is simple to proxy to
We can specify any available port as you said. |
I think the default rmi registry port is 1099. However, do we need to also support something like JDK-8196729 for the rmi communications port? |
We can specify RMI communication port with |
For example, if we want to fix RMI registry and communication port, we can start debugd instance as following:
Then, we can connect to it as following:
|
Sorry. I was running an old jhsdb. So we already have --registryport 2000 --rmiport, and you can already specify [:] as part of the debugserver. So what needs to be added is just --servernameprefix, and better help for explaining all the parts of the debugserver that are specified with --connect. You also want to add --disableregistry, but I think that's kind of separate from the above and probably needs its own CR and CSR. |
I filed them to JBS. I will work for them later.
|
Ping: could you review it? I need one more reviewer to push. |
/integrate |
@YaSuenag Since your change was applied there have been 344 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit b1a225e. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
NPE was thrown when I set server name prefix for debugd as following:
serverNamePrefix
would not affect due to trivial bug.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/3000/head:pull/3000
$ git checkout pull/3000
Update a local copy of the PR:
$ git checkout pull/3000
$ git pull https://git.openjdk.java.net/jdk pull/3000/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3000
View PR using the GUI difftool:
$ git pr show -t 3000
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/3000.diff