[PBM-907] slice oplog during logical backup #703
16 tests run, 12 passed, 0 skipped, 4 failed.
Annotations
Check failure on line 111 in psmdb-testing/pbm-functional/pytest/test_azurite.py
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('65b2c8f6b6860c4cf32f46b9'), 'a': 1}, {'_id': ObjectId('65b2c8f6b6860c4cf32f46ba'), 'b': 2}, {'_id': ObjectId('65b2c8f6b6860c4cf32f46bb'), 'c': 3}, {'_id': ObjectId('65b2c8f6b6860c4cf32f46bc'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f14a0560b90>
@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('65b2c8f6b6860c4cf32f46b9'), 'a': 1}, {'_id': ObjectId('65b2c8f6b6860c4cf32f46ba'), 'b': 2}, {'_id': ObjectId('65b2c8f6b6860c4cf32f46bb'), 'c': 3}, {'_id': ObjectId('65b2c8f6b6860c4cf32f46bc'), 'd': 4}])
test_azurite.py:111: AssertionError
Check failure on line 92 in psmdb-testing/pbm-functional/pytest/test_fresh_sharded.py
github-actions / JUnit Test Report
test_fresh_sharded.test_physical
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('65b2cbe3b6860c4cf32f46d3'), 'a': 1}, {'_id': ObjectId('65b2cbe3b6860c4cf32f46d4'), 'b': 2}, {'_id': ObjectId('65b2cbe3b6860c4cf32f46d5'), 'c': 3}, {'_id': ObjectId('65b2cbe3b6860c4cf32f46d6'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f14a049ee10>
newcluster = <cluster.Cluster object at 0x7f14a049fb10>
@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 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('65b2cbe3b6860c4cf32f46d3'), 'a': 1}, {'_id': ObjectId('65b2cbe3b6860c4cf32f46d4'), 'b': 2}, {'_id': ObjectId('65b2cbe3b6860c4cf32f46d5'), 'c': 3}, {'_id': ObjectId('65b2cbe3b6860c4cf32f46d6'), 'd': 4}])
test_fresh_sharded.py:92: AssertionError
Check failure on line 92 in psmdb-testing/pbm-functional/pytest/test_remap_sharded.py
github-actions / JUnit Test Report
test_remap_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('65b2ce0ab6860c4cf32f46e5'), 'a': 1}, {'_id': ObjectId('65b2ce0ab6860c4cf32f46e6'), 'b': 2}, {'_id': ObjectId('65b2ce0ab6860c4cf32f46e7'), 'c': 3}, {'_id': ObjectId('65b2ce0ab6860c4cf32f46e8'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f14a049df90>
newcluster = <cluster.Cluster object at 0x7f14a049ec50>
@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 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('65b2ce0ab6860c4cf32f46e5'), 'a': 1}, {'_id': ObjectId('65b2ce0ab6860c4cf32f46e6'), 'b': 2}, {'_id': ObjectId('65b2ce0ab6860c4cf32f46e7'), 'c': 3}, {'_id': ObjectId('65b2ce0ab6860c4cf32f46e8'), 'd': 4}])
test_remap_sharded.py:92: AssertionError
Check failure on line 114 in psmdb-testing/pbm-functional/pytest/test_sharded.py
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('65b2d00ab6860c4cf32f46f6'), 'a': 1}, {'_id': ObjectId('65b2d00ab6860c4cf32f46f7'), 'b': 2}, {'_id': ObjectId('65b2d00ab6860c4cf32f46f8'), 'c': 3}, {'_id': ObjectId('65b2d00ab6860c4cf32f46f9'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f14a0565750>
@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('65b2d00ab6860c4cf32f46f6'), 'a': 1}, {'_id': ObjectId('65b2d00ab6860c4cf32f46f7'), 'b': 2}, {'_id': ObjectId('65b2d00ab6860c4cf32f46f8'), 'c': 3}, {'_id': ObjectId('65b2d00ab6860c4cf32f46f9'), 'd': 4}])
test_sharded.py:114: AssertionError