Skip to content
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

cain truncaces specific warning prior computing schema SHA #31

Open
nvtkaszpir opened this issue Nov 25, 2021 · 0 comments
Open

cain truncaces specific warning prior computing schema SHA #31

nvtkaszpir opened this issue Nov 25, 2021 · 0 comments

Comments

@nvtkaszpir
Copy link

nvtkaszpir commented Nov 25, 2021

As we can see in

func removeWarning(b []byte) []byte {

there is a removal of VERY SPECIFIC warning message.
The problem is that for custom containers HOME may be different than that.

As a result this ends as incompatible schemas due to warning message.

Possible fixes:

  • fix cqlsh so that it can write to HOME and then make new backups and use them with restore
  • set env var HOME to the same value as it was in another containers which were used to make backups
  • manually rename directories to point to 'proper' schema checksum on storage used as restore (in example s3 bucket paths)
  • fix the code in this tool directly - the command should drop line which contains arbitrary HOMEDIR path and not just specific one, and use it to create backup and then use it as restore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant