Skip to content

cain truncaces specific warning prior computing schema SHA #31

@nvtkaszpir

Description

@nvtkaszpir

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions