Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 571910

Summary: Error log entry contains duplicate child
Product: [Eclipse Project] Platform Reporter: Simeon Andreev <simeon.danailov.andreev>
Component: UIAssignee: Simeon Andreev <simeon.danailov.andreev>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: loskutov
Version: 4.15   
Target Milestone: 4.20 M1   
Hardware: PC   
OS: Linux   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=567395
https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/177661
https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/177719
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=23d7b94dbcbf60c2b9c484b6f6a3919898490e63
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=3281ee0d4f38cd85ee24cb0bdb6ee8a5be43b8cc
Whiteboard:
Bug Depends on: 567395    
Bug Blocks:    
Attachments:
Description Flags
Example plug-in to reproduce the problem with. Execute the sample command twice and check the Error Log.
none
Screenshot showing the problem. The 2nd error log entry has a duplicated child. none

Description Simeon Andreev CLA 2021-03-12 04:09:46 EST
Created attachment 285817 [details]
Example plug-in to reproduce the problem with. Execute the sample command twice and check the Error Log.

Steps to reproduce:

1. Run the following code twice (replace plug-in ID):
	String logMessage = "some log message";
	IStatus errorStatus = new Status(IStatus.ERROR, Activator.PLUGIN_ID, logMessage + " child", null);
	Activator.getDefault().getLog().log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, logMessage + " top", new CoreException(errorStatus)));
2. Observe the 2nd error log entry in the Error Log has 2 children, while only 1 is expected (the first error log entry is fine).

Example plug-in with command that logs an entry with the code above: "ExampleErrorLogDuplicateEntry.zip" (execute the command twice)

We assume this is coming from the fix for bug 567395.
Comment 1 Simeon Andreev CLA 2021-03-12 04:12:29 EST
Created attachment 285818 [details]
Screenshot showing the problem. The 2nd error log entry has a duplicated child.
Comment 2 Eclipse Genie CLA 2021-03-12 10:08:32 EST
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/177661
Comment 3 Eclipse Genie CLA 2021-03-15 04:54:16 EDT
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/177719