You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use old keys : new RedisSecurityStore.Builder(jedis).setPrefix(null).setEndpointByPskIdKey("PSKID#SEC").build();
OR write a migration script which renames keys (let us know if you write something like this)
For RedisRegistrationStore, as registration is just kind of "session", probably better to just drop all data and so force client to re-register. Note that key name changed, so if you do nothing, registration will not be found and so client will re-register but old data will not be deleted.
Looking at #1401 (comment) could help.
Will it change again soon ?
We will not change this just for fun, but at the same time there are already some identified point which could lead to new changes:
ℹ️ So, IF you don't specially need M11 new feature AND you are using Redis Store AND you can not migrate easily THEN maybe better to wait for a next releases. ℹ️
The text was updated successfully, but these errors were encountered:
We break again RedisRegistrationStore data format with #1436.
For Key REGSTORE#REG#EP#, Registration identity field was replaced by transportdata field which a completely different way to serialize.
For Key REGSTORE#EP#IDENTITY#, Identity has completely different way to be serialized.
For RedisRegistrationStore, as registration is just kind of "session", easy way to migrate could be to just drop all data and so force client to re-register.
We break again RedisRegistrationStore data format with #1656.
REGSTORE#OBS#TKN# prefix is now named REGSTORE#OBS#OBSID#. The key using this prefix is no more followed by the observation Token (as byte array) but by observation identifier (as byte array like "endpointUri##token").
REGSTORE#TKNS#REGID# prefix is now named REGSTORE#OBSIDS#REGID#. The value indexed by this key no more contains a list of token but a list of observation identifier (as byte array like "endpointUri##token").
For RedisRegistrationStore, as registration is just kind of "session", easy way to migrate could be to just drop all data and so force client to re-register.
Changes :
Between 2.0.0-M10 and 2.0.0-M11, there is lot of changes in Redis Store I tried to list it just below 👇 :
SEC#EP#
SECSTORE#SEC#EP#
PSKID#SEC
SECSTORE#EP#PSKID
REG:EP:
REGSTORE#REG#EP#
EP:REGID:
REGSTORE#EP#REGID#
EP:ADDR:
REGSTORE#EP#ADDR#
EP:IDENTITY:
REGSTORE#EP#IDENTITY#
LOCK:EP:
REGSTORE#LOCK#EP#
OBS:TKN:
REGSTORE#OBS#TKN#
TKNS:REGID:
REGSTORE#TKNS#REGID#
EXP:EP
REGSTORE#EXP#EP
Recommended Migration Way :
For RedisSecurityStore :
new RedisSecurityStore.Builder(jedis).setPrefix(null).setEndpointByPskIdKey("PSKID#SEC").build();
For RedisRegistrationStore, as registration is just kind of "session", probably better to just drop all data and so force client to re-register.
Note that key name changed, so if you do nothing, registration will not be found and so client will re-register but old data will not be deleted.
Looking at #1401 (comment) could help.
Will it change again soon ?
We will not change this just for fun, but at the same time there are already some identified point which could lead to new changes:
Identity
class. #1436ℹ️ So, IF you don't specially need M11 new feature AND you are using Redis Store AND you can not migrate easily THEN maybe better to wait for a next releases. ℹ️
The text was updated successfully, but these errors were encountered: