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

Windows: rename embedded JDK's java.exe #8719

Closed
laszlocsomor opened this issue Jun 26, 2019 · 15 comments
Closed

Windows: rename embedded JDK's java.exe #8719

laszlocsomor opened this issue Jun 26, 2019 · 15 comments
Labels
area-Windows Windows-specific issues and feature requests help wanted Someone outside the Bazel team could own this P3 We're not considering working on this, but happy to review a PR. (No assignee) stale Issues or PRs that are stale (no activity for 30 days) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: feature request

Comments

@laszlocsomor
Copy link
Contributor

Branched from #5254 (comment).

Let's rename the embedded JDK's "java.exe" to something Bazel-specific, e.g. "bazel-server.exe".

Rationale:

Version: Bazel 0.27.0 on Windows 10

@laszlocsomor laszlocsomor assigned meisterT and philwo and unassigned philwo Jun 26, 2019
@laszlocsomor
Copy link
Contributor Author

@meisterT : not sure if you're the right assignee, please reassign if adequate

@laszlocsomor laszlocsomor added bazel 1.0 P3 We're not considering working on this, but happy to review a PR. (No assignee) area-Windows Windows-specific issues and feature requests type: feature request labels Jun 26, 2019
@laszlocsomor
Copy link
Contributor Author

Caveat: the bazel client must be aware that java.exe may be called bazel-server.exe, and it must handle both.

@meisterT
Copy link
Member

Since that change is an incompatible change and cannot be guarded behind a flag, I'll have to wait for the next incompatible release before I can do the change.

@philwo
Copy link
Member

philwo commented Jun 28, 2019

@meisterT With that approach, people will not have a migration window over some releases where they can get used to the new binary name. I'm not sure if we can ever make this change.

@philwo
Copy link
Member

philwo commented Jun 28, 2019

Alternatively we could ship both a java.exe and a bazel-server.exe in the binary and then use an incompatible startup flag to decide which one to execute. OK, our binary size will be double for a while, but oh the sweet backwards compatibility, I'm sure everyone will love it. 😀

@meisterT
Copy link
Member

Having that doubled doesn't sound too bad - since at least on Linux the java binary only has 10k.

@laszlocsomor
Copy link
Contributor Author

Why would the binary size double? We'd only copy java.exe not the other JDK files.

@laszlocsomor
Copy link
Contributor Author

Which part of this change is incompatible?

@philwo
Copy link
Member

philwo commented Jun 28, 2019

@laszlocsomor True, we can just duplicate the java.exe! For a moment I thought we’d have to include two entire JDKs. 😅

@laszlocsomor
Copy link
Contributor Author

Actually, why copy and not just rename? Nothing but that particular Bazel version should use the embedded JDK. There's nothing to be backwards compatible with.

@philwo
Copy link
Member

philwo commented Jun 28, 2019

Rename wouldn’t work because multiple servers can run from the same install base with different values for that incompatible flag.

@laszlocsomor
Copy link
Contributor Author

But all of those servers are the same Bazel version. So there's no need for an incompatible flag, no?

Which part of the change is incompatible?

@meisterT
Copy link
Member

Laszlo: the name is exposed (otherwise we would not change it). Assume someone wrote a script that (outside of bazel) uses the process name, e.g. monitors the CPU usage over time.

@dslomov dslomov removed the bazel 1.0 label Jul 24, 2019
@meisterT
Copy link
Member

I am not actively working on this, but would review a PR.

@meisterT meisterT removed their assignment May 11, 2020
@meisterT meisterT added the help wanted Someone outside the Bazel team could own this label May 11, 2020
@philwo philwo added the team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website label Jun 15, 2020
@sgowroji sgowroji added the stale Issues or PRs that are stale (no activity for 30 days) label Feb 15, 2023
@sgowroji
Copy link
Member

Hi there! We're doing a clean up of old issues and will be closing this one. Please reopen if you’d like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Windows Windows-specific issues and feature requests help wanted Someone outside the Bazel team could own this P3 We're not considering working on this, but happy to review a PR. (No assignee) stale Issues or PRs that are stale (no activity for 30 days) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: feature request
Projects
None yet
Development

No branches or pull requests

5 participants