isar / isar/hive

Hive V2.2.3 CollectionBox data corruption

Open
#1,323 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

When I run the code below on Windows 10:
```
obj.id = 124496586407126791;
await _box.put('${obj.id}', obj);
print('${(await _box.get('${obj.id}'))!.id}');
```
The obj.id is an int, and the print is different: 124496586407126784.
And 124500805986995508 -> 124500805986995504,
124502169708373100 -> 124502169708373104,
124502323013866878 -> 124502323013866880,
124502431929374811 -> 124502431929374816 etc.
Can any one help me out of this? Thanks in advance.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the report on Windows 10 using the CollectionBox put/get entry points and the large integer examples in the issue. Trace the V2.2.3 round-trip serialization path and verify whether each id is read back unchanged; done means identifying the failing boundary and adding a regression test or a documented limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
database
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.