From 8788b556ddd3a651215e7d4faddcbdc0be7ce0a7 Mon Sep 17 00:00:00 2001 From: Seth Shelnutt Date: Wed, 19 Feb 2020 11:51:32 -0500 Subject: [PATCH] Improve error msg for global order writes failures This adds a small addition to indicate if it was the tile comparision that failed. This can help debug the problem that the write was not aligned to the tile boundaries properly. --- tiledb/sm/query/writer.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tiledb/sm/query/writer.cc b/tiledb/sm/query/writer.cc index 381c9b39b43..815eb85325c 100644 --- a/tiledb/sm/query/writer.cc +++ b/tiledb/sm/query/writer.cc @@ -712,6 +712,8 @@ Status Writer::check_global_order() const { ss << "Write failed; Coordinates " << coords_to_str(i); ss << " succeed " << coords_to_str(i + 1); ss << " in the global order"; + if (tile_cmp > 0) + ss << " due to writes across tiles"; return LOG_STATUS(Status::WriterError(ss.str())); } return Status::Ok();