Closed bigbes closed 9 years ago
It's where it happens
@Override
public void reportReturnCode(int code) {
Integer Icode=code;
if (!returncodes.containsKey(Icode))
{
int[] val=new int[1];
val[0]=0;
returncodes.put(Icode,val);
}
returncodes.get(Icode)[0]++; // This string
}
Yep. HashMap is no good for multitheeaded use. Looks like only the OneMeasurementHdrHistogram does this correctly. We should uodate the rest to match, or maybe pull reportReturnCode up into OneMeasurement.
Interested in putting together a patch @bigbes?
Ok, i can do it at weekend, i think.
It's hard to reproduce, so i can't create test case..