)]}'
{
  "commit": "bd0196ee351dd39e1308a1b5368c1c9f467cab89",
  "tree": "b1abd38cc2a103a29623d386c343a07692ee7088",
  "parents": [
    "34f997fdef6ac3a3d5a006e56b8f79215d869d97"
  ],
  "author": {
    "name": "Lee Rhodes",
    "email": "leerho@users.noreply.github.com",
    "time": "Wed Nov 18 18:10:04 2026 -0800"
  },
  "committer": {
    "name": "Lee Rhodes",
    "email": "leerho@users.noreply.github.com",
    "time": "Wed Nov 18 18:10:04 2026 -0800"
  },
  "message": "Quantiles items: keep the sketch consistent when an update throws\n\nupdate() counted the item in n and the base buffer count before\nprocessing a full base buffer. If processing threw, the base buffer count\nstayed at 2k: later updates then either threw\nArrayIndexOutOfBoundsException or silently wrote over level 0. update()\nalso stored a new maximum before the minimum comparison, which could throw.\n\nupdate() now compares first and commits n, the base buffer count, min and\nmax only after processing succeeds, as HeapUpdateDoublesSketch does. The\nfull base buffer is sorted as a copy, so a comparator that throws during\nthe sort leaves the base buffer as it was. The merge code now allocates\nall the space it needs before it changes the target.\n\nResults and the serialized form are unchanged. The class javadoc states\nwhich failures leave the sketch unchanged; a comparator that throws while\nlevels are merged, or is inconsistent, leaves it undefined.\n\nCo-Authored-By: Claude Opus 5.5 \u003cnoreply@anthropic.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "84d62dee6c1bb24497fa41f3ea8d27c373c09fdc",
      "old_mode": 33188,
      "old_path": "src/main/java/org/apache/datasketches/quantiles/ItemsMergeImpl.java",
      "new_id": "dab3fc6e6674332669b4f2193dc6587e07234b8b",
      "new_mode": 33188,
      "new_path": "src/main/java/org/apache/datasketches/quantiles/ItemsMergeImpl.java"
    },
    {
      "type": "modify",
      "old_id": "7ae7cec2f790eac94dc4e10bf5962cb129faf72a",
      "old_mode": 33188,
      "old_path": "src/main/java/org/apache/datasketches/quantiles/ItemsUtil.java",
      "new_id": "383ebe360ee8397bd96c3b217ec28544a8e7058a",
      "new_mode": 33188,
      "new_path": "src/main/java/org/apache/datasketches/quantiles/ItemsUtil.java"
    },
    {
      "type": "modify",
      "old_id": "f007ac392d5338c79ecd7a1aa3a16cf9dbaac1d5",
      "old_mode": 33188,
      "old_path": "src/main/java/org/apache/datasketches/quantiles/QuantilesItemsSketch.java",
      "new_id": "d3ed300b9bfa437751af9f579a18f2099575066f",
      "new_mode": 33188,
      "new_path": "src/main/java/org/apache/datasketches/quantiles/QuantilesItemsSketch.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a6eba697cec60f9c5cb8fa4aa0a2d536be01d2bc",
      "new_mode": 33188,
      "new_path": "src/test/java/org/apache/datasketches/quantiles/ItemsUpdateFailureTest.java"
    }
  ]
}
