The sound distributed version control system

#543 [LINUX2, RECORD] Error: Changestore error: Corrupted block detected 0

Closed on September 22, 2021
tankf33der on September 22, 2021
[mpech@lambda linux2x]$ ./apply-tonew.sh 
+ source ./functions.sh
+ cd ..
+ rm -rf linux2x-data
+ mkdir linux2x-data
+ cd linux2x-data
+ pijul init repo
+ cd repo
+ tar -xJf ../../linux2x/kernel/linux-2.0.1.tar.xz --strip-components=1
+ pijul add -r -- arch COPYING CREDITS Documentation drivers fs include init ipc kernel lib MAINTAINERS Makefile mm modules net README Rules.make scripts
+ pijul record --timestamp 123456789 -am.
+ (( i=2  ))
+ (( i <= 40 ))
+ xzcat ../../linux2x/patches/patch-2.0.2.xz
+ patch -sp1
+ pijul add -r -- arch COPYING CREDITS Documentation drivers fs include init ipc kernel lib MAINTAINERS Makefile mm modules net README Rules.make scripts
+ pijul record --timestamp 123456789 -am.
Error: Changestore error: Corrupted block detected 0
pmeunier added a change on September 22, 2021
PUHYAG7LHWPY7EMV6QC45VGZCWBKDMMR4R7QION2OJXUEWL557VAC
main
pmeunier added a change on September 22, 2021
FINWDBLQNMWDKZRNNH5IF2QMV4XJEUWMOWBBIRBRFPRABTTKPYBQC
main
pmeunier on September 22, 2021

This comes from a common source of problems recently, the Rust version of zstd-seekable. I’ve moved back to version 0.1 (the original C version), let’s see how that goes in the future.

pmeunier closed this discussion on September 22, 2021
darleybarreto on September 28, 2021

I promise I’m close to find time to figure out this bug!

darleybarreto on October 9, 2021

I ran this script with pijul main and this change. It seems to be working so far:

+ source ./functions.sh
+ cd ..
+ rm -rf linux2x-data
+ mkdir linux2x-data
+ cd linux2x-data
+ pijul-new/pijul/target/debug/pijul init repo
+ cd repo
+ tar -xJf ../../linux2x/kernel/linux-2.0.1.tar.xz --strip-components=1
+ add
+ pijul add -r .
+ record
+ pijul record -am.

.... (not adding here because it's too big)

+ pijul-new/pijul/target/debug/pijul channel new mike1
++ pijul-new/pijul/target/debug/pijul credit Makefile
++ grep -o '^[[:alnum:]]*'
++ sort -Ru
+ for H in $(pijul-new/pijul/target/debug/pijul credit Makefile | grep -o "^[[:alnum:]]*" | sort -Ru)
+ pijul-new/pijul/target/debug/pijul apply --channel mike1 WK2MKSPK5Z2O
+ for H in $(pijul-new/pijul/target/debug/pijul credit Makefile | grep -o "^[[:alnum:]]*" | sort -Ru)
+ pijul-new/pijul/target/debug/pijul apply --channel mike1 G4WAF26EIQMI
+ for H in $(pijul-new/pijul/target/debug/pijul credit Makefile | grep -o "^[[:alnum:]]*" | sort -Ru)
+ pijul-new/pijul/target/debug/pijul apply --channel mike1 GFL3ZGJWVF7N
+ for H in $(pijul-new/pijul/target/debug/pijul credit Makefile | grep -o "^[[:alnum:]]*" | sort -Ru)
+ pijul-new/pijul/target/debug/pijul apply --channel mike1 3Z2EQXJU46YA
+ for H in $(pijul-new/pijul/target/debug/pijul credit Makefile | grep -o "^[[:alnum:]]*" | sort -Ru)
+ pijul-new/pijul/target/debug/pijul apply --channel mike1 VTPRBMPMHOK3
+ for H in $(pijul-new/pijul/target/debug/pijul credit Makefile | grep -o "^[[:alnum:]]*" | sort -Ru)
+ pijul-new/pijul/target/debug/pijul apply --channel mike1 EWH4DTDUK5MT
+ for H in $(pijul-new/pijul/target/debug/pijul credit Makefile | grep -o "^[[:alnum:]]*" | sort -Ru)
+ pijul-new/pijul/target/debug/pijul apply --channel mike1 MBV3VHL4TKR4
+ pijul-new/pijul/target/debug/pijul channel switch mike1
Outputting repository
+ cd ..
+ pijul-new/pijul/target/debug/pijul clone --channel mike1 repo repo2
Downloading changes [==================================================] 40/40                                               
           Applying [==================================================] 40/40                                               
 Completing changes [                                                  ] 0/0                                               
++ diff -qr repo repo2
++ grep -cv .pijul
+ zero 0
+ '[' 0 -ne 0 ']'
+ cd repo
+ i=1
++ pijul-new/pijul/target/debug/pijul log --hash-only
+ for H in $(pijul-new/pijul/target/debug/pijul log --hash-only)
+ pijul-new/pijul/target/debug/pijul channel new 1
+ pijul-new/pijul/target/debug/pijul apply TYBWVIK4AE5PGU3ZZEP3OE6DOMAB7LPC54LYET2PJ4ZBEL4KJQUQC --channel 1

.... (not adding here because it's too big)

Outputting repository
+ (( i=1  ))
+ (( i <= 40 ))
+ /home/darley/Documents/Repositories/pijul-new/pijul/target/debug/pijul channel delete 1
+ (( i=i+1  ))
+ (( i <= 40 ))

.... (not adding here because it's too big)

+ echo OK--apply-tonew
OK--apply-tonew

I haven’t tried with pijul main alone, so this bug might’ve been fixed before. I will test later on.