Skip to content

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

[PBM-907] slice oplog during logical backup

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

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

16 tests run, 12 passed, 0 skipped, 4 failed.

Annotations

Check failure on line 111 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_physical

AssertionError: assert 0 == 4
 +  where 0 = <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('65b36c6cb1fb9a84ece279fd'), 'a': 1}, {'_id': ObjectId('65b36c6cb1fb9a84ece279fe'), 'b': 2}, {'_id': ObjectId('65b36c6cb1fb9a84ece279ff'), 'c': 3}, {'_id': ObjectId('65b36c6cb1fb9a84ece27a00'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fa113652590>

    @pytest.mark.timeout(300, func_only=True)
    def test_physical(start_cluster, cluster):
        cluster.check_pbm_status()
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup = cluster.make_backup("physical")
        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 0 == 4
E        +  where 0 = <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('65b36c6cb1fb9a84ece279fd'), 'a': 1}, {'_id': ObjectId('65b36c6cb1fb9a84ece279fe'), 'b': 2}, {'_id': ObjectId('65b36c6cb1fb9a84ece279ff'), 'c': 3}, {'_id': ObjectId('65b36c6cb1fb9a84ece27a00'), 'd': 4}])

test_azurite.py:111: AssertionError

Check failure on line 92 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_physical

AssertionError: assert 2 == 4
 +  where 2 = <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('65b36f57b1fb9a84ece27a17'), 'a': 1}, {'_id': ObjectId('65b36f57b1fb9a84ece27a18'), 'b': 2}, {'_id': ObjectId('65b36f57b1fb9a84ece27a19'), 'c': 3}, {'_id': ObjectId('65b36f57b1fb9a84ece27a1a'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fa112a9f950>
newcluster = <cluster.Cluster object at 0x7fa112a9fa50>

    @pytest.mark.testcase(test_case_key="T207", test_step_key=1)
    @pytest.mark.timeout(600,func_only=True)
    def test_physical(start_cluster,cluster,newcluster):
        cluster.check_pbm_status()
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup=cluster.make_backup("physical")
        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 2 == 4
E        +  where 2 = <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('65b36f57b1fb9a84ece27a17'), 'a': 1}, {'_id': ObjectId('65b36f57b1fb9a84ece27a18'), 'b': 2}, {'_id': ObjectId('65b36f57b1fb9a84ece27a19'), 'c': 3}, {'_id': ObjectId('65b36f57b1fb9a84ece27a1a'), 'd': 4}])

test_fresh_sharded.py:92: AssertionError

Check failure on line 92 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_physical

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('65b3717bb1fb9a84ece27a29'), 'a': 1}, {'_id': ObjectId('65b3717bb1fb9a84ece27a2a'), 'b': 2}, {'_id': ObjectId('65b3717bb1fb9a84ece27a2b'), 'c': 3}, {'_id': ObjectId('65b3717bb1fb9a84ece27a2c'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fa1081ef150>
newcluster = <cluster.Cluster object at 0x7fa10822e810>

    @pytest.mark.testcase(test_case_key="T242", test_step_key=1)
    @pytest.mark.timeout(600,func_only=True)
    def test_physical(start_cluster,cluster,newcluster):
        cluster.check_pbm_status()
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup=cluster.make_backup("physical")
        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('65b3717bb1fb9a84ece27a29'), 'a': 1}, {'_id': ObjectId('65b3717bb1fb9a84ece27a2a'), 'b': 2}, {'_id': ObjectId('65b3717bb1fb9a84ece27a2b'), 'c': 3}, {'_id': ObjectId('65b3717bb1fb9a84ece27a2c'), 'd': 4}])

test_remap_sharded.py:92: AssertionError

Check failure on line 114 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_physical

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('65b3737db1fb9a84ece27a3a'), 'a': 1}, {'_id': ObjectId('65b3737db1fb9a84ece27a3b'), 'b': 2}, {'_id': ObjectId('65b3737db1fb9a84ece27a3c'), 'c': 3}, {'_id': ObjectId('65b3737db1fb9a84ece27a3d'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fa1081ec450>

    @pytest.mark.timeout(600,func_only=True)
    def test_physical(start_cluster,cluster):
        cluster.check_pbm_status()
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup=cluster.make_backup("physical")
        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('65b3737db1fb9a84ece27a3a'), 'a': 1}, {'_id': ObjectId('65b3737db1fb9a84ece27a3b'), 'b': 2}, {'_id': ObjectId('65b3737db1fb9a84ece27a3c'), 'c': 3}, {'_id': ObjectId('65b3737db1fb9a84ece27a3d'), 'd': 4}])

test_sharded.py:114: AssertionError