-
Notifications
You must be signed in to change notification settings - Fork 14
CRUD not select information from vshard #135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We check code of storage. Problem exist at type 'HASH' and TREE. authTemplates_space:create_index('authTemplates_msisdn_channel_idx', {parts={{field='msisdn'}, {field='channel'}}, |
Addition information from masters, replicas and routers. |
Storage
|
router.info() from two instances with router role. s1-router
s2-router
|
We restarting problem router.
But we trying save info again:
It is erros. Crud should return error at this situation After that we trying select:
It is ok, it is normal data. s2-router
It is wrong information.
|
At problem router router = require('vshard.router')
|
At "healthy" router
|
|
Same situation after upgrade to 2.6
|
Thanks @Buristan local ldigest = require('digest')
print('Tarantool: ', _TARANTOOL)
print('JIT: ', jit.status())
local function strcrc32(shard_key)
if type(shard_key) ~= 'table' then
return ldigest.crc32(tostring(shard_key))
else
local crc32 = ldigest.crc32.new()
for _, v in ipairs(shard_key) do
crc32:update(tostring(v))
end
return crc32:result()
end
end
jit.off(strcrc32, true)
--[[
local t = {}
for i = 1, 1e6 do
local k = strcrc32({'79774120882', 'app4t2'})
t[k] = (t[k] or 0) + 1
end
for k, v in pairs(t) do print(k, v) end
local k = strcrc32({'79774120882', 'app4t2'})
--]]
print(strcrc32({'79774120882'}))
print(strcrc32({'app4t2'}))
|
Core dump file https://cloud.mail.ru/public/HCwu/UCmaGiapk |
It seems like luajit problem. Please do exactly the same that stack trace says you: "Please file a bug at http://github.com/tarantool/tarantool/issues". |
|
It's not related to crud. Please upgrade metrics. |
We have cartridge application.
At storage role we have space:
Topology:
We have 2 servers.
At each server started 3 roles: router, master and replica.
3 replica set: for router and 2 storages. Master storage reserving by replica from another server.

Saving this entry by crud:
After that we trying to get this information from first router:
from second router:
Why it so different?
Alsough CRUD can save it twice to each replica set with storage. This is bad because index for unicue.
The text was updated successfully, but these errors were encountered: