OpenSolaris

Printable Version Enter a New Search
Bug ID 6737926
Synopsis getAggregate() method fails to specify anonymous aggregation explicitly
State 10-Fix Delivered (Fix available in build)
Category:Subcategory library:libdtrace
Keywords
Responsible Engineer Tom Erickson
Reported Against
Duplicate Of
Introduced In
Commit to Fix snv_99
Fixed In snv_99
Release Fixed solaris_nevada(snv_99)
Related Bugs
Submit Date 16-August-2008
Last Update Date 24-September-2008
Description
The following succeeds:

    consumer.getAggregate(null, null); // include, cleared

because all aggregations are cleared by default. However, if the caller wants to clear some but not all aggregations, specifying the anonymous aggregation does not work (the caller gets a running total no matter what).

    Set <String> cleared = new HashSet <String> ();
    cleared.add(""); // unnamed
    consumer.getAggregate(null, cleared); // fails to clear aggregation ""

If the aggregation has a name, the above code succeeds.

Specifying included aggregations has the same problem.
Work Around
N/A
Comments
N/A