thulab / iot-benchmark

IoT-benchmark is a tool for benchmarking TSDB in IoT scenario.
Apache License 2.0
180 stars 101 forks source link

Fix some bugs #372

Closed liyuheng55555 closed 1 year ago

liyuheng55555 commented 1 year ago

To prevent integer overflow from too many data points in one query.

liyuheng55555 commented 1 year ago
  1. Avoid overflow by changing the type of the intermediate variable queryResultPointNum from AtomicInteger to AtomicLong.
  2. Correct the point counting method for the latest point query in iotdb.
  3. Fix error messages when using ns/us.
  4. Skip calculating time quantiles when the result size is 1 to prevent exceptions.