Skip to content

[PBM-907] slice oplog during logical backup #175

[PBM-907] slice oplog during logical backup

[PBM-907] slice oplog during logical backup #175

GitHub Actions / JUnit Test Report failed Jan 25, 2024 in 0s

13 tests run, 9 passed, 0 skipped, 4 failed.

Annotations

Check failure on line 124 in psmdb-testing/pbm-functional/pytest/test_azurite.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_azurite.test_incremental

AssertionError: assert 3 == 4
 +  where 3 = <bound method Collection.count_documents of Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')>({})
 +    where <bound method Collection.count_documents of Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')> = Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test').count_documents
 +  and   4 = len([{'_id': ObjectId('65b2c9b7959391d20265c0f9'), 'a': 1}, {'_id': ObjectId('65b2c9b7959391d20265c0fa'), 'b': 2}, {'_id': ObjectId('65b2c9b7959391d20265c0fb'), 'c': 3}, {'_id': ObjectId('65b2c9b7959391d20265c0fc'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fa16a0f2f10>

    @pytest.mark.timeout(300, func_only=True)
    def test_incremental(start_cluster, cluster):
        cluster.check_pbm_status()
        cluster.make_backup("incremental --base")
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup = cluster.make_backup("incremental")
        result = pymongo.MongoClient(cluster.connection)["test"]["test"].delete_many({})
        assert int(result.deleted_count) == len(documents)
        cluster.make_restore(backup, restart_cluster=True,check_pbm_status=True)
>       assert pymongo.MongoClient(cluster.connection)["test"]["test"].count_documents({}) == len(documents)
E       AssertionError: assert 3 == 4
E        +  where 3 = <bound method Collection.count_documents of Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')>({})
E        +    where <bound method Collection.count_documents of Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')> = Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test').count_documents
E        +  and   4 = len([{'_id': ObjectId('65b2c9b7959391d20265c0f9'), 'a': 1}, {'_id': ObjectId('65b2c9b7959391d20265c0fa'), 'b': 2}, {'_id': ObjectId('65b2c9b7959391d20265c0fb'), 'c': 3}, {'_id': ObjectId('65b2c9b7959391d20265c0fc'), 'd': 4}])

test_azurite.py:124: AssertionError

Check failure on line 107 in psmdb-testing/pbm-functional/pytest/test_fresh_sharded.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_fresh_sharded.test_incremental

AssertionError: assert 0 == 4
 +  where 0 = <bound method Collection.count_documents of Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')>({})
 +    where <bound method Collection.count_documents of Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')> = Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test').count_documents
 +  and   4 = len([{'_id': ObjectId('65b2ccbc959391d20265c113'), 'a': 1}, {'_id': ObjectId('65b2ccbc959391d20265c114'), 'b': 2}, {'_id': ObjectId('65b2ccbc959391d20265c115'), 'c': 3}, {'_id': ObjectId('65b2ccbc959391d20265c116'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fa16a120090>
newcluster = <cluster.Cluster object at 0x7fa16a0f3e10>

    @pytest.mark.testcase(test_case_key="T209", test_step_key=1)
    @pytest.mark.timeout(600,func_only=True)
    def test_incremental(start_cluster,cluster,newcluster):
        cluster.check_pbm_status()
        cluster.make_backup("incremental --base")
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup=cluster.make_backup("incremental")
        cluster.destroy()
    
        newcluster.make_resync()
        newcluster.make_restore(backup,restart_cluster=True, check_pbm_status=True)
>       assert pymongo.MongoClient(newcluster.connection)["test"]["test"].count_documents({}) == len(documents)
E       AssertionError: assert 0 == 4
E        +  where 0 = <bound method Collection.count_documents of Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')>({})
E        +    where <bound method Collection.count_documents of Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')> = Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test').count_documents
E        +  and   4 = len([{'_id': ObjectId('65b2ccbc959391d20265c113'), 'a': 1}, {'_id': ObjectId('65b2ccbc959391d20265c114'), 'b': 2}, {'_id': ObjectId('65b2ccbc959391d20265c115'), 'c': 3}, {'_id': ObjectId('65b2ccbc959391d20265c116'), 'd': 4}])

test_fresh_sharded.py:107: AssertionError

Check failure on line 107 in psmdb-testing/pbm-functional/pytest/test_remap_sharded.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_remap_sharded.test_incremental

AssertionError: assert 3 == 4
 +  where 3 = <bound method Collection.count_documents of Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')>({})
 +    where <bound method Collection.count_documents of Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')> = Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test').count_documents
 +  and   4 = len([{'_id': ObjectId('65b2cf00959391d20265c125'), 'a': 1}, {'_id': ObjectId('65b2cf00959391d20265c126'), 'b': 2}, {'_id': ObjectId('65b2cf00959391d20265c127'), 'c': 3}, {'_id': ObjectId('65b2cf00959391d20265c128'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fa16a0ed610>
newcluster = <cluster.Cluster object at 0x7fa169e2c510>

    @pytest.mark.testcase(test_case_key="T243", test_step_key=1)
    @pytest.mark.timeout(600,func_only=True)
    def test_incremental(start_cluster,cluster,newcluster):
        cluster.check_pbm_status()
        cluster.make_backup("incremental --base")
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup=cluster.make_backup("incremental")
        backup = backup + ' --replset-remapping="newrs1=rs1,newrs2=rs2,newrscfg=rscfg"'
        cluster.destroy()
    
        newcluster.make_resync()
        newcluster.make_restore(backup,restart_cluster=True, check_pbm_status=True)
>       assert pymongo.MongoClient(newcluster.connection)["test"]["test"].count_documents({}) == len(documents)
E       AssertionError: assert 3 == 4
E        +  where 3 = <bound method Collection.count_documents of Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')>({})
E        +    where <bound method Collection.count_documents of Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')> = Collection(Database(MongoClient(host=['newmongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test').count_documents
E        +  and   4 = len([{'_id': ObjectId('65b2cf00959391d20265c125'), 'a': 1}, {'_id': ObjectId('65b2cf00959391d20265c126'), 'b': 2}, {'_id': ObjectId('65b2cf00959391d20265c127'), 'c': 3}, {'_id': ObjectId('65b2cf00959391d20265c128'), 'd': 4}])

test_remap_sharded.py:107: AssertionError

Check failure on line 152 in psmdb-testing/pbm-functional/pytest/test_sharded.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test_sharded.test_incremental

AssertionError: assert 3 == 4
 +  where 3 = <bound method Collection.count_documents of Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')>({})
 +    where <bound method Collection.count_documents of Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')> = Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test').count_documents
 +  and   4 = len([{'_id': ObjectId('65b2d11a959391d20265c136'), 'a': 1}, {'_id': ObjectId('65b2d11a959391d20265c137'), 'b': 2}, {'_id': ObjectId('65b2d11a959391d20265c138'), 'c': 3}, {'_id': ObjectId('65b2d11a959391d20265c139'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fa16a0eded0>

    @pytest.mark.timeout(300,func_only=True)
    def test_incremental(start_cluster,cluster):
        cluster.check_pbm_status()
        cluster.make_backup("incremental --base")
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup = cluster.make_backup("incremental")
        result=pymongo.MongoClient(cluster.connection)["test"]["test"].delete_many({})
        assert int(result.deleted_count) == len(documents)
        cluster.make_restore(backup,restart_cluster=True, check_pbm_status=True)
>       assert pymongo.MongoClient(cluster.connection)["test"]["test"].count_documents({}) == len(documents)
E       AssertionError: assert 3 == 4
E        +  where 3 = <bound method Collection.count_documents of Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')>({})
E        +    where <bound method Collection.count_documents of Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test')> = Collection(Database(MongoClient(host=['mongos:27017'], document_class=dict, tz_aware=False, connect=True), 'test'), 'test').count_documents
E        +  and   4 = len([{'_id': ObjectId('65b2d11a959391d20265c136'), 'a': 1}, {'_id': ObjectId('65b2d11a959391d20265c137'), 'b': 2}, {'_id': ObjectId('65b2d11a959391d20265c138'), 'c': 3}, {'_id': ObjectId('65b2d11a959391d20265c139'), 'd': 4}])

test_sharded.py:152: AssertionError