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

Outdated JDTTipProvider? #2135

Open
jukzi opened this issue Jun 14, 2024 · 6 comments
Open

Outdated JDTTipProvider? #2135

jukzi opened this issue Jun 14, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@jukzi
Copy link
Contributor

jukzi commented Jun 14, 2024

Sometimes after running junit tests i get message Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.tips.ide.internal.IDETipManager$1

The stacktrace of that job is:

	 at java.base/sun.nio.ch.SocketDispatcher.read0(Native Method)
	 at java.base/sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:46)
	 at java.base/sun.nio.ch.NioSocketImpl.tryRead(NioSocketImpl.java:256)
	 at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:307)
	 at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:346)
	 at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:796)
	 at java.base/java.net.Socket$SocketInputStream.read(Socket.java:1099)
	 at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:489)
	 at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:483)
	 at java.base/sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket(SSLSocketInputRecord.java:70)
	 at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1461)
	 at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:1066)
	 at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:291)
	 at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:347)
	 at java.base/java.io.BufferedInputStream.implRead(BufferedInputStream.java:420)
	 at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:399)
	 at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:827)
	 at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:759)
	 at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1690)
	 at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1599)
	 at java.base/sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:3235)
	 at java.base/java.net.HttpURLConnection.getHeaderFieldDate(HttpURLConnection.java:603)
	 at java.base/java.net.URLConnection.getLastModified(URLConnection.java:569)
	 at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getLastModified(HttpsURLConnectionImpl.java:391)
	 at org.eclipse.jdt.tips.user.internal.JDTTipProvider.getLastModifiedDate(JDTTipProvider.java:148)
	 at org.eclipse.jdt.tips.user.internal.JDTTipProvider.fetchContent(JDTTipProvider.java:66)
	 at org.eclipse.jdt.tips.user.internal.JDTTipProvider.loadNewTips(JDTTipProvider.java:48)
	 at org.eclipse.tips.ide.internal.IDETipManager$1.run(IDETipManager.java:94)
	 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

It tries to download https://eclipse.mirror.liteserver.nl/eclipse/tips/org.eclipse.jdt.tips.user/provider.json which responds very lazy.
The last tip is from "2018-06-05"

As the Tips seem to be outdated can we just remove or disable that TipProvider?

@jukzi jukzi added the bug Something isn't working label Jun 14, 2024
@akurtakov
Copy link
Member

@noopur2507 Can you answer this question? Or if you can't do you know who can?

@noopur2507
Copy link
Member

@wimjongman should be able to answer this.

@wimjongman
Copy link
Contributor

Those are general JDT tips which are still valid today. The content definitely needs some love. The slowness is due to a failing mirror, which is a separate issue.

As for disabling the provider: The team has to decide if they want to keep the tips. If they do, we need to define some releng processes to maintain the tips on a regular basis. I'm happy to help here.

This should be discussed in a separate issue higher up the chain.

@akurtakov
Copy link
Member

@wimjongman where are the tips maintained ? to start with.

@wimjongman
Copy link
Contributor

The tip provider determines where the tips come from. They can come from the wiki, a local directory, a download location.

The dynamic setup of the providers was too ambitious. If we want to keep it, it should be tuned down to a local set of tips that can be maintained more easily and without the networking complexity it has today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants