Commit 4aad2c8
authored
Fix flaky schema evolution test using explicit timestamp ordering (#5689)
This PR fixes `test_schema_evolution_drop_fixed_add_var` flaky test
where multiple calls to `tiledb_timestamp_now_ms()` within the same
millisecond could cause timestamp collisions, leading to incorrect
schema selection during time-travel reads. The fix uses a single base
timestamp with consistent offsets and explicitly specifies timestamps
via `TemporalPolicy` for all array reads to ensure deterministic schema
loading.
Below is the failure:
```
-------------------------------------------------------------------------------
C++ API: SchemaEvolution, drop fixed attribute and add back as var-sized
-------------------------------------------------------------------------------
/Users/agis/TileDB_workspace/TileDB/test/src/unit-cppapi-schema-evolution.cc:1163
...............................................................................
/Users/agis/TileDB_workspace/TileDB/test/support/src/vfs_helpers.cc:147: FAILED:
{Unknown expression after the reported line}
due to unexpected exception with message:
C API: There is no field a
```
Closes CORE-49
---
TYPE: IMPROVEMENT
DESC: Fix flaky schema evolution test using explicit timestamp ordering.1 parent 3565090 commit 4aad2c8
1 file changed
+11
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1101 | 1101 | | |
1102 | 1102 | | |
1103 | 1103 | | |
1104 | | - | |
1105 | | - | |
| 1104 | + | |
1106 | 1105 | | |
1107 | 1106 | | |
1108 | 1107 | | |
1109 | | - | |
| 1108 | + | |
1110 | 1109 | | |
1111 | 1110 | | |
1112 | 1111 | | |
1113 | | - | |
1114 | 1112 | | |
1115 | 1113 | | |
1116 | 1114 | | |
1117 | | - | |
| 1115 | + | |
1118 | 1116 | | |
1119 | 1117 | | |
1120 | 1118 | | |
1121 | 1119 | | |
1122 | | - | |
| 1120 | + | |
1123 | 1121 | | |
1124 | 1122 | | |
1125 | | - | |
| 1123 | + | |
| 1124 | + | |
1126 | 1125 | | |
1127 | 1126 | | |
1128 | 1127 | | |
| |||
1142 | 1141 | | |
1143 | 1142 | | |
1144 | 1143 | | |
1145 | | - | |
1146 | | - | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
1147 | 1147 | | |
1148 | | - | |
| 1148 | + | |
1149 | 1149 | | |
1150 | 1150 | | |
1151 | 1151 | | |
1152 | 1152 | | |
1153 | | - | |
| 1153 | + | |
1154 | 1154 | | |
1155 | 1155 | | |
1156 | 1156 | | |
| |||
0 commit comments