Compare commits

..

3 Commits

Author SHA1 Message Date
Vitaliy Filippov 7dbbab7dc0 Try new PG combinator in tests
Test / test_rm (push) Successful in 13s Details
Test / test_move_reappear (push) Successful in 20s Details
Test / test_snapshot_chain (push) Successful in 1m26s Details
Test / test_snapshot_down (push) Successful in 23s Details
Test / test_snapshot_chain_ec (push) Successful in 1m56s Details
Test / test_snapshot_down_ec (push) Successful in 24s Details
Test / test_splitbrain (push) Successful in 58s Details
Test / test_rebalance_verify_imm (push) Successful in 2m40s Details
Test / test_interrupted_rebalance (push) Failing after 10m6s Details
Test / test_interrupted_rebalance_ec (push) Failing after 10m8s Details
Test / test_write (push) Successful in 38s Details
Test / test_rebalance_verify_ec (push) Successful in 3m22s Details
Test / test_write_no_same (push) Successful in 17s Details
Test / test_write_xor (push) Successful in 53s Details
Test / test_rebalance_verify_ec_imm (push) Successful in 3m55s Details
Test / test_rebalance_verify (push) Failing after 10m11s Details
Test / test_heal_pg_size_2 (push) Successful in 3m41s Details
Test / test_heal_ec (push) Successful in 4m42s Details
Test / test_heal_csum_32k_dmj (push) Successful in 4m28s Details
Test / test_heal_csum_32k_dj (push) Successful in 6m43s Details
Test / test_heal_csum_32k (push) Successful in 6m12s Details
Test / test_scrub (push) Successful in 54s Details
Test / test_heal_csum_4k_dmj (push) Successful in 6m3s Details
Test / test_scrub_zero_osd_2 (push) Successful in 54s Details
Test / test_scrub_xor (push) Successful in 41s Details
Test / test_heal_csum_4k_dj (push) Successful in 6m19s Details
Test / test_scrub_pg_size_6_pg_minsize_4_osd_count_6_ec (push) Successful in 58s Details
Test / test_scrub_ec (push) Successful in 43s Details
Test / test_scrub_pg_size_3 (push) Successful in 1m25s Details
Test / test_heal_csum_4k (push) Successful in 5m6s Details
2024-01-02 12:24:36 +03:00
Vitaliy Filippov a8ed6800c4 Plug the new PG combinator into monitor 2024-01-02 12:24:36 +03:00
Vitaliy Filippov b84dc22ea2 Implement new DSL/rule-based PG generation algorithm 2024-01-02 12:24:36 +03:00
2 changed files with 11 additions and 2 deletions

View File

@ -313,7 +313,7 @@ function murmur3(s)
let hash = 0x12345678;
for (let i = 0; i < s.length; i++)
{
hash ^= s[i].charCodeAt(i);
hash ^= s.charCodeAt(i);
hash = (hash*0x5bd1e995) & 0xFFFFFFFF;
hash ^= (hash >> 15);
}

View File

@ -1,4 +1,4 @@
const { parse_level_indexes, parse_pg_dsl } = require('./dsl_pgs.js');
const { random_custom_combinations, index_tree, parse_level_indexes, parse_pg_dsl } = require('./dsl_pgs.js');
function check(result, expected)
{
@ -92,4 +92,13 @@ check(
]
);
check(
Object.keys(random_custom_combinations(index_tree([
{ id: '1', size: 1, level: 'osd' },
{ id: '2', size: 2, level: 'osd' },
{ id: '3', size: 3, level: 'osd' }
]), parse_level_indexes({ osd: '12' }), 10000)).sort(),
[ 'pg_1_2', 'pg_1_3', 'pg_2_3' ]
);
console.log('OK');