thingsboard / thingsboard/database-migrator

Corrupted ts_kv_partitions_cf after migration

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
10
Forks
10
PR merge metrics
No merged PRs in 30d

Description

I try to migrate to cassandra with scenario 2. All steps working fine. But after load the SSTables, cassandra log says, that /var/lib/cassandra/data/thingsboard/ts_kv_partitions_cf-426feb6087b711eebeceddffc248ce8c/md-3-big-Data.db is corrupted.

So, no historical data on Thingsboard. Any hints?
cassandra_system.log

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the attached cassandra_system.log and the scenario 2 migration steps, focusing on the SSTable load that produces corruption in /var/lib/cassandra/data/thingsboard/ts_kv_partitions_cf-426feb6087b711eebeceddffc248ce8c/md-3-big-Data.db. Reproduce the migration and identify why the SSTable is rejected; done means the migration completes without corruption and historical data is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
cassandra, java
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.