Bug 569914 - JDT Debug tests log has uncompleted AutoRegisterSchemeHandlersJob jobs
Summary: JDT Debug tests log has uncompleted AutoRegisterSchemeHandlersJob jobs
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.19   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Sarika Sinha CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-24 05:05 EST by Sarika Sinha CLA
Modified: 2023-08-19 11:37 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Sarika Sinha CLA 2020-12-24 06:15:56 EST
Whole log is full of these kind of logs:
!ENTRY org.eclipse.jdt.debug.tests 4 0 2020-12-22 18:50:24.886
!MESSAGE [testModeSpecificTabGroups] Some job is still running or waiting to run: 
'AutoRegisterSchemeHandlersJob(17)'/org.eclipse.urischeme.AutoRegisterSchemeHandlersJob
thread info: "Worker-0: AutoRegisterSchemeHandlersJob" prio=5 Id=25 RUNNABLE
	at java.base@11.0.8/java.io.FileInputStream.readBytes(Native Method)
	at java.base@11.0.8/java.io.FileInputStream.read(FileInputStream.java:279)
	at java.base@11.0.8/java.io.BufferedInputStream.read1(BufferedInputStream.java:290)
	at java.base@11.0.8/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
	-  locked java.lang.ProcessImpl$ProcessPipeInputStream@3cc7601c
	at java.base@11.0.8/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
	at java.base@11.0.8/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
	at java.base@11.0.8/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
	-  locked java.io.InputStreamReader@7fcce3ac
	at java.base@11.0.8/java.io.InputStreamReader.read(InputStreamReader.java:185)
Comment 2 Sarika Sinha CLA 2021-01-03 06:41:12 EST
@Michael,
What should be done to avoid the incomplete jobs?
Comment 3 Mickael Istria CLA 2021-01-04 08:45:46 EST
(In reply to Sarika Sinha from comment #2)
> @Michael,
> What should be done to avoid the incomplete jobs?

According to code in AutoRegisterSchemeHandlersJob.shouldSchedule(), tests that don't want this job to run need to set preference org.eclipse.urischeme/skipAutoRegistration=true
Comment 4 Eclipse Genie CLA 2021-01-04 13:22:09 EST
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.debug/+/174240
Comment 5 Mickael Istria CLA 2021-01-05 03:11:18 EST
I don't get why such test about debug should be altered with unrelated jobs going on or not. Maybe the assertions in the test should just be fixed to focus on "interesting" jobs.
Comment 6 Sarika Sinha CLA 2021-01-05 06:47:19 EST
(In reply to Mickael Istria from comment #5)
> I don't get why such test about debug should be altered with unrelated jobs
> going on or not. Maybe the assertions in the test should just be fixed to
> focus on "interesting" jobs.

Tests are not failing due to this, logs are full with message like and difficult to understand - 
!MESSAGE [testModeSpecificTabGroups] Some job is still running or waiting to run: 
'AutoRegisterSchemeHandlersJob(17)'/org.eclipse.urischeme.AutoRegisterSchemeHandlersJob
thread info: "Worker-0: AutoRegisterSchemeHandlersJob" prio=5 Id=25 RUNNABLE
	at java.base@11.0.8/java.io.FileInputStream.readBytes(Native Method)
	at java.base@11.0.8/java.io.FileInputStream.read(FileInputStream.java:279)
	at java.base@11.0.8/java.io.BufferedInputStream.read1(BufferedInputStream.java:290)
	at java.base@11.0.8/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
	-  locked java.lang.ProcessImpl$ProcessPipeInputStream@3cc7601c
	at java.base@11.0.8/sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
	at java.base@11.0.8/sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
	at java.base@11.0.8/sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
	-  locked java.io.InputStreamReader@7fcce3ac
	at java.base@11.0.8/java.io.InputStreamReader.read(InputStreamReader.java:185)
Comment 8 Eclipse Genie CLA 2021-01-20 03:08:38 EST
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.debug/+/175081
Comment 10 Eclipse Genie CLA 2023-08-19 11:37:11 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.