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

5 tests run, 3 passed, 0 skipped, 2 failed.

Annotations

Check failure on line 125 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_external

AssertionError: assert 1 == 4
 +  where 1 = <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('65b368f2fadbde5c49c1f8c0'), 'a': 1}, {'_id': ObjectId('65b368f2fadbde5c49c1f8c1'), 'b': 2}, {'_id': ObjectId('65b368f2fadbde5c49c1f8c2'), 'c': 3}, {'_id': ObjectId('65b368f2fadbde5c49c1f8c3'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7fccb9419f90>
newcluster = <cluster.Cluster object at 0x7fccb9419550>

    @pytest.mark.testcase(test_case_key="T238", test_step_key=1)
    @pytest.mark.timeout(600,func_only=True)
    def test_external(start_cluster,cluster,newcluster):
        cluster.check_pbm_status()
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup = cluster.external_backup_start()
        cluster.external_backup_copy(backup)
        cluster.external_backup_finish(backup)
        cluster.destroy()
    
        newcluster.make_resync()
        restore=newcluster.external_restore_start()
        newcluster.external_restore_copy(backup)
        newcluster.external_restore_finish(restore)
>       assert pymongo.MongoClient(newcluster.connection)["test"]["test"].count_documents({}) == len(documents)
E       AssertionError: assert 1 == 4
E        +  where 1 = <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('65b368f2fadbde5c49c1f8c0'), 'a': 1}, {'_id': ObjectId('65b368f2fadbde5c49c1f8c1'), 'b': 2}, {'_id': ObjectId('65b368f2fadbde5c49c1f8c2'), 'c': 3}, {'_id': ObjectId('65b368f2fadbde5c49c1f8c3'), 'd': 4}])

test_fresh_sharded.py:125: AssertionError

Check failure on line 170 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_external_meta

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

    @pytest.mark.testcase(test_case_key="T236", test_step_key=1)
    @pytest.mark.timeout(600,func_only=True)
    def test_external_meta(start_cluster,cluster):
        cluster.check_pbm_status()
        pymongo.MongoClient(cluster.connection)["test"]["test"].insert_many(documents)
        backup = cluster.external_backup_start()
        result=pymongo.MongoClient(cluster.connection)["test"]["test"].delete_many({})
        assert int(result.deleted_count) == len(documents)
        cluster.external_backup_copy(backup)
        cluster.external_backup_finish(backup)
        time.sleep(10)
        restore=cluster.external_restore_start()
        cluster.external_restore_copy(backup)
        cluster.external_restore_finish(restore)
>       assert pymongo.MongoClient(cluster.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=['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('65b36a35fadbde5c49c1f8ca'), 'a': 1}, {'_id': ObjectId('65b36a35fadbde5c49c1f8cb'), 'b': 2}, {'_id': ObjectId('65b36a35fadbde5c49c1f8cc'), 'c': 3}, {'_id': ObjectId('65b36a35fadbde5c49c1f8cd'), 'd': 4}])

test_sharded.py:170: AssertionError