Compare commits

..

3 Commits

Author SHA1 Message Date
Vitaliy Filippov 17a80da61f Try new PG combinator in tests
Test / test_interrupted_rebalance (push) Successful in 4m13s Details
Test / test_snapshot_chain (push) Successful in 1m31s Details
Test / test_snapshot_down (push) Successful in 29s Details
Test / test_snapshot_down_ec (push) Successful in 30s Details
Test / test_snapshot_chain_ec (push) Successful in 2m8s Details
Test / test_splitbrain (push) Successful in 18s Details
Test / test_rebalance_verify_imm (push) Successful in 2m10s Details
Test / test_rebalance_verify (push) Successful in 2m47s Details
Test / test_rebalance_verify_ec (push) Successful in 2m43s Details
Test / test_write (push) Successful in 38s Details
Test / test_write_no_same (push) Successful in 13s Details
Test / test_rebalance_verify_ec_imm (push) Successful in 3m11s Details
Test / test_heal_pg_size_2 (push) Successful in 3m8s Details
Test / test_heal_csum_32k_dmj (push) Successful in 5m18s Details
Test / test_heal_ec (push) Successful in 5m33s Details
Test / test_heal_csum_32k_dj (push) Successful in 5m57s Details
Test / test_heal_csum_32k (push) Successful in 5m33s Details
Test / test_scrub (push) Successful in 1m2s Details
Test / test_scrub_zero_osd_2 (push) Successful in 1m10s Details
Test / test_scrub_xor (push) Successful in 48s Details
Test / test_heal_csum_4k_dmj (push) Successful in 5m41s Details
Test / test_heal_csum_4k_dj (push) Successful in 6m6s Details
Test / test_heal_csum_4k (push) Successful in 4m59s Details
Test / test_scrub_ec (push) Successful in 26s Details
Test / test_scrub_pg_size_6_pg_minsize_4_osd_count_6_ec (push) Successful in 1m37s Details
Test / test_change_pg_size (push) Failing after 24s Details
Test / test_scrub_pg_size_3 (push) Successful in 1m10s Details
Test / test_interrupted_rebalance_ec (push) Successful in 1m10s Details
Test / test_write_xor (push) Failing after 3m6s Details
Test / test_add_osd (push) Failing after 54s Details
2024-01-02 01:21:58 +03:00
Vitaliy Filippov 8972451690 Plug the new PG combinator into monitor 2024-01-02 01:21:58 +03:00
Vitaliy Filippov f4bfd2e64b Implement new DSL/rule-based PG generation algorithm 2024-01-02 01:21:58 +03:00
2 changed files with 2 additions and 11 deletions

View File

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

View File

@ -1,4 +1,4 @@
const { random_custom_combinations, index_tree, parse_level_indexes, parse_pg_dsl } = require('./dsl_pgs.js');
const { parse_level_indexes, parse_pg_dsl } = require('./dsl_pgs.js');
function check(result, expected)
{
@ -92,13 +92,4 @@ 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');