You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "PragmaTwice (via GitHub)" <gi...@apache.org> on 2024/05/05 16:18:51 UTC

[I] Introduce the key encoding version [kvrocks]

PragmaTwice opened a new issue, #2292:
URL: https://github.com/apache/kvrocks/issues/2292

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/kvrocks/issues) and found no similar issues.
   
   
   ### Motivation
   
   The current key encoding has some historical legacy issues, and we need to adjust it through some means while ensuring compatibility. 
   
   To do this, first we can persist a key encoding version in storage and read it during loading.
   
   ### Solution
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Introduce the key encoding version [kvrocks]

Posted by "VasuDevrani (via GitHub)" <gi...@apache.org>.
VasuDevrani commented on issue #2292:
URL: https://github.com/apache/kvrocks/issues/2292#issuecomment-2111546849

   I went through the codebase, can you confirm if i got it right? @PragmaTwice 
   - the key encoding logic (encoding and decoding) is implemented in the `InternalKey` class 
   - can be fixed by introducing a new variable for encoding version, a function to read it from storage during loading process, update `InternalKey` class to handle different versions


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Introduce the key encoding version [kvrocks]

Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice commented on issue #2292:
URL: https://github.com/apache/kvrocks/issues/2292#issuecomment-2112051378

   > I went through the codebase, can you confirm if i got it right?
   > 
   > * the key encoding logic (encoding and decoding) is implemented in the `InternalKey` class
   > * can be fixed by introducing a new variable for encoding version, a function to read it from storage during loading process, update `InternalKey` class to handle different versions
   
   Yeah you are right.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Introduce the key encoding version [kvrocks]

Posted by "VasuDevrani (via GitHub)" <gi...@apache.org>.
VasuDevrani commented on issue #2292:
URL: https://github.com/apache/kvrocks/issues/2292#issuecomment-2111623360

   /assign


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org