[PBM-907] slice oplog during logical backup #175
GitHub Actions / JUnit Test Report
failed
Jan 25, 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
github-actions / JUnit Test Report
test_fresh_sharded.test_external
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('65b2c6798617b144484524b7'), 'a': 1}, {'_id': ObjectId('65b2c6798617b144484524b8'), 'b': 2}, {'_id': ObjectId('65b2c6798617b144484524b9'), 'c': 3}, {'_id': ObjectId('65b2c6798617b144484524ba'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f1d3b8e5e50>
newcluster = <cluster.Cluster object at 0x7f1d3b5da790>
@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 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('65b2c6798617b144484524b7'), 'a': 1}, {'_id': ObjectId('65b2c6798617b144484524b8'), 'b': 2}, {'_id': ObjectId('65b2c6798617b144484524b9'), 'c': 3}, {'_id': ObjectId('65b2c6798617b144484524ba'), 'd': 4}])
test_fresh_sharded.py:125: AssertionError
Check failure on line 170 in psmdb-testing/pbm-functional/pytest/test_sharded.py
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('65b2c7888617b144484524c1'), 'a': 1}, {'_id': ObjectId('65b2c7888617b144484524c2'), 'b': 2}, {'_id': ObjectId('65b2c7888617b144484524c3'), 'c': 3}, {'_id': ObjectId('65b2c7888617b144484524c4'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f1d3b4e3dd0>
@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('65b2c7888617b144484524c1'), 'a': 1}, {'_id': ObjectId('65b2c7888617b144484524c2'), 'b': 2}, {'_id': ObjectId('65b2c7888617b144484524c3'), 'c': 3}, {'_id': ObjectId('65b2c7888617b144484524c4'), 'd': 4}])
test_sharded.py:170: AssertionError
Loading