[PBM-907] slice oplog during logical backup #175
GitHub Actions / JUnit Test Report
failed
Jan 25, 2024 in 0s
13 tests run, 10 passed, 0 skipped, 3 failed.
Annotations
Check failure on line 124 in psmdb-testing/pbm-functional/pytest/test_azurite.py
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('65b2c989e015c4a2640d7a68'), 'a': 1}, {'_id': ObjectId('65b2c989e015c4a2640d7a69'), 'b': 2}, {'_id': ObjectId('65b2c989e015c4a2640d7a6a'), 'c': 3}, {'_id': ObjectId('65b2c989e015c4a2640d7a6b'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f18a5c2f890>
@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('65b2c989e015c4a2640d7a68'), 'a': 1}, {'_id': ObjectId('65b2c989e015c4a2640d7a69'), 'b': 2}, {'_id': ObjectId('65b2c989e015c4a2640d7a6a'), 'c': 3}, {'_id': ObjectId('65b2c989e015c4a2640d7a6b'), 'd': 4}])
test_azurite.py:124: AssertionError
Check failure on line 107 in psmdb-testing/pbm-functional/pytest/test_fresh_sharded.py
github-actions / JUnit Test Report
test_fresh_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('65b2cc19e015c4a2640d7a82'), 'a': 1}, {'_id': ObjectId('65b2cc19e015c4a2640d7a83'), 'b': 2}, {'_id': ObjectId('65b2cc19e015c4a2640d7a84'), 'c': 3}, {'_id': ObjectId('65b2cc19e015c4a2640d7a85'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f18a5ab2bd0>
newcluster = <cluster.Cluster object at 0x7f18a5ab2350>
@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 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('65b2cc19e015c4a2640d7a82'), 'a': 1}, {'_id': ObjectId('65b2cc19e015c4a2640d7a83'), 'b': 2}, {'_id': ObjectId('65b2cc19e015c4a2640d7a84'), 'c': 3}, {'_id': ObjectId('65b2cc19e015c4a2640d7a85'), 'd': 4}])
test_fresh_sharded.py:107: AssertionError
Check failure on line 107 in psmdb-testing/pbm-functional/pytest/test_remap_sharded.py
github-actions / JUnit Test Report
test_remap_sharded.test_incremental
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('65b2ce06e015c4a2640d7a94'), 'a': 1}, {'_id': ObjectId('65b2ce06e015c4a2640d7a95'), 'b': 2}, {'_id': ObjectId('65b2ce06e015c4a2640d7a96'), 'c': 3}, {'_id': ObjectId('65b2ce06e015c4a2640d7a97'), 'd': 4}])
Raw output
start_cluster = True, cluster = <cluster.Cluster object at 0x7f18a5ba4b90>
newcluster = <cluster.Cluster object at 0x7f18a5ba7bd0>
@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 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('65b2ce06e015c4a2640d7a94'), 'a': 1}, {'_id': ObjectId('65b2ce06e015c4a2640d7a95'), 'b': 2}, {'_id': ObjectId('65b2ce06e015c4a2640d7a96'), 'c': 3}, {'_id': ObjectId('65b2ce06e015c4a2640d7a97'), 'd': 4}])
test_remap_sharded.py:107: AssertionError
Loading