Skip to content

Commit 4fc4b93

Browse files
test: fix flaky update unflatten case
The following sequence of events happens: - data inserted with crud, - schema updated 12 times, - data updated with crud. For Tarantool supporting field name in updates, there is no additional check for a field name presenting in current format. So it is possible to get outdated metadata. For some reason, new identification mode had uncovered this issue. It is likely related to the change in the order of servers in maps.
1 parent 3171b1b commit 4fc4b93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/simple_operations_test.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ pgroup.test_intermediate_nullable_fields_update = function(g)
406406
end)
407407

408408
local result, err = g.cluster.main_server.net_box:call('crud.update',
409-
{'developers', 1, {{'=', 'extra_3', { a = { b = {} } } }}})
409+
{'developers', 1, {{'=', 'extra_3', { a = { b = {} } } }}, {fetch_latest_metadata = true}})
410410
t.assert_equals(err, nil)
411411
objects = crud.unflatten_rows(result.rows, result.metadata)
412412
t.assert_equals(objects, {

0 commit comments

Comments
 (0)