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

Bug 157070

Summary: Multiple matches of EDE filtering of single log shows duplicate occurances.
Product: z_Archived Reporter: Peter Kim <petekim>
Component: TPTPAssignee: Alex Nan <apnan>
Status: CLOSED WORKSFORME QA Contact:
Severity: major    
Priority: P1 CC: apnan, jkubasta, labadie, smith, use_bobs, zung
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: closed460
Attachments:
Description Flags
Apache Access
none
Apache Error
none
patch
none
Error none

Description Peter Kim CLA 2006-09-12 13:47:56 EDT
Build:
tptp.sdk-TPTP-4.3.0-200609120100

Steps to Reproduce:
1. Import the apache access log and the apache error log attached and create a correlation (time).
2. Create a new filter based on Extended Data Element
3. Open the correlation in 'Log View' and 'Log Interactions'

Actual Results:
Log View shows correlated records which matches the filter
UML2 Log Interactions View or Sequence Diagram is empty

Expected Results:
Sequence Diagram should be drawn for the matched records in the Log View

AC Bug 10497
Comment 1 Peter Kim CLA 2006-09-12 13:48:30 EDT
Created attachment 49954 [details]
Apache Access
Comment 2 Peter Kim CLA 2006-09-12 13:48:51 EDT
Created attachment 49955 [details]
Apache Error
Comment 3 Alex Nan CLA 2006-09-12 16:22:19 EDT
What is the filter that you used? I tried to reproduce your problem but couldn't. There is another problem in the log view with extended data elem. filters though. Keep in mind that in the log interactions diagram if "Show only correlated events" is selected then correlated events are shown ONLY if both source and target are satisfying the filter, so I don't know how you tested it.
Comment 4 Alex Nan CLA 2006-09-12 16:46:00 EDT
So, I was able to reproduce the problem. Eugene can you take a look at the log interactions filter, it seem that complex type filters are not applied correctly. Also the log view is returning wrong results when filtering on extended data elements.
Comment 5 Eugene Chan CLA 2006-09-12 18:44:55 EDT
While debugging the problem. I also see filtering does not work in Log Thread Interaction views. I will include the fix it in this bug entry. 
Comment 6 Eugene Chan CLA 2006-09-12 18:47:03 EDT
Created attachment 49998 [details]
patch
Comment 7 Eugene Chan CLA 2006-09-12 18:48:54 EDT
fixed in HEAD (4.3i2)
Comment 8 Peter Kim CLA 2006-09-20 16:37:12 EDT
The main bug (no sequence diagram when filtered with extended data elements) is fixed, however the other bug (log view results not correct when using extended data elements filter; see attached image) is not fixed.

Problem may not occur for some of the additional data elements filters, but was able to reproduce it using the "additional data filter type" filter with value equal to "string" using the attached logs.

Tested using TPTP build: tptp.sdk-TPTP-4.3.0-200609201034
Comment 9 Peter Kim CLA 2006-09-20 16:37:33 EDT
Created attachment 50595 [details]
Error
Comment 10 Eugene Chan CLA 2006-09-21 11:10:48 EDT
I cannot reproduce the problem with the latest CVS HEAD code. 

Which driver were you using?
Comment 11 Eugene Chan CLA 2006-09-21 11:14:11 EDT
I can reproduce the problem now. It happens when only Advance filters are used. Things seem to work fine if standard options are selected and enabled.
Comment 12 Eugene Chan CLA 2006-09-21 11:18:33 EDT
this looks like a regression from bug 71682
Comment 13 Eugene Chan CLA 2006-09-21 11:29:12 EDT
Each EDE entry is queried against the filter. It multiple entries under a single CBE is matched with the filter, the CBE record is returned multiple times. Hence the wrong result.
Comment 14 Eugene Chan CLA 2006-11-03 18:25:31 EST
Defer these defects to 4.4 because they can't be contained by end of day today
and they're not on any critical list.
Comment 15 Eugene Chan CLA 2006-11-24 10:22:03 EST
*** Bug 165752 has been marked as a duplicate of this bug. ***
Comment 16 Eric Labadie CLA 2007-08-09 16:53:38 EDT
This is required from AC perspective.
Comment 17 Alex Nan CLA 2007-09-13 21:54:19 EDT
This problem was fixed in 4.4.1 as part of 201041.
Comment 18 Paul Slauenwhite CLA 2009-06-30 10:26:11 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since the originator of this enhancement/defect has an inactive Bugzilla account and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.