You are viewing a plain text version of this content. The canonical link for it is here.
Posted to builds@cassandra.apache.org by Apache Jenkins Server <je...@builds.apache.org> on 2020/10/14 10:35:51 UTC
Build complete: Cassandra-3.0 #21 [UNSTABLE]
6eeca9d6cc482417fd4564302baa349ed76fd7ec
-------------------------------------------------------------------------------
Build Cassandra-3.0 #21 Still Unstable
URL: https://ci-cassandra.apache.org/job/Cassandra-3.0/21/
-------------------------------------------------------------------------------
Changes:
[Alex Petrov] Fix NPE when calling broadcast address on unintialized node
-------------------------------------------------------------------------------
Failed Tests:
6 tests failed.
FAILED: org.apache.cassandra.distributed.upgrade.UpgradeTest.simpleUpgradeWithNetworkAndGossipTest
FAILED: org.apache.cassandra.distributed.test.GossipTest.nodeDownDuringMove
FAILED: org.apache.cassandra.db.ScrubTest.testScrubCorruptedCounterRow
FAILED: dtest-novnode.offline_tools_test.TestOfflineTools.test_sstableverify
FAILED: dtest.offline_tools_test.TestOfflineTools.test_sstableverify
FAILED: org.apache.cassandra.concurrent.LongSharedExecutorPoolTest.testPromptnessOfExecution
-------------------------------------------------------------------------------
Cassandra CI Results
-------------------------------------------------------------------------------
Tests Failures Errors Skipped Success rate Time
8321 3 355 29 95.70% 77091.542
-------------------------------------------------------------------------------
Name Tests Errors Failures Skipped Time(s)
2572 352 2 0 68483.997
org.apache.cassandra.auth 22 0 0 0 11.317
org.apache.cassandra.batchlog 30 0 0 0 16.313
org.apache.cassandra.cache 6 0 0 0 11.500
org.apache.cassandra.concurrent 12 0 1 0 369.144
org.apache.cassandra.config 24 0 0 0 9.449
org.apache.cassandra.cql.jdbc 2 0 0 0 0.133
org.apache.cassandra.cql3 382 0 0 12 1404.649
org.apache.cassandra.cql3.functions 26 0 0 0 1.013
org.apache.cassandra.cql3.restrictions 46 0 0 0 1.487
org.apache.cassandra.cql3.selection 4 0 0 0 9.231
org.apache.cassandra.cql3.validation 42 0 0 0 43.865
org.apache.cassandra.cql3.validation.entities 658 0 0 2 717.956
org.apache.cassandra.cql3.validation.miscellaneous 86 0 0 0 82.407
org.apache.cassandra.cql3.validation.operations 756 0 0 0 723.194
org.apache.cassandra.db 608 1 0 0 341.115
org.apache.cassandra.db.columniterator 2 0 0 0 4.987
org.apache.cassandra.db.commitlog 291 0 0 2 501.390
org.apache.cassandra.db.compaction 168 0 0 2 367.804
org.apache.cassandra.db.composites 6 0 0 0 0.880
org.apache.cassandra.db.context 16 0 0 0 2.831
org.apache.cassandra.db.filter 10 0 0 0 3.144
org.apache.cassandra.db.lifecycle 136 0 0 0 38.487
org.apache.cassandra.db.marshal 234 0 0 0 46.904
org.apache.cassandra.db.partition 24 0 0 0 104.279
org.apache.cassandra.db.partitions 16 0 0 0 1.400
org.apache.cassandra.db.rows 96 0 0 0 53.936
org.apache.cassandra.db.transform 44 0 0 0 13.188
org.apache.cassandra.db.view 6 0 0 0 2.199
org.apache.cassandra.dht 132 0 0 0 47.034
org.apache.cassandra.dht.tokenallocator 2 0 0 0 138.344
org.apache.cassandra.distributed.test 54 1 0 1 423.491
org.apache.cassandra.distributed.upgrade 12 1 0 0 360.873
org.apache.cassandra.gms 26 0 0 0 20.065
org.apache.cassandra.hadoop 2 0 0 0 0.600
org.apache.cassandra.hints 65 0 0 0 459.225
org.apache.cassandra.index 58 0 0 0 60.865
org.apache.cassandra.index.internal 56 0 0 0 65.001
org.apache.cassandra.io 10 0 0 0 36.383
org.apache.cassandra.io.compress 48 0 0 0 19.211
org.apache.cassandra.io.sstable 213 0 0 2 425.424
org.apache.cassandra.io.sstable.format 2 0 0 0 1.430
org.apache.cassandra.io.sstable.metadata 12 0 0 0 1.607
org.apache.cassandra.io.util 264 0 0 0 83.160
org.apache.cassandra.locator 77 0 0 0 172.520
org.apache.cassandra.metrics 30 0 0 0 31.569
org.apache.cassandra.net 10 0 0 0 10.975
org.apache.cassandra.repair 18 0 0 0 41.009
org.apache.cassandra.repair.messages 24 0 0 0 2.682
org.apache.cassandra.schema 38 0 0 0 29.449
org.apache.cassandra.security 4 0 0 0 1.288
org.apache.cassandra.serializers 54 0 0 0 1.874
org.apache.cassandra.service 202 0 0 2 160.984
org.apache.cassandra.service.pager 14 0 0 0 1.503
org.apache.cassandra.streaming 16 0 0 0 14.570
org.apache.cassandra.streaming.compression 6 0 0 0 1.518
org.apache.cassandra.transport 48 0 0 0 83.626
org.apache.cassandra.triggers 48 0 0 0 16.535
org.apache.cassandra.utils 332 0 0 4 861.032
org.apache.cassandra.utils.concurrent 34 0 0 2 12.536
org.apache.cassandra.utils.memory 69 0 0 0 136.274
org.apache.cassandra.utils.progress.jmx 10 0 0 0 0.551
org.apache.cassandra.utils.vint 6 0 0 0 0.135
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Packages
-------------------------------------------------------------------------------
Name Tests Errors Failures Skipped Time(s)
Cassandra dtests 9 2 0 556.695
Cassandra dtests 5 0 0 682.127
Cassandra dtests 3 0 0 492.617
Cassandra dtests 4 0 0 262.476
Cassandra dtests 3 0 0 284.630
Cassandra dtests 3 0 0 518.927
Cassandra dtests 6 1 0 636.975
Cassandra dtests 5 0 0 515.702
Cassandra dtests 20 1 0 450.973
Cassandra dtests 22 5 0 481.098
Cassandra dtests 22 5 0 387.489
Cassandra dtests 22 5 0 502.677
Cassandra dtests 22 4 0 553.507
Cassandra dtests 22 4 0 433.628
Cassandra dtests 20 2 0 590.566
Cassandra dtests 19 1 0 501.524
Cassandra dtests 21 3 0 751.573
Cassandra dtests 21 3 0 644.164
Cassandra dtests 21 3 0 1113.992
Cassandra dtests 22 3 0 417.876
Cassandra dtests 20 3 0 383.711
Cassandra dtests 17 1 0 563.058
Cassandra dtests 19 2 0 502.351
Cassandra dtests 19 3 0 319.669
Cassandra dtests 20 3 0 285.713
Cassandra dtests 20 3 0 398.291
Cassandra dtests 23 5 0 274.817
Cassandra dtests 25 7 0 183.211
Cassandra dtests 24 5 0 519.926
Cassandra dtests 21 4 0 604.745
Cassandra dtests 25 6 0 325.743
Cassandra dtests 20 3 0 352.401
Cassandra dtests 21 4 0 329.404
Cassandra dtests 19 4 0 194.079
Cassandra dtests 21 5 0 362.558
Cassandra dtests 21 4 0 337.460
Cassandra dtests 19 2 0 419.626
Cassandra dtests 22 5 0 293.590
Cassandra dtests 20 5 0 265.612
Cassandra dtests 22 5 0 431.287
Cassandra dtests 19 2 0 632.085
Cassandra dtests 22 4 0 313.264
Cassandra dtests 18 1 0 895.198
Cassandra dtests 21 4 1 773.758
Cassandra dtests 20 3 0 656.958
Cassandra dtests 20 3 0 471.825
Cassandra dtests 20 3 0 418.077
Cassandra dtests 21 4 0 461.994
Cassandra dtests 21 4 0 464.676
Cassandra dtests 23 5 0 408.217
Cassandra dtests 21 3 0 524.284
Cassandra dtests 21 3 0 581.560
Cassandra dtests 21 3 0 352.290
Cassandra dtests 20 2 0 1083.121
Cassandra dtests 20 2 0 767.600
Cassandra dtests 20 2 0 750.943
Cassandra dtests 20 2 0 562.913
Cassandra dtests 21 3 0 435.781
Cassandra dtests 19 1 0 508.418
Cassandra dtests 21 3 0 674.675
Cassandra dtests 19 2 0 643.974
Cassandra dtests 21 3 0 751.191
Cassandra dtests 19 1 0 610.598
Cassandra dtests 21 3 0 504.069
Cassandra dtests 20 2 0 710.143
Cassandra dtests 19 1 0 865.726
Cassandra dtests 19 1 0 675.932
Cassandra dtests 18 0 0 541.972
Cassandra dtests 18 0 0 501.416
Cassandra dtests 20 2 0 494.972
Cassandra dtests 20 2 0 417.857
Cassandra dtests 22 4 0 474.609
Cassandra dtests 22 4 0 707.328
Cassandra dtests 17 1 0 483.241
Cassandra dtests 16 0 0 376.386
Cassandra dtests 17 1 0 554.134
Cassandra dtests 19 2 0 498.510
Cassandra dtests 21 4 0 268.677
Cassandra dtests 20 3 0 449.750
Cassandra dtests 19 2 0 589.891
Cassandra dtests 18 2 0 380.319
Cassandra dtests 19 4 0 401.677
Cassandra dtests 17 2 0 266.766
Cassandra dtests 22 4 0 589.074
Cassandra dtests 19 2 0 504.590
Cassandra dtests 20 3 0 436.813
Cassandra dtests 19 2 0 284.612
Cassandra dtests 20 2 0 272.736
Cassandra dtests 21 4 0 367.531
Cassandra dtests 18 1 0 579.880
Cassandra dtests 18 1 0 546.676
Cassandra dtests 21 4 0 419.585
Cassandra dtests 20 4 0 383.212
Cassandra dtests 18 2 0 430.109
Cassandra dtests 21 3 0 564.898
Cassandra dtests 16 0 0 501.050
Cassandra dtests 18 2 0 403.019
Cassandra dtests 17 2 0 385.110
Cassandra dtests 15 2 0 220.778
Cassandra dtests 19 3 0 652.830
Cassandra dtests 20 3 0 566.035
Cassandra dtests 18 3 1 509.975
Cassandra dtests 20 4 0 328.930
Cassandra dtests 20 4 0 412.348
Cassandra dtests 19 3 0 402.916
Cassandra dtests 22 4 0 585.870
Cassandra dtests 19 3 0 236.778
Cassandra dtests 21 4 0 241.826
Cassandra dtests 21 4 0 217.681
Cassandra dtests 22 5 0 234.980
Cassandra dtests 18 1 0 400.674
Cassandra dtests 18 1 0 408.643
Cassandra dtests 17 0 0 732.079
Cassandra dtests 17 0 0 666.740
Cassandra dtests 18 1 0 408.730
Cassandra dtests 18 1 0 514.707
Cassandra dtests 22 5 0 546.351
Cassandra dtests 18 1 0 449.669
Cassandra dtests 19 2 0 569.378
Cassandra dtests 18 1 0 539.094
Cassandra dtests 19 2 0 617.963
Cassandra dtests 18 1 0 476.835
Cassandra dtests 19 2 0 571.415
Cassandra dtests 18 1 0 454.754
Cassandra dtests 19 2 0 654.435
Cassandra dtests 18 1 0 682.599
Cassandra dtests 18 1 0 545.520
Cassandra dtests 20 3 0 828.194
Cassandra dtests 19 2 0 688.979
Cassandra dtests 21 4 0 858.370
Cassandra dtests 21 4 0 1020.106
Cassandra dtests 22 5 0 539.827
Cassandra dtests 19 2 0 635.508
Cassandra dtests 18 3 0 444.554
Cassandra dtests 17 1 0 477.255
Cassandra dtests 19 3 0 438.533
-------------------------------------------------------------------------------
org.apache.cassandra.auth
Name Tests Errors Failures Skipped Time(s)
PasswordAuthenticatorTest-compression 7 0 0 0 6.160
RoleOptionsTest-compression 4 0 0 0 0.568
PasswordAuthenticatorTest 7 0 0 0 3.967
RoleOptionsTest 4 0 0 0 0.622
-------------------------------------------------------------------------------
org.apache.cassandra.batchlog
Name Tests Errors Failures Skipped Time(s)
BatchTest-compression 2 0 0 0 2.229
BatchlogEndpointFilterTest-compression 5 0 0 0 0.113
BatchlogManagerTest-compression 8 0 0 0 5.870
BatchTest 2 0 0 0 2.162
BatchlogEndpointFilterTest 5 0 0 0 0.130
BatchlogManagerTest 8 0 0 0 5.809
-------------------------------------------------------------------------------
org.apache.cassandra.cache
Name Tests Errors Failures Skipped Time(s)
AutoSavingCacheTest-compression 1 0 0 0 2.385
CacheProviderTest-compression 2 0 0 0 3.353
AutoSavingCacheTest 1 0 0 0 2.309
CacheProviderTest 2 0 0 0 3.453
-------------------------------------------------------------------------------
org.apache.cassandra.concurrent
Name Tests Errors Failures Skipped Time(s)
LongOpOrderTest 1 0 0 0 330.911
LongSharedExecutorPoolTest 1 0 1 0 0.758
DebuggableScheduledThreadPoolExecutorTest- 1 0 0 0 14.182
compression
DebuggableThreadPoolExecutorTest- 1 0 0 0 1.038
compression
SEPExecutorTest-compression 1 0 0 0 3.562
WaitQueueTest-compression 2 0 0 0 0.077
DebuggableScheduledThreadPoolExecutorTest 1 0 0 0 13.939
DebuggableThreadPoolExecutorTest 1 0 0 0 1.098
SEPExecutorTest 1 0 0 0 3.505
WaitQueueTest 2 0 0 0 0.074
-------------------------------------------------------------------------------
org.apache.cassandra.config
Name Tests Errors Failures Skipped Time(s)
CFMetaDataTest-compression 2 0 0 0 2.139
ColumnDefinitionTest-compression 1 0 0 0 0.677
DatabaseDescriptorTest-compression 9 0 0 0 1.856
CFMetaDataTest 2 0 0 0 2.120
ColumnDefinitionTest 1 0 0 0 0.763
DatabaseDescriptorTest 9 0 0 0 1.894
-------------------------------------------------------------------------------
org.apache.cassandra.cql.jdbc
Name Tests Errors Failures Skipped Time(s)
JdbcDecimalTest-compression 1 0 0 0 0.065
JdbcDecimalTest 1 0 0 0 0.068
-------------------------------------------------------------------------------
org.apache.cassandra.cql3
Name Tests Errors Failures Skipped Time(s)
CorruptionTest 1 0 0 0 126.322
ManyRowsTest 2 0 0 0 5.727
ViewLongTest 5 0 0 0 99.837
CQL3TypeLiteralTest-compression 6 0 0 0 0.691
ColumnConditionTest-compression 4 0 0 0 0.903
ColumnIdentifierTest-compression 3 0 0 0 0.397
CqlParserTest-compression 2 0 0 0 0.167
DeleteTest-compression 1 0 0 0 18.722
DistinctQueryPagingTest-compression 5 0 0 0 14.631
EmptyValuesTest-compression 14 0 0 5 34.952
ErrorCollectorTest-compression 6 0 0 0 0.065
IndexQueryPagingTest-compression 4 0 0 0 12.696
KeyCacheCqlTest-compression 5 0 0 0 15.875
LargeCompactValueTest-compression 1 0 0 0 2.611
ListsTest-compression 6 0 0 0 5.406
NonNativeTimestampTest-compression 1 0 0 0 2.604
OutOfSpaceTest-compression 3 0 0 0 4.033
PagingTest-compression 1 0 0 0 11.370
PreparedStatementsTest-compression 3 0 0 0 23.350
QueryWithIndexedSSTableTest-compression 1 0 0 0 3.237
ReservedKeywordsTest-compression 1 0 0 0 0.450
SerializationMirrorTest-compression 1 0 0 0 2.606
SimpleQueryTest-compression 18 0 0 0 16.791
ThriftCompatibilityTest-compression 2 0 0 0 2.591
TombstonesWithIndexedSSTableTest- 2 0 0 0 5.258
compression
UDHelperTest-compression 3 0 0 0 0.333
ViewComplexTest-compression 32 0 0 1 170.589
ViewFilteringTest-compression 14 0 0 0 127.025
ViewSchemaTest-compression 6 0 0 0 62.416
ViewTest-compression 42 0 0 0 114.691
CQL3TypeLiteralTest 6 0 0 0 0.728
ColumnConditionTest 4 0 0 0 1.023
ColumnIdentifierTest 3 0 0 0 0.485
CqlParserTest 2 0 0 0 0.192
DeleteTest 1 0 0 0 18.172
DistinctQueryPagingTest 5 0 0 0 10.848
EmptyValuesTest 14 0 0 5 29.338
ErrorCollectorTest 6 0 0 0 0.087
IndexQueryPagingTest 4 0 0 0 10.023
KeyCacheCqlTest 5 0 0 0 14.359
LargeCompactValueTest 1 0 0 0 2.486
ListsTest 6 0 0 0 3.631
NonNativeTimestampTest 1 0 0 0 2.498
OutOfSpaceTest 3 0 0 0 3.127
PagingTest 1 0 0 0 10.496
PreparedStatementsTest 3 0 0 0 21.377
QueryWithIndexedSSTableTest 1 0 0 0 3.085
ReservedKeywordsTest 1 0 0 0 0.514
SerializationMirrorTest 1 0 0 0 2.523
SimpleQueryTest 18 0 0 0 7.688
ThriftCompatibilityTest 2 0 0 0 2.562
TombstonesWithIndexedSSTableTest 2 0 0 0 4.211
UDHelperTest 3 0 0 0 0.369
ViewComplexTest 32 0 0 1 138.348
ViewFilteringTest 14 0 0 0 97.262
ViewSchemaTest 6 0 0 0 51.167
ViewTest 42 0 0 0 81.704
-------------------------------------------------------------------------------
org.apache.cassandra.cql3.functions
Name Tests Errors Failures Skipped Time(s)
TimeFctsTest-compression 13 0 0 0 0.457
TimeFctsTest 13 0 0 0 0.556
-------------------------------------------------------------------------------
org.apache.cassandra.cql3.restrictions
Name Tests Errors Failures Skipped Time(s)
PrimaryKeyRestrictionSetTest-compression 23 0 0 0 0.712
PrimaryKeyRestrictionSetTest 23 0 0 0 0.775
-------------------------------------------------------------------------------
org.apache.cassandra.cql3.selection
Name Tests Errors Failures Skipped Time(s)
SelectionColumnMappingTest-compression 2 0 0 0 5.158
SelectionColumnMappingTest 2 0 0 0 4.073
-------------------------------------------------------------------------------
org.apache.cassandra.cql3.validation
Name Tests Errors Failures Skipped Time(s)
ThriftIllegalColumnsTest-compression 2 0 0 0 4.013
ThriftIntegrationTest-compression 19 0 0 0 25.374
ThriftIllegalColumnsTest 2 0 0 0 3.262
ThriftIntegrationTest 19 0 0 0 11.216
-------------------------------------------------------------------------------
org.apache.cassandra.cql3.validation.entities
Name Tests Errors Failures Skipped Time(s)
CollectionsTest-compression 37 0 0 0 30.654
CountersTest-compression 7 0 0 0 7.283
DateTypeTest-compression 1 0 0 0 2.597
FrozenCollectionsTest-compression 34 0 0 0 39.036
JsonTest-compression 18 0 0 0 31.892
RowUpdateBuilderTest-compression 2 0 0 0 3.765
SecondaryIndexOnMapEntriesTest- 11 0 0 0 12.319
compression
SecondaryIndexTest-compression 41 0 0 0 67.465
StaticColumnsTest-compression 7 0 0 0 9.554
TimestampTest-compression 6 0 0 0 7.194
TimeuuidTest-compression 2 0 0 0 4.034
TupleTypeTest-compression 11 0 0 0 14.939
TypeTest-compression 4 0 0 0 6.147
UFAuthTest-compression 26 0 0 0 36.744
UFIdentificationTest-compression 14 0 0 1 39.095
UFJavaTest-compression 18 0 0 0 37.994
UFPureScriptTupleCollectionTest- 1 0 0 0 10.209
compression
UFScriptTest-compression 12 0 0 0 23.295
UFSecurityTest-compression 2 0 0 0 6.516
UFTest-compression 25 0 0 0 30.556
UFTypesTest-compression 7 0 0 0 22.161
UFVerifierTest-compression 17 0 0 0 9.624
UserTypesTest-compression 26 0 0 0 33.796
CollectionsTest 37 0 0 0 12.670
CountersTest 7 0 0 0 4.452
DateTypeTest 1 0 0 0 2.543
FrozenCollectionsTest 34 0 0 0 12.794
JsonTest 18 0 0 0 17.078
RowUpdateBuilderTest 2 0 0 0 2.779
SecondaryIndexOnMapEntriesTest 11 0 0 0 6.123
SecondaryIndexTest 41 0 0 0 24.633
StaticColumnsTest 7 0 0 0 5.899
TimestampTest 6 0 0 0 4.138
TimeuuidTest 2 0 0 0 2.873
TupleTypeTest 11 0 0 0 5.757
TypeTest 4 0 0 0 3.319
UFAuthTest 26 0 0 0 12.015
UFIdentificationTest 14 0 0 1 13.440
UFJavaTest 18 0 0 0 20.573
UFPureScriptTupleCollectionTest 1 0 0 0 9.265
UFScriptTest 12 0 0 0 14.250
UFSecurityTest 2 0 0 0 5.152
UFTest 25 0 0 0 17.157
UFTypesTest 7 0 0 0 14.535
UFVerifierTest 17 0 0 0 5.442
UserTypesTest 26 0 0 0 14.200
-------------------------------------------------------------------------------
org.apache.cassandra.cql3.validation.miscellaneous
Name Tests Errors Failures Skipped Time(s)
CrcCheckChanceTest-compression 3 0 0 0 9.244
OverflowTest-compression 15 0 0 0 13.238
PgStringTest-compression 3 0 0 0 4.114
RoleSyntaxTest-compression 9 0 0 0 5.511
SSTableMetadataTrackingTest-compression 7 0 0 0 7.581
SSTablesIteratedTest-compression 1 0 0 0 3.003
TombstonesTest-compression 5 0 0 0 8.003
CrcCheckChanceTest 3 0 0 0 5.266
OverflowTest 15 0 0 0 6.633
PgStringTest 3 0 0 0 3.199
RoleSyntaxTest 9 0 0 0 3.545
SSTableMetadataTrackingTest 7 0 0 0 4.415
SSTablesIteratedTest 1 0 0 0 2.617
TombstonesTest 5 0 0 0 6.038
-------------------------------------------------------------------------------
org.apache.cassandra.cql3.validation.operations
Name Tests Errors Failures Skipped Time(s)
AggregationTest-compression 51 0 0 0 73.619
AlterTest-compression 31 0 0 0 47.883
BatchTest-compression 10 0 0 0 12.593
CreateTest-compression 23 0 0 0 22.630
DeleteTest-compression 32 0 0 0 44.170
DropCompactStorageThriftTest-compression 11 0 0 0 11.554
DropRecreateAndRestoreTest-compression 4 0 0 0 5.017
DropTest-compression 2 0 0 0 3.432
InsertTest-compression 11 0 0 0 13.358
InsertUpdateIfConditionTest-compression 36 0 0 0 50.760
SelectLimitTest-compression 9 0 0 0 16.954
SelectMultiColumnRelationTest-compression 22 0 0 0 24.181
SelectOrderByTest-compression 17 0 0 0 17.759
SelectOrderedPartitionerTest-compression 16 0 0 0 19.939
SelectSingleColumnRelationTest- 23 0 0 0 35.131
compression
SelectTest-compression 60 0 0 0 81.161
TTLTest-compression 7 0 0 0 20.968
TruncateTest-compression 1 0 0 0 3.133
UpdateTest-compression 11 0 0 0 18.681
UseTest-compression 1 0 0 0 2.387
AggregationTest 51 0 0 0 22.656
AlterTest 31 0 0 0 12.898
BatchTest 10 0 0 0 5.257
CreateTest 23 0 0 0 9.261
DeleteTest 32 0 0 0 18.750
DropCompactStorageThriftTest 11 0 0 0 6.325
DropRecreateAndRestoreTest 4 0 0 0 3.567
DropTest 2 0 0 0 2.809
InsertTest 11 0 0 0 6.257
InsertUpdateIfConditionTest 36 0 0 0 17.548
SelectLimitTest 9 0 0 0 11.747
SelectMultiColumnRelationTest 22 0 0 0 10.164
SelectOrderByTest 17 0 0 0 8.161
SelectOrderedPartitionerTest 16 0 0 0 7.450
SelectSingleColumnRelationTest 23 0 0 0 10.215
SelectTest 60 0 0 0 22.334
TTLTest 7 0 0 0 8.362
TruncateTest 1 0 0 0 2.693
UpdateTest 11 0 0 0 9.055
UseTest 1 0 0 0 2.375
-------------------------------------------------------------------------------
org.apache.cassandra.db
Name Tests Errors Failures Skipped Time(s)
CellTest-compression 9 0 0 0 2.142
CleanupTest-compression 6 0 0 0 8.809
ColumnFamilyMetricTest-compression 2 0 0 0 2.458
ColumnFamilyStoreCQLHelperTest- 18 0 0 0 14.276
compression
ColumnFamilyStoreTest-compression 8 0 0 0 4.323
ColumnsTest-compression 8 0 0 0 1.092
CounterCacheTest-compression 5 0 0 0 2.652
CounterCellTest-compression 5 0 0 0 2.269
CounterMutationTest-compression 4 0 0 0 2.622
DeletePartitionTest-compression 1 0 0 0 2.383
DirectoriesTest-compression 9 0 0 0 0.761
KeyCacheTest-compression 3 0 0 0 2.931
KeyspaceTest-compression 10 0 0 0 10.341
LegacyCellNameTest-compression 5 0 0 0 0.836
LegacyLayoutTest-compression 10 0 0 0 3.001
LegacyLayoutValidationTest-compression 15 0 0 0 0.690
LivenessInfoTest-compression 2 0 0 0 0.348
MmapFileTest-compression 1 0 0 0 0.142
MultiKeyspaceTest-compression 1 0 0 0 2.764
NameSortTest-compression 3 0 0 0 2.587
OldFormatDeserializerTest-compression 2 0 0 0 0.704
PartitionRangeReadTest-compression 7 0 0 0 3.013
PartitionTest-compression 5 0 0 0 2.515
RangeTombstoneListTest-compression 23 0 0 0 0.488
RangeTombstoneTest-compression 14 0 0 0 4.093
ReadMessageTest-compression 3 0 0 0 2.313
ReadResponseTest-compression 1 0 0 0 2.552
RecoveryManagerFlushedTest-compression 4 0 0 0 3.477
RecoveryManagerMissingHeaderTest- 4 0 0 0 3.476
compression
RecoveryManagerTest-compression 24 0 0 0 11.330
RecoveryManagerTruncateTest-compression 4 0 0 0 3.723
RemoveCellTest-compression 1 0 0 0 2.657
RepairedDataTombstonesTest-compression 7 0 0 0 29.798
RowCacheCQLTest-compression 3 0 0 0 4.306
RowCacheTest-compression 11 0 0 0 3.843
RowIndexEntryTest-compression 2 0 0 0 3.704
RowIterationTest-compression 3 0 0 0 4.229
RowTest-compression 4 0 0 0 2.134
ScrubTest 1 1 0 0 0.000
SecondaryIndexTest-compression 13 0 0 0 10.247
SerializationHeaderTest-compression 1 0 0 0 1.089
SinglePartitionReadCommandCQLTest- 1 0 0 0 2.665
compression
SinglePartitionSliceCommandTest- 8 0 0 0 3.410
compression
SystemKeyspaceTest-compression 9 0 0 0 1.726
TimeSortTest-compression 2 0 0 0 3.995
TransformerTest-compression 1 0 0 0 0.672
VerifyTest-compression 12 0 0 0 2.995
CellTest 9 0 0 0 2.235
CleanupTest 6 0 0 0 6.642
ColumnFamilyMetricTest 2 0 0 0 2.462
ColumnFamilyStoreCQLHelperTest 18 0 0 0 6.864
ColumnFamilyStoreTest 8 0 0 0 3.316
ColumnsTest 8 0 0 0 1.237
CounterCacheTest 5 0 0 0 2.555
CounterCellTest 5 0 0 0 2.202
CounterMutationTest 4 0 0 0 2.498
DeletePartitionTest 1 0 0 0 2.305
DirectoriesTest 9 0 0 0 0.896
KeyCacheTest 3 0 0 0 2.896
KeyspaceTest 10 0 0 0 6.165
LegacyCellNameTest 5 0 0 0 0.874
LegacyLayoutTest 10 0 0 0 2.777
LegacyLayoutValidationTest 15 0 0 0 0.785
LivenessInfoTest 2 0 0 0 0.398
MmapFileTest 1 0 0 0 0.158
MultiKeyspaceTest 1 0 0 0 2.472
NameSortTest 3 0 0 0 2.645
OldFormatDeserializerTest 2 0 0 0 0.783
PartitionRangeReadTest 7 0 0 0 2.662
PartitionTest 5 0 0 0 2.444
RangeTombstoneListTest 23 0 0 0 0.557
RangeTombstoneTest 14 0 0 0 3.041
ReadMessageTest 3 0 0 0 2.216
ReadResponseTest 1 0 0 0 2.385
RecoveryManagerFlushedTest 4 0 0 0 3.417
RecoveryManagerMissingHeaderTest 4 0 0 0 3.272
RecoveryManagerTest 24 0 0 0 8.555
RecoveryManagerTruncateTest 4 0 0 0 3.382
RemoveCellTest 1 0 0 0 2.562
RepairedDataTombstonesTest 7 0 0 0 26.569
RowCacheCQLTest 3 0 0 0 3.089
RowCacheTest 11 0 0 0 3.575
RowIndexEntryTest 2 0 0 0 2.993
RowIterationTest 3 0 0 0 3.155
RowTest 4 0 0 0 2.124
ScrubTest 19 0 0 0 6.246
SecondaryIndexTest 13 0 0 0 7.862
SerializationHeaderTest 1 0 0 0 1.126
SinglePartitionReadCommandCQLTest 1 0 0 0 2.506
SinglePartitionSliceCommandTest 8 0 0 0 2.767
SystemKeyspaceTest 9 0 0 0 1.829
TimeSortTest 2 0 0 0 3.486
TransformerTest 1 0 0 0 0.748
VerifyTest 12 0 0 0 2.801
-------------------------------------------------------------------------------
org.apache.cassandra.db.columniterator
Name Tests Errors Failures Skipped Time(s)
SSTableReverseIteratorTest-compression 1 0 0 0 2.591
SSTableReverseIteratorTest 1 0 0 0 2.396
-------------------------------------------------------------------------------
org.apache.cassandra.db.commitlog
Name Tests Errors Failures Skipped Time(s)
CommitLogStressTest 3 0 0 0 378.984
AbstractCommitLogServiceTest-compression 9 0 0 0 0.788
BatchCommitLogTest-compression 2 0 0 0 2.142
CommitLogCQLTest-compression 1 0 0 0 2.905
CommitLogChainedMarkersTest-compression 1 0 0 0 3.046
CommitLogDescriptorTest-compression 3 0 0 0 11.776
CommitLogFailurePolicyTest-compression 4 0 0 0 4.739
CommitLogSegmentBackpressureTest- 1 0 0 0 3.688
compression
CommitLogTest-compression 112 0 0 0 25.691
CommitLogUpgradeTest-compression 9 0 0 0 2.838
CommitlogShutdownTest-compression 1 0 0 0 2.926
SnapshotDeletingTest-compression 1 0 0 1 2.163
AbstractCommitLogServiceTest 9 0 0 0 0.824
BatchCommitLogTest 2 0 0 0 2.119
CommitLogCQLTest 1 0 0 0 2.523
CommitLogChainedMarkersTest 1 0 0 0 2.922
CommitLogDescriptorTest 3 0 0 0 13.465
CommitLogFailurePolicyTest 4 0 0 0 4.575
CommitLogSegmentBackpressureTest 1 0 0 0 3.594
CommitLogTest 112 0 0 0 21.649
CommitLogUpgradeTest 9 0 0 0 3.032
CommitlogShutdownTest 1 0 0 0 2.869
SnapshotDeletingTest 1 0 0 1 2.132
-------------------------------------------------------------------------------
org.apache.cassandra.db.compaction
Name Tests Errors Failures Skipped Time(s)
LongCompactionsTest 4 0 0 0 30.041
LongLeveledCompactionStrategyTest 2 0 0 0 5.953
AntiCompactionBytemanTest-compression 1 0 0 0 5.561
AntiCompactionTest-compression 6 0 0 0 21.976
CancelCompactionsTest-compression 1 0 0 0 2.930
CompactionAwareWriterTest-compression 4 0 0 0 24.302
CompactionControllerTest-compression 2 0 0 0 2.978
CompactionExecutorTest-compression 3 0 0 0 0.589
CompactionIteratorTest-compression 1 0 0 0 2.745
CompactionsBytemanTest-compression 1 0 0 0 6.484
CompactionsCQLTest-compression 13 0 0 0 27.929
CompactionsPurgeTest-compression 10 0 0 0 4.030
CompactionsTest-compression 7 0 0 1 18.452
CorruptedSSTablesCompactionsTest- 2 0 0 0 5.565
compression
DateTieredCompactionStrategyTest- 7 0 0 0 7.476
compression
LeveledCompactionStrategyTest-compression 5 0 0 0 12.849
NeverPurgeTest-compression 4 0 0 0 9.477
OneCompactionTest-compression 2 0 0 0 2.493
SizeTieredCompactionStrategyTest- 3 0 0 0 2.380
compression
TTLExpiryTest-compression 5 0 0 0 9.583
TimeWindowCompactionStrategyTest- 4 0 0 0 6.793
compression
AntiCompactionBytemanTest 1 0 0 0 5.240
AntiCompactionTest 6 0 0 0 26.516
CancelCompactionsTest 1 0 0 0 2.662
CompactionAwareWriterTest 4 0 0 0 24.032
CompactionControllerTest 2 0 0 0 2.666
CompactionExecutorTest 3 0 0 0 0.657
CompactionIteratorTest 1 0 0 0 2.541
CompactionsBytemanTest 1 0 0 0 6.128
CompactionsCQLTest 13 0 0 0 21.744
CompactionsPurgeTest 10 0 0 0 3.032
CompactionsTest 7 0 0 1 17.990
CorruptedSSTablesCompactionsTest 2 0 0 0 3.993
DateTieredCompactionStrategyTest 7 0 0 0 5.977
LeveledCompactionStrategyTest 5 0 0 0 7.160
NeverPurgeTest 4 0 0 0 7.881
OneCompactionTest 2 0 0 0 2.409
SizeTieredCompactionStrategyTest 3 0 0 0 2.320
TTLExpiryTest 5 0 0 0 8.868
TimeWindowCompactionStrategyTest 4 0 0 0 5.402
-------------------------------------------------------------------------------
org.apache.cassandra.db.composites
Name Tests Errors Failures Skipped Time(s)
CTypeTest-compression 3 0 0 0 0.427
CTypeTest 3 0 0 0 0.453
-------------------------------------------------------------------------------
org.apache.cassandra.db.context
Name Tests Errors Failures Skipped Time(s)
CounterContextTest-compression 8 0 0 0 1.332
CounterContextTest 8 0 0 0 1.499
-------------------------------------------------------------------------------
org.apache.cassandra.db.filter
Name Tests Errors Failures Skipped Time(s)
ColumnFilterTest-compression 1 0 0 0 0.519
RowFilterTest-compression 1 0 0 0 0.678
SliceTest-compression 3 0 0 0 0.295
ColumnFilterTest 1 0 0 0 0.574
RowFilterTest 1 0 0 0 0.796
SliceTest 3 0 0 0 0.282
-------------------------------------------------------------------------------
org.apache.cassandra.db.lifecycle
Name Tests Errors Failures Skipped Time(s)
HelpersTest-compression 8 0 0 0 9.237
LifecycleTransactionTest-compression 8 0 0 0 2.144
LogTransactionTest-compression 39 0 0 0 3.658
RealTransactionsTest-compression 3 0 0 0 3.131
TrackerTest-compression 7 0 0 0 1.879
ViewTest-compression 3 0 0 0 1.216
HelpersTest 8 0 0 0 6.958
LifecycleTransactionTest 8 0 0 0 1.915
LogTransactionTest 39 0 0 0 2.288
RealTransactionsTest 3 0 0 0 2.939
TrackerTest 7 0 0 0 1.769
ViewTest 3 0 0 0 1.353
-------------------------------------------------------------------------------
org.apache.cassandra.db.marshal
Name Tests Errors Failures Skipped Time(s)
BytesTypeTest-compression 2 0 0 0 0.286
CollectionTypeTest-compression 6 0 0 0 0.335
CompositeTypeTest-compression 8 0 0 0 2.107
DecimalTypeTest-compression 3 0 0 0 0.242
DynamicCompositeTypeTest-compression 8 0 0 0 2.168
EmptyTypeTest-compression 7 0 0 0 0.717
IntegerTypeTest-compression 10 0 0 0 0.283
JsonConversionTest-compression 30 0 0 0 0.592
ReversedTypeTest-compression 1 0 0 0 0.244
RoundTripTest-compression 8 0 0 0 0.410
SimpleDateTypeTest-compression 1 0 0 0 0.293
TimeTypeTest-compression 2 0 0 0 2.878
TimeUUIDTypeTest-compression 6 0 0 0 7.727
TypeCompareTest-compression 6 0 0 0 0.262
TypeParserTest-compression 3 0 0 0 0.558
TypeValidationTest-compression 10 0 0 0 0.590
UUIDTypeTest-compression 6 0 0 0 3.727
BytesTypeTest 2 0 0 0 0.258
CollectionTypeTest 6 0 0 0 0.316
CompositeTypeTest 8 0 0 0 2.152
DecimalTypeTest 3 0 0 0 0.268
DynamicCompositeTypeTest 8 0 0 0 2.096
EmptyTypeTest 7 0 0 0 0.808
IntegerTypeTest 10 0 0 0 0.297
JsonConversionTest 30 0 0 0 0.646
ReversedTypeTest 1 0 0 0 0.298
RoundTripTest 8 0 0 0 0.464
SimpleDateTypeTest 1 0 0 0 0.315
TimeTypeTest 2 0 0 0 2.516
TimeUUIDTypeTest 6 0 0 0 7.559
TypeCompareTest 6 0 0 0 0.299
TypeParserTest 3 0 0 0 0.624
TypeValidationTest 10 0 0 0 0.623
UUIDTypeTest 6 0 0 0 3.946
-------------------------------------------------------------------------------
org.apache.cassandra.db.partition
Name Tests Errors Failures Skipped Time(s)
PartitionImplementationTest-compression 7 0 0 0 47.974
PartitionUpdateTest-compression 5 0 0 0 5.570
PartitionImplementationTest 7 0 0 0 47.078
PartitionUpdateTest 5 0 0 0 3.657
-------------------------------------------------------------------------------
org.apache.cassandra.db.partitions
Name Tests Errors Failures Skipped Time(s)
PurgeFunctionTest-compression 8 0 0 0 0.666
PurgeFunctionTest 8 0 0 0 0.734
-------------------------------------------------------------------------------
org.apache.cassandra.db.rows
Name Tests Errors Failures Skipped Time(s)
AbstractTypeVersionComparatorTest- 9 0 0 0 0.284
compression
DigestBackwardCompatibilityTest- 5 0 0 0 5.758
compression
EncodingStatsTest-compression 9 0 0 0 0.074
RowAndDeletionMergeIteratorTest- 10 0 0 0 2.081
compression
RowsTest-compression 9 0 0 0 0.690
UnfilteredRowIteratorsMergeTest- 5 0 0 0 17.911
compression
UnfilteredRowIteratorsTest-compression 1 0 0 0 0.728
AbstractTypeVersionComparatorTest 9 0 0 0 0.288
DigestBackwardCompatibilityTest 5 0 0 0 3.731
EncodingStatsTest 9 0 0 0 0.095
RowAndDeletionMergeIteratorTest 10 0 0 0 2.171
RowsTest 9 0 0 0 0.762
UnfilteredRowIteratorsMergeTest 5 0 0 0 18.602
UnfilteredRowIteratorsTest 1 0 0 0 0.761
-------------------------------------------------------------------------------
org.apache.cassandra.db.transform
Name Tests Errors Failures Skipped Time(s)
DuplicateRowCheckerTest-compression 7 0 0 0 7.389
RTTransformationsTest-compression 15 0 0 0 0.685
DuplicateRowCheckerTest 7 0 0 0 4.351
RTTransformationsTest 15 0 0 0 0.763
-------------------------------------------------------------------------------
org.apache.cassandra.db.view
Name Tests Errors Failures Skipped Time(s)
ViewUtilsTest-compression 3 0 0 0 1.051
ViewUtilsTest 3 0 0 0 1.148
-------------------------------------------------------------------------------
org.apache.cassandra.dht
Name Tests Errors Failures Skipped Time(s)
BootStrapperTest-compression 8 0 0 0 5.094
BoundsTest-compression 1 0 0 0 0.259
ByteOrderedPartitionerTest-compression 6 0 0 0 1.703
KeyCollisionTest-compression 1 0 0 0 2.182
Murmur3PartitionerTest-compression 6 0 0 0 1.037
OrderPreservingPartitionerTest- 7 0 0 0 1.740
compression
RandomPartitionerTest-compression 6 0 0 0 1.193
RangeTest-compression 30 0 0 0 10.867
StreamStateStoreTest-compression 1 0 0 0 1.332
BootStrapperTest 8 0 0 0 4.076
BoundsTest 1 0 0 0 0.283
ByteOrderedPartitionerTest 6 0 0 0 1.746
KeyCollisionTest 1 0 0 0 2.235
Murmur3PartitionerTest 6 0 0 0 1.157
OrderPreservingPartitionerTest 7 0 0 0 1.876
RandomPartitionerTest 6 0 0 0 1.271
RangeTest 30 0 0 0 7.573
StreamStateStoreTest 1 0 0 0 1.410
-------------------------------------------------------------------------------
org.apache.cassandra.dht.tokenallocator
Name Tests Errors Failures Skipped Time(s)
ReplicationAwareTokenAllocatorTest 2 0 0 0 138.344
-------------------------------------------------------------------------------
org.apache.cassandra.distributed.test
Name Tests Errors Failures Skipped Time
(s)
BootstrapBinaryDisabledTest 1 0 0 0 30.035
BootstrapTest 1 0 0 0 55.361
ClientNetworkStopStartTest 2 0 0 0 19.491
GossipSettlesTest 1 0 0 0 9.367
GossipTest 1 1 0 0 14.464
JVMDTestTest 2 0 0 0 15.469
JVMStabilityInspectorCorruptSSTableExceptionTest 2 0 0 0 61.561
MessageFiltersTest 4 0 0 0 46.270
MessageForwardingTest 1 0 0 0 10.816
NativeProtocolTest 2 0 0 0 33.332
NetworkTopologyTest 6 0 0 0 4.485
NodeToolTest 1 0 0 0 5.355
ReadRepairTest 2 0 0 0 12.158
RepairOperationalTest 5 0 0 0 35.745
ReplicaFilteringProtectionTest 3 0 0 0 7.464
ResourceLeakTest 1 0 0 1 0.055
SchemaTest 3 0 0 0 17.519
SimpleReadWriteTest 15 0 0 0 35.623
ThriftClientTest 1 0 0 0 8.921
-------------------------------------------------------------------------------
org.apache.cassandra.distributed.upgrade
Name Tests Errors Failures Skipped Time(s)
CompactStorage2to3UpgradeTest 4 0 0 0 60.414
MigrateDropColumnsTest 1 0 0 0 29.514
MixedModeRangeTombstoneTest 1 0 0 0 13.533
MixedModeReadRepairTest 2 0 0 0 25.516
PagingTest 1 0 0 0 98.732
UpgradeTest 3 1 0 0 133.164
-------------------------------------------------------------------------------
org.apache.cassandra.gms
Name Tests Errors Failures Skipped Time(s)
ArrayBackedBoundedStatsTest-compression 2 0 0 0 0.069
ArrivalWindowTest-compression 1 0 0 0 0.534
EndpointStateTest-compression 2 0 0 0 1.253
ExpireEndpointTest-compression 1 0 0 0 0.696
FailureDetectorTest-compression 1 0 0 0 1.566
GossipDigestTest-compression 1 0 0 0 0.633
GossiperTest-compression 2 0 0 0 1.451
PendingRangeCalculatorServiceTest- 1 0 0 0 3.109
compression
SerializationsTest-compression 2 0 0 0 0.683
ArrayBackedBoundedStatsTest 2 0 0 0 0.067
ArrivalWindowTest 1 0 0 0 0.590
EndpointStateTest 2 0 0 0 1.079
ExpireEndpointTest 1 0 0 0 0.776
FailureDetectorTest 1 0 0 0 1.617
GossipDigestTest 1 0 0 0 0.664
GossiperTest 2 0 0 0 1.495
PendingRangeCalculatorServiceTest 1 0 0 0 3.063
SerializationsTest 2 0 0 0 0.720
-------------------------------------------------------------------------------
org.apache.cassandra.hadoop
Name Tests Errors Failures Skipped Time(s)
ColumnFamilyInputFormatTest-compression 1 0 0 0 0.270
ColumnFamilyInputFormatTest 1 0 0 0 0.330
-------------------------------------------------------------------------------
org.apache.cassandra.hints
Name Tests Errors Failures Skipped Time(s)
HintsWriteThenReadTest 1 0 0 0 79.972
ChecksummedDataInputTest-compression 3 0 0 0 0.577
HintMessageTest-compression 1 0 0 0 2.144
HintTest-compression 7 0 0 0 2.420
HintsBufferPoolTest-compression 1 0 0 0 2.686
HintsBufferTest-compression 2 0 0 0 4.060
HintsCatalogTest-compression 3 0 0 0 2.157
HintsCompressionTest-compression 3 0 0 0 4.439
HintsDescriptorTest-compression 4 0 0 0 0.437
HintsReaderTest-compression 2 0 0 0 2.509
HintsServiceTest-compression 4 0 0 0 164.913
LegacyHintsMigratorTest-compression 2 0 0 0 2.915
ChecksummedDataInputTest 3 0 0 0 0.644
HintMessageTest 1 0 0 0 2.097
HintTest 7 0 0 0 2.431
HintsBufferPoolTest 1 0 0 0 2.618
HintsBufferTest 2 0 0 0 4.835
HintsCatalogTest 3 0 0 0 2.123
HintsCompressionTest 3 0 0 0 4.751
HintsDescriptorTest 4 0 0 0 0.503
HintsReaderTest 2 0 0 0 2.391
HintsServiceTest 4 0 0 0 164.745
LegacyHintsMigratorTest 2 0 0 0 2.858
-------------------------------------------------------------------------------
org.apache.cassandra.index
Name Tests Errors Failures Skipped Time(s)
CustomIndexTest-compression 29 0 0 0 39.975
CustomIndexTest 29 0 0 0 20.890
-------------------------------------------------------------------------------
org.apache.cassandra.index.internal
Name Tests Errors Failures Skipped Time(s)
CassandraIndexTest-compression 28 0 0 0 45.409
CassandraIndexTest 28 0 0 0 19.592
-------------------------------------------------------------------------------
org.apache.cassandra.io
Name Tests Errors Failures Skipped Time(s)
BloomFilterTrackerTest-compression 3 0 0 0 0.060
DiskSpaceMetricsTest-compression 2 0 0 0 20.019
BloomFilterTrackerTest 3 0 0 0 0.066
DiskSpaceMetricsTest 2 0 0 0 16.238
-------------------------------------------------------------------------------
org.apache.cassandra.io.compress
Name Tests Errors Failures Skipped Time(s)
CompressedRandomAccessReaderTest- 6 0 0 0 0.757
compression
CompressedSequentialWriterReopenTest- 4 0 0 0 6.160
compression
CompressedSequentialWriterTest- 10 0 0 0 0.849
compression
CompressorTest-compression 4 0 0 0 1.292
CompressedRandomAccessReaderTest 6 0 0 0 0.792
CompressedSequentialWriterReopenTest 4 0 0 0 7.176
CompressedSequentialWriterTest 10 0 0 0 0.876
CompressorTest 4 0 0 0 1.309
-------------------------------------------------------------------------------
org.apache.cassandra.io.sstable
Name Tests Errors Failures Skipped Time(s)
CQLSSTableWriterLongTest 1 0 0 0 4.545
BigTableWriterTest-compression 5 0 0 0 2.590
CQLSSTableWriterClientTest-compression 1 0 0 0 1.151
CQLSSTableWriterTest-compression 7 0 0 0 3.570
DescriptorTest-compression 7 0 0 0 0.598
IndexHelperTest-compression 1 0 0 0 0.386
IndexSummaryManagerTest-compression 8 0 0 0 6.433
IndexSummaryRedistributionTest- 1 0 0 0 3.025
compression
IndexSummaryTest-compression 12 0 0 0 31.492
LegacySSTableTest-compression 17 0 0 1 48.231
SSTableCorruptionDetectionTest- 2 0 0 0 44.716
compression
SSTableLoaderTest-compression 2 0 0 0 9.976
SSTableMetadataTest-compression 3 0 0 0 2.810
SSTableReaderTest-compression 12 0 0 0 6.835
SSTableRewriterTest-compression 21 0 0 0 16.548
SSTableScannerTest-compression 3 0 0 0 2.522
SSTableWriterTest-compression 4 0 0 0 24.340
BigTableWriterTest 5 0 0 0 2.386
CQLSSTableWriterClientTest 1 0 0 0 1.193
CQLSSTableWriterTest 7 0 0 0 3.331
DescriptorTest 7 0 0 0 0.652
IndexHelperTest 1 0 0 0 0.410
IndexSummaryManagerTest 8 0 0 0 4.042
IndexSummaryRedistributionTest 1 0 0 0 3.047
IndexSummaryTest 12 0 0 0 32.061
LegacySSTableTest 17 0 0 1 23.399
SSTableCorruptionDetectionTest 2 0 0 0 48.713
SSTableLoaderTest 2 0 0 0 10.522
SSTableMetadataTest 3 0 0 0 2.672
SSTableReaderTest 12 0 0 0 6.367
SSTableRewriterTest 21 0 0 0 12.938
SSTableScannerTest 3 0 0 0 2.411
SSTableWriterTest 4 0 0 0 61.512
-------------------------------------------------------------------------------
org.apache.cassandra.io.sstable.format
Name Tests Errors Failures Skipped Time(s)
ClientModeSSTableTest-compression 1 0 0 0 0.680
ClientModeSSTableTest 1 0 0 0 0.750
-------------------------------------------------------------------------------
org.apache.cassandra.io.sstable.metadata
Name Tests Errors Failures Skipped Time(s)
MetadataSerializerTest-compression 6 0 0 0 0.783
MetadataSerializerTest 6 0 0 0 0.824
-------------------------------------------------------------------------------
org.apache.cassandra.io.util
Name Tests Errors Failures Skipped Time(s)
BufferedDataOutputStreamTest-compression 19 0 0 0 23.073
BufferedRandomAccessFileTest-compression 17 0 0 0 0.618
ChecksummedRandomAccessReaderTest- 3 0 0 0 0.607
compression
ChecksummedSequentialWriterTest- 7 0 0 0 0.605
compression
DataOutputTest-compression 15 0 0 0 0.614
FileSegmentInputStreamTest-compression 7 0 0 0 0.075
FileUtilsTest-compression 2 0 0 0 0.243
MemoryTest-compression 2 0 0 0 0.287
MmappedRegionsTest-compression 12 0 0 0 0.768
NIODataInputStreamTest-compression 17 0 0 0 9.049
RandomAccessReaderTest-compression 11 0 0 0 0.842
RewindableDataInputStreamPlusTest- 8 0 0 0 0.079
compression
SafeMemoryWriterTest-compression 2 0 0 0 2.190
SegmentedFileTest-compression 3 0 0 0 0.524
SequentialWriterTest-compression 7 0 0 0 0.559
BufferedDataOutputStreamTest 19 0 0 0 24.991
BufferedRandomAccessFileTest 17 0 0 0 0.709
ChecksummedRandomAccessReaderTest 3 0 0 0 0.682
ChecksummedSequentialWriterTest 7 0 0 0 0.623
DataOutputTest 15 0 0 0 0.678
FileSegmentInputStreamTest 7 0 0 0 0.082
FileUtilsTest 2 0 0 0 0.265
MemoryTest 2 0 0 0 0.344
MmappedRegionsTest 12 0 0 0 0.840
NIODataInputStreamTest 17 0 0 0 9.042
RandomAccessReaderTest 11 0 0 0 0.879
RewindableDataInputStreamPlusTest 8 0 0 0 0.094
SafeMemoryWriterTest 2 0 0 0 2.555
SegmentedFileTest 3 0 0 0 0.613
SequentialWriterTest 7 0 0 0 0.630
-------------------------------------------------------------------------------
org.apache.cassandra.locator
Name Tests Errors Failures Skipped Time(s)
DynamicEndpointSnitchLongTest 1 0 0 0 91.688
CloudstackSnitchTest-compression 2 0 0 0 5.100
DynamicEndpointSnitchTest-compression 1 0 0 0 1.723
EC2SnitchTest-compression 3 0 0 0 5.176
GoogleCloudSnitchTest-compression 2 0 0 0 5.223
GossipingPropertyFileSnitchTest- 1 0 0 0 0.638
compression
NetworkTopologyStrategyTest-compression 3 0 0 0 0.695
OldNetworkTopologyStrategyTest- 8 0 0 0 0.724
compression
PendingRangeMapsTest-compression 2 0 0 0 0.362
PropertyFileSnitchTest-compression 5 0 0 0 15.808
ReplicationStrategyEndpointCacheTest- 2 0 0 0 2.048
compression
SimpleStrategyTest-compression 4 0 0 0 2.139
TokenMetadataTest-compression 5 0 0 0 0.705
CloudstackSnitchTest 2 0 0 0 5.098
DynamicEndpointSnitchTest 1 0 0 0 1.809
EC2SnitchTest 3 0 0 0 5.068
GoogleCloudSnitchTest 2 0 0 0 5.067
GossipingPropertyFileSnitchTest 1 0 0 0 0.723
NetworkTopologyStrategyTest 3 0 0 0 0.773
OldNetworkTopologyStrategyTest 8 0 0 0 0.762
PendingRangeMapsTest 2 0 0 0 0.419
PropertyFileSnitchTest 5 0 0 0 15.807
ReplicationStrategyEndpointCacheTest 2 0 0 0 2.099
SimpleStrategyTest 4 0 0 0 2.109
TokenMetadataTest 5 0 0 0 0.757
-------------------------------------------------------------------------------
org.apache.cassandra.metrics
Name Tests Errors Failures Skipped Time(s)
CQLMetricsTest-compression 4 0 0 0 7.602
DecayingEstimatedHistogramReservoirTest- 9 0 0 0 6.784
compression
HintedHandOffMetricsTest-compression 1 0 0 0 1.346
LatencyMetricsTest-compression 1 0 0 0 0.345
CQLMetricsTest 4 0 0 0 7.021
DecayingEstimatedHistogramReservoirTest 9 0 0 0 6.665
HintedHandOffMetricsTest 1 0 0 0 1.472
LatencyMetricsTest 1 0 0 0 0.334
-------------------------------------------------------------------------------
org.apache.cassandra.net
Name Tests Errors Failures Skipped Time(s)
MessagingServiceTest-compression 1 0 0 0 0.589
MockMessagingServiceTest-compression 1 0 0 0 2.672
OutboundTcpConnectionTest-compression 2 0 0 0 1.328
WriteCallbackInfoTest-compression 1 0 0 0 0.809
MessagingServiceTest 1 0 0 0 0.673
MockMessagingServiceTest 1 0 0 0 2.538
OutboundTcpConnectionTest 2 0 0 0 1.435
WriteCallbackInfoTest 1 0 0 0 0.931
-------------------------------------------------------------------------------
org.apache.cassandra.repair
Name Tests Errors Failures Skipped Time(s)
LocalSyncTaskTest-compression 2 0 0 0 2.674
RepairJobTest-compression 2 0 0 0 3.758
RepairSessionTest-compression 1 0 0 0 0.775
ValidatorTest-compression 4 0 0 0 13.118
LocalSyncTaskTest 2 0 0 0 2.682
RepairJobTest 2 0 0 0 3.646
RepairSessionTest 1 0 0 0 0.822
ValidatorTest 4 0 0 0 13.534
-------------------------------------------------------------------------------
org.apache.cassandra.repair.messages
Name Tests Errors Failures Skipped Time(s)
RepairMessageSerializationsTest- 9 0 0 0 0.747
compression
RepairOptionTest-compression 3 0 0 0 0.579
RepairMessageSerializationsTest 9 0 0 0 0.735
RepairOptionTest 3 0 0 0 0.621
-------------------------------------------------------------------------------
org.apache.cassandra.schema
Name Tests Errors Failures Skipped Time(s)
CreateTableValidationTest-compression 1 0 0 0 2.504
DefsTest-compression 11 0 0 0 5.417
LegacySchemaMigratorTest-compression 2 0 0 0 5.643
SchemaKeyspaceTest-compression 5 0 0 0 2.605
CreateTableValidationTest 1 0 0 0 2.265
DefsTest 11 0 0 0 3.819
LegacySchemaMigratorTest 2 0 0 0 4.686
SchemaKeyspaceTest 5 0 0 0 2.510
-------------------------------------------------------------------------------
org.apache.cassandra.security
Name Tests Errors Failures Skipped Time(s)
SSLFactoryTest-compression 2 0 0 0 0.601
SSLFactoryTest 2 0 0 0 0.687
-------------------------------------------------------------------------------
org.apache.cassandra.serializers
Name Tests Errors Failures Skipped Time(s)
ClientUtilsTest-compression 1 0 0 0 0.432
SimpleDateSerializerTest-compression 9 0 0 0 0.300
TimeSerializerTest-compression 16 0 0 0 0.071
TimestampSerializerTest-compression 1 0 0 0 0.083
ClientUtilsTest 1 0 0 0 0.442
SimpleDateSerializerTest 9 0 0 0 0.354
TimeSerializerTest 16 0 0 0 0.094
TimestampSerializerTest 1 0 0 0 0.098
-------------------------------------------------------------------------------
org.apache.cassandra.service
Name Tests Errors Failures Skipped Time(s)
ActiveRepairServiceTest-compression 10 0 0 0 4.663
ClientWarningsTest-compression 4 0 0 0 22.764
DataResolverTest-compression 18 0 0 0 2.169
EmbeddedCassandraServiceTest-compression 1 0 0 0 3.965
LeaveAndBootstrapTest-compression 8 0 0 0 4.957
LegacyAuthFailTest-compression 1 0 0 0 4.506
MigrationManagerTest-compression 3 0 0 0 3.671
MoveTest-compression 7 0 0 0 7.648
NativeTransportServiceTest-compression 11 0 0 0 8.253
PaxosStateTest-compression 1 0 0 0 4.305
QueryPagerTest-compression 8 0 0 0 2.440
RMIServerSocketFactoryImplTest- 1 0 0 0 0.073
compression
RemoveTest-compression 3 0 0 0 4.883
SerializationsTest-compression 4 0 0 0 0.663
StartupChecksTest-compression 3 0 0 0 1.783
StorageProxyTest-compression 4 0 0 0 0.738
StorageServiceServerTest-compression 14 0 0 1 5.280
ActiveRepairServiceTest 10 0 0 0 3.372
ClientWarningsTest 4 0 0 0 24.059
DataResolverTest 18 0 0 0 2.264
EmbeddedCassandraServiceTest 1 0 0 0 3.495
LeaveAndBootstrapTest 8 0 0 0 4.029
LegacyAuthFailTest 1 0 0 0 3.346
MigrationManagerTest 3 0 0 0 2.876
MoveTest 7 0 0 0 6.785
NativeTransportServiceTest 11 0 0 0 8.361
PaxosStateTest 1 0 0 0 3.538
QueryPagerTest 8 0 0 0 2.410
RMIServerSocketFactoryImplTest 1 0 0 0 0.067
RemoveTest 3 0 0 0 4.939
SerializationsTest 4 0 0 0 0.774
StartupChecksTest 3 0 0 0 1.812
StorageProxyTest 4 0 0 0 0.817
StorageServiceServerTest 14 0 0 1 5.279
-------------------------------------------------------------------------------
org.apache.cassandra.service.pager
Name Tests Errors Failures Skipped Time(s)
PagingStateTest-compression 7 0 0 0 0.710
PagingStateTest 7 0 0 0 0.793
-------------------------------------------------------------------------------
org.apache.cassandra.streaming
Name Tests Errors Failures Skipped Time(s)
SessionInfoTest-compression 1 0 0 0 0.543
StreamTransferTaskTest-compression 2 0 0 0 2.416
StreamingTransferTest-compression 5 0 0 0 4.459
SessionInfoTest 1 0 0 0 0.656
StreamTransferTaskTest 2 0 0 0 2.338
StreamingTransferTest 5 0 0 0 4.158
-------------------------------------------------------------------------------
org.apache.cassandra.streaming.compression
Name Tests Errors Failures Skipped Time(s)
CompressedInputStreamTest-compression 3 0 0 0 0.727
CompressedInputStreamTest 3 0 0 0 0.791
-------------------------------------------------------------------------------
org.apache.cassandra.transport
Name Tests Errors Failures Skipped Time(s)
DataTypeTest-compression 3 0 0 0 0.387
DynamicLimitTest-compression 2 0 0 0 2.042
InflightRequestPayloadTrackerTest- 5 0 0 0 12.458
compression
MessagePayloadTest-compression 2 0 0 0 10.040
ProtocolErrorTest-compression 5 0 0 0 0.827
ProtocolNegotiationTest-compression 3 0 0 0 17.609
SerDeserTest-compression 4 0 0 0 0.709
DataTypeTest 3 0 0 0 0.427
DynamicLimitTest 2 0 0 0 2.160
InflightRequestPayloadTrackerTest 5 0 0 0 10.109
MessagePayloadTest 2 0 0 0 8.966
ProtocolErrorTest 5 0 0 0 0.965
ProtocolNegotiationTest 3 0 0 0 16.137
SerDeserTest 4 0 0 0 0.790
-------------------------------------------------------------------------------
org.apache.cassandra.triggers
Name Tests Errors Failures Skipped Time(s)
TriggerExecutorTest-compression 9 0 0 0 0.818
TriggersSchemaTest-compression 4 0 0 0 3.080
TriggersTest-compression 11 0 0 0 5.179
TriggerExecutorTest 9 0 0 0 0.829
TriggersSchemaTest 4 0 0 0 2.651
TriggersTest 11 0 0 0 3.978
-------------------------------------------------------------------------------
org.apache.cassandra.utils
Name Tests Errors Failures Skipped Time(s)
LongBitSetTest 3 0 0 0 39.987
LongBloomFilterTest 5 0 0 0 242.599
LongBTreeTest 14 0 0 0 379.912
AbstractIteratorTest-compression 9 0 0 0 0.099
BTreeTest-compression 7 0 0 0 0.124
BitSetTest-compression 4 0 0 0 0.484
BloomFilterTest-compression 12 0 0 2 0.940
ByteBufferUtilTest-compression 10 0 0 0 0.280
BytesReadTrackerTest-compression 4 0 0 0 0.066
CassandraVersionTest-compression 5 0 0 0 0.064
CoalescingStrategiesTest-compression 6 0 0 0 1.115
EstimatedHistogramTest-compression 7 0 0 0 0.268
FBUtilitiesTest-compression 5 0 0 0 0.756
FastByteOperationsTest-compression 2 0 0 0 3.781
HexTest-compression 2 0 0 0 0.236
HistogramBuilderTest-compression 5 0 0 0 0.298
IntegerIntervalsTest-compression 6 0 0 0 44.571
IntervalTreeTest-compression 3 0 0 0 0.269
JVMStabilityInspectorTest-compression 3 0 0 0 0.639
JavaUtilsTest-compression 1 0 0 0 0.235
MergeIteratorComparisonTest-compression 16 0 0 0 11.978
MergeIteratorTest-compression 1 0 0 0 0.071
MerkleTreeTest-compression 14 0 0 0 0.623
MerkleTreesTest-compression 13 0 0 0 0.701
NanoTimeToCurrentTimeMillisTest- 1 0 0 0 7.008
compression
NativeLibraryTest-compression 2 0 0 0 0.388
NoSpamLoggerTest-compression 4 0 0 0 0.079
OverlapIteratorTest-compression 1 0 0 0 11.518
SerializationsTest-compression 5 0 0 0 2.375
StreamingHistogramTest-compression 4 0 0 0 0.072
TopKSamplerTest-compression 3 0 0 0 2.281
AbstractIteratorTest 9 0 0 0 0.083
BTreeTest 7 0 0 0 0.119
BitSetTest 4 0 0 0 0.557
BloomFilterTest 12 0 0 2 0.581
ByteBufferUtilTest 10 0 0 0 0.287
BytesReadTrackerTest 4 0 0 0 0.069
CassandraVersionTest 5 0 0 0 0.074
CoalescingStrategiesTest 6 0 0 0 1.152
EstimatedHistogramTest 7 0 0 0 0.261
FBUtilitiesTest 5 0 0 0 0.725
FastByteOperationsTest 2 0 0 0 3.887
HexTest 2 0 0 0 0.257
HistogramBuilderTest 5 0 0 0 0.289
IntegerIntervalsTest 6 0 0 0 49.162
IntervalTreeTest 3 0 0 0 0.288
JVMStabilityInspectorTest 3 0 0 0 0.710
JavaUtilsTest 1 0 0 0 0.251
MergeIteratorComparisonTest 16 0 0 0 11.525
MergeIteratorTest 1 0 0 0 0.080
MerkleTreeTest 14 0 0 0 0.685
MerkleTreesTest 13 0 0 0 0.774
NanoTimeToCurrentTimeMillisTest 1 0 0 0 18.182
NativeLibraryTest 2 0 0 0 0.433
NoSpamLoggerTest 4 0 0 0 0.093
OverlapIteratorTest 1 0 0 0 11.449
SerializationsTest 5 0 0 0 2.576
StreamingHistogramTest 4 0 0 0 0.080
TopKSamplerTest 3 0 0 0 2.586
-------------------------------------------------------------------------------
org.apache.cassandra.utils.concurrent
Name Tests Errors Failures Skipped Time(s)
AbstractTransactionalTest-compression 1 0 0 1 0.052
AccumulatorTest-compression 4 0 0 0 0.062
RefCountedTest-compression 12 0 0 0 6.215
AbstractTransactionalTest 1 0 0 1 0.058
AccumulatorTest 4 0 0 0 0.072
RefCountedTest 12 0 0 0 6.077
-------------------------------------------------------------------------------
org.apache.cassandra.utils.memory
Name Tests Errors Failures Skipped Time(s)
LongBufferPoolTest 1 0 0 0 120.668
BufferPoolTest-compression 33 0 0 0 7.755
NativeAllocatorTest-compression 1 0 0 0 0.367
BufferPoolTest 33 0 0 0 7.097
NativeAllocatorTest 1 0 0 0 0.387
-------------------------------------------------------------------------------
org.apache.cassandra.utils.progress.jmx
Name Tests Errors Failures Skipped Time(s)
LegacyJMXProgressSupportTest-compression 5 0 0 0 0.269
LegacyJMXProgressSupportTest 5 0 0 0 0.282
-------------------------------------------------------------------------------
org.apache.cassandra.utils.vint
Name Tests Errors Failures Skipped Time(s)
VIntCodingTest-compression 3 0 0 0 0.064
VIntCodingTest 3 0 0 0 0.071
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Failures
-------------------------------------------------------------------------------
Cassandra dtests // test_disk_balance_bootstrap // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_bootstrap'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fc2c114c040>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fc2c105f910>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fc2c2d50310>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fc2c0ef6190>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_bootstrap'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_multidatacenter_local_quorum // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_multidatacenter_local_quorum'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fc2c114c040>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fc2c0162fd0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fc2c2d50310>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fc2b87e66a0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_multidatacenter_local_quorum'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_stop_decommission_too_few_replicas_multi_dc // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_stop_decommission_too_few_replicas_multi_dc'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fce94562940>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fce92cdacd0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fce964843a0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fce9388a100>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_stop_decommission_too_few_replicas_multi_dc'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_archiving // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_archiving'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f3a9d71f7c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f3a9d63c940>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f3a9eefd700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f3a9d6e0f70>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_archiving'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_fanout_size[LeveledCompactionStrategy] // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_fanout_size
[LeveledCompactionStrategy]'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fe746eb1580>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe7464dcf70>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe748756670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe74642de80>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_fanout_size
[LeveledCompactionStrategy]'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_paging_with_filtering_on_partition_key_on_counter_columns /
/ Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key_on_counter_columns'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fe746eb1580>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe74742a3d0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe748756670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe747ae4fa0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key_on_counter_columns'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_monotonic_reads[none] // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_monotonic_reads
[none]'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fe746eb1580>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe74449f250>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe748756670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe74449fa00>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_monotonic_reads
[none]'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_multi_dc_tokens_default // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_multi_dc_tokens_default'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fe746eb1580>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe74742a5b0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe748756670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe746cf6610>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_multi_dc_tokens_default'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_reading_with_ttl // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_reading_with_ttl'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fe746eb1580>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe74742c250>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe748756670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe74757c5e0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_reading_with_ttl'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_partition_key_allow_filtering // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_partition_key_allow_filtering'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f5db8ce83d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f5db8330a00>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f5dba56c700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5db8330e20>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_partition_key_allow_filtering'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests /
/ test_paging_with_filtering_on_partition_key_on_counter_columns_compact // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key_on_counter_columns_compact'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f5db8ce83d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f5db923fee0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f5dba56c700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5db8ee69d0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key_on_counter_columns_compact'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_atomic_writes[blocking] // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_atomic_writes
[blocking]'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f5db8ce83d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f5db8eea430>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f5dba56c700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5db8eea5e0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_atomic_writes
[blocking]'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_multi_dc_tokens_murmur3 // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_multi_dc_tokens_murmur3'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f5db8ce83d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f5db8bbc670>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f5dba56c700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5db3ffe070>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_multi_dc_tokens_murmur3'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_consistent_repair // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_consistent_repair'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f5db8ce83d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f5db3e50430>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f5dba56c700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5db3e51c40>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_consistent_repair'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_only_superuser_can_create_users // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_only_superuser_can_create_users'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f15417cc0a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f1541820f40>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f1543213670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f15418205b0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_only_superuser_can_create_users'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests /
/ test_paging_with_filtering_on_partition_key_on_clustering_columns // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key_on_clustering_columns'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f15417cc0a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f1541e8bb20>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f1543213670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f1541ea12b0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key_on_clustering_columns'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_atomic_writes[none] // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_atomic_writes
[none]'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f15417cc0a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f1540f98640>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f1543213670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f1540f98280>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_atomic_writes
[none]'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_multi_dc_tokens_random // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_multi_dc_tokens_random'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f15417cc0a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f1541e51310>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f1543213670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f1541b91610>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_multi_dc_tokens_random'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_manual_session_fail // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_manual_session_fail'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f15417cc0a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f1540f9faf0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f1543213670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f1541ed4070>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_manual_session_fail'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_password_authenticator_create_user_requires_password /
/ Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_password_authenticator_create_user_requires_password'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f7ceb88b9a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7ceb88b910>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7ced24f820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7ceb88b190>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_password_authenticator_create_user_requires_password'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_large_collection_errors // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_large_collection_errors'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f7ceb88b9a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7ceb884b20>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7ced24f820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7ce9635c10>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_large_collection_errors'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests /
/ test_paging_with_filtering_on_partition_key_on_clustering_columns_compact // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key_on_clustering_columns_compact'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f7ceb88b9a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7cebecb2e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7ced24f820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7cebe92940>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key_on_clustering_columns_compact'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_manual_session_cancel_non_coordinator_failure // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_manual_session_cancel_non_coordinator_failure'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f7ceb88b9a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7cebb138b0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7ced24f820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7cebbcf130>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_manual_session_cancel_non_coordinator_failure'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests /
/ test_paging_with_filtering_on_partition_key_on_clustering_columns_with_contains /
/ Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key_on_clustering_columns_with_contains'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f5002f37610>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f500057ccd0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f50041d6700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5000581640>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key_on_clustering_columns_with_contains'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_sstableloader_with_failing_2i // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_sstableloader_with_failing_2i'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f5002f37610>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4ff30fee80>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f50041d6700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5000153460>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_sstableloader_with_failing_2i'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_datetime_values_40 // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_datetime_values_40'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f5002f37610>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f5001b95fa0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f50041d6700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4ff34110a0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_datetime_values_40'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_manual_session_force_cancel // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_manual_session_force_cancel'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f5002f37610>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f500355d790>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f50041d6700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5002b5dc10>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_manual_session_force_cancel'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_paging_with_filtering_on_partition_key_on_static_columns /
/ Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key_on_static_columns'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f13340e4250>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f13335e0f40>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f133593f670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f1333f5b820>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key_on_static_columns'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_rebuild_ranges // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_rebuild_ranges'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f13340e4250>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f1333598880>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f133593f670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f1333598fd0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_rebuild_ranges'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_disallow_rebuild_nonlocal_range // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disallow_rebuild_nonlocal_range'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f8a79aaad90>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8a791ec520>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f8a7b4a95e0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8a79db1cd0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disallow_rebuild_nonlocal_range'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_disallow_rebuild_from_nonreplica // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disallow_rebuild_from_nonreplica'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fc674914cd0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fc6443a1940>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fc67630f700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fc6444d26a0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disallow_rebuild_from_nonreplica'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_failing_manual_rebuild_index // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_failing_manual_rebuild_index'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fc674914cd0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fc6443c5bb0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fc67630f700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fc674f51dc0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_failing_manual_rebuild_index'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_resumable_decommission // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_resumable_decommission'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fc674914cd0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fc644420a00>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fc67630f700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fc64434a5b0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_resumable_decommission'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_only_superusers_can_drop_users // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_only_superusers_can_drop_users'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f0e64dfa220>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f0e64dfa280>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f0e667e6790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f0e64de6820>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_only_superusers_can_drop_users'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_rebuild_with_specific_sources // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_rebuild_with_specific_sources'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f0e64dfa220>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f0e6546d0a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f0e667e6790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f0e65445310>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_rebuild_with_specific_sources'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_drop_index_while_building // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_drop_index_while_building'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f0e64dfa220>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f0e650dc550>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f0e667e6790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f0e650dcbe0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_drop_index_while_building'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_per_partition_limit_paging // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_per_partition_limit_paging'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6ee5840eb0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6ee5e0eb80>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6ee719a700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6ee4bafdc0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_per_partition_limit_paging'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_index_is_not_rebuilt_at_restart // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_index_is_not_rebuilt_at_restart'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6ee5840eb0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6ee5e2a640>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6ee719a700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6ee5e2a670>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_index_is_not_rebuilt_at_restart'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_zerocopy_streaming // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_zerocopy_streaming'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6ee5840eb0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6ee5b126d0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6ee719a700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6ee5b12fd0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_zerocopy_streaming'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_fql_nodetool_options // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_fql_nodetool_options'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fd6cf4f2130>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd6cf4f2160>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd6d0ccf790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd6cf3ac130>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_fql_nodetool_options'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_set_get_batchlog_replay_throttle // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_set_get_batchlog_replay_throttle'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fd6cf4f2130>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd6cf342e80>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd6d0ccf790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd6cf345790>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_set_get_batchlog_replay_throttle'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_paging_with_filtering_on_counter_columns // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_counter_columns'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fd6cf4f2130>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd6cf72a2b0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd6d0ccf790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd6ceaafac0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_counter_columns'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_drop_compact_storage_flag // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_drop_compact_storage_flag'>>
dtest_config = <dtest_config.DTestConfig object at 0x7efcab4b1e20>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7efca8af0a30>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7efcacdcd8b0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7efca8af0d60>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_drop_compact_storage_flag'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_json_tools // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_json_tools'>>
dtest_config = <dtest_config.DTestConfig object at 0x7efcab4b1e20>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7efca8adb9a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7efcacdcd8b0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7efca8adbdf0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_json_tools'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_zerocopy_streaming_no_replication // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_zerocopy_streaming_no_replication'>>
dtest_config = <dtest_config.DTestConfig object at 0x7efcab4b1e20>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7efcab826e20>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7efcacdcd8b0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7efcaba176d0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_zerocopy_streaming_no_replication'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_local_query // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_local_query'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f5a91d91e80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f5a9024f790>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f5a934b6700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5a90258af0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_local_query'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_remote_query // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_remote_query'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fe2f6dfc040>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe2f55673a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe2f6e5c940>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe2f4c87ac0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_remote_query'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_move // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_move'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fe2f6dfc040>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe2f5b2f460>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe2f6e5c940>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe2f5ab9340>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_move'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_bootstrap_binary_disabled // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_bootstrap_binary_disabled'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f3d7dba9670>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f3d7de362e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f3d7f57a820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f3d7de78160>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_bootstrap_binary_disabled'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_disable_slow_query_log // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disable_slow_query_log'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f3d7dba9670>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f3d7c208c10>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f3d7f57a820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f3d7c208430>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disable_slow_query_log'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_decommission // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_decommission'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f3d7dba9670>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f3d56d1cc70>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f3d7f57a820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f3d5619dee0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_decommission'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_cdc_enabled_data_readable_on_round_trip // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_cdc_enabled_data_readable_on_round_trip'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fe15fa918b0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe15fce86a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe161441670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe15fc51dc0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_cdc_enabled_data_readable_on_round_trip'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_bootstrap_and_cleanup // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_bootstrap_and_cleanup'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fe15fa918b0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe13c87c670>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe161441670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe13c6065b0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_bootstrap_and_cleanup'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_bootstrap // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_bootstrap'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fe15fa918b0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe15fe071c0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe161441670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe15fc34a30>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_bootstrap'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_cdc_disabled_data_readable_on_round_trip // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_cdc_disabled_data_readable_on_round_trip'>>
dtest_config = <dtest_config.DTestConfig object at 0x7efca84a2460>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7efca85ab100>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7efca9be2670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7efca853faf0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_cdc_disabled_data_readable_on_round_trip'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_move_forwards_between_and_cleanup // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_move_forwards_between_and_cleanup'>>
dtest_config = <dtest_config.DTestConfig object at 0x7efca84a2460>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7efca57a6d00>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7efca9be2670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7efca57a1970>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_move_forwards_between_and_cleanup'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_force // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_force'>>
dtest_config = <dtest_config.DTestConfig object at 0x7efca84a2460>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7efca57dc6d0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7efca9be2670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7efca61d3ee0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_force'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_non_cdc_segments_deleted_after_replay // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_non_cdc_segments_deleted_after_replay'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f4a3e578280>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4a3e58d670>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4a3fd86790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4a3c36f430>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_non_cdc_segments_deleted_after_replay'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_fail_without_replace // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_fail_without_replace'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f4a3e578280>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4a3da8b4c0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4a3fd86790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4a3e65a910>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_fail_without_replace'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_update_missed_by_transient_replica // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_update_missed_by_transient_replica'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f4a3e578280>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4a3e3fa5b0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4a3fd86790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4a3e3fa460>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_update_missed_by_transient_replica'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_move_forwards_and_cleanup // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_move_forwards_and_cleanup'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f4a3e578280>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4a0b440e50>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4a3fd86790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4a3fd43310>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_move_forwards_and_cleanup'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_force_with_none_down // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_force_with_none_down'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f4a3e578280>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4a3e52c0a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4a3fd86790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4a3e57fe80>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_force_with_none_down'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_authentication_from_cache_while_unavailable // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_authentication_from_cache_while_unavailable'>>
dtest_config = <dtest_config.DTestConfig object at 0x7ff0ea4a4760>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff0ebe27370>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff0ebe76940>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff0ea739970>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_authentication_from_cache_while_unavailable'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests /
/ test_insertion_and_commitlog_behavior_after_reaching_cdc_total_space // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_insertion_and_commitlog_behavior_after_reaching_cdc_total_space'>>
dtest_config = <dtest_config.DTestConfig object at 0x7ff0ea4a4760>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff0ea84c220>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff0ebe76940>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff0ea84c5e0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_insertion_and_commitlog_behavior_after_reaching_cdc_total_space'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_unsafe_replace // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_unsafe_replace'>>
dtest_config = <dtest_config.DTestConfig object at 0x7ff0ea4a4760>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff0ea844d00>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff0ebe76940>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff0ea64d610>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_unsafe_replace'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_update_only_on_transient_replica // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_update_only_on_transient_replica'>>
dtest_config = <dtest_config.DTestConfig object at 0x7ff0ea4a4760>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff0dbf40700>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff0ebe76940>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff0dbf40b50>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_update_only_on_transient_replica'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_read_old_sstables_after_upgrade // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_read_old_sstables_after_upgrade'>>
dtest_config = <dtest_config.DTestConfig object at 0x7ff0ea4a4760>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff0ea650790>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff0ebe76940>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff0ea650280>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_read_old_sstables_after_upgrade'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_move_backwards_between_and_cleanup // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_move_backwards_between_and_cleanup'>>
dtest_config = <dtest_config.DTestConfig object at 0x7ff0ea4a4760>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff0ea7cefd0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff0ebe76940>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff0dae77a90>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_move_backwards_between_and_cleanup'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_hosts // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_hosts'>>
dtest_config = <dtest_config.DTestConfig object at 0x7ff0ea4a4760>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff0dbbf2d60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff0ebe76940>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff0dbbf2bb0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_hosts'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_credentials_cache_background_reload_handle_unavailable /
/ Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_credentials_cache_background_reload_handle_unavailable'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f8224e06e80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8224e06c40>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f8226828700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8224eb3580>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_credentials_cache_background_reload_handle_unavailable'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_cdc_data_available_in_cdc_raw // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_cdc_data_available_in_cdc_raw'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f8224e06e80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f82256816d0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f8226828700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8225681640>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_cdc_data_available_in_cdc_raw'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_bootstrap // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_bootstrap'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f8224e06e80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8224553070>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f8226828700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f82256a2460>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_bootstrap'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_move_backwards_and_cleanup // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_move_backwards_and_cleanup'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f8224e06e80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f81f5a0f5b0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f8226828700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f81f5a0f2b0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_move_backwards_and_cleanup'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_subrange // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_subrange'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f8224e06e80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8224e51ac0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f8226828700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8224e51d90>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_subrange'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_nodetool_timeout_commands // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_nodetool_timeout_commands'>>
dtest_config = <dtest_config.DTestConfig object at 0x7ff4e4c130a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff4e4196fd0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff4e64df790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff4e4e9e340>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_nodetool_timeout_commands'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_resume // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_resume'>>
dtest_config = <dtest_config.DTestConfig object at 0x7ff4e4c130a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff4b97c58e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff4e64df790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff4b984c7c0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_resume'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_decommission // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_decommission'>>
dtest_config = <dtest_config.DTestConfig object at 0x7ff4e4c130a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff4b990a190>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff4e64df790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff4b975d790>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_decommission'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_repaired_tracking_with_partition_deletes // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_repaired_tracking_with_partition_deletes'>>
dtest_config = <dtest_config.DTestConfig object at 0x7ff4e4c130a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff4b95c3af0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff4e64df790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff4b95c30a0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_repaired_tracking_with_partition_deletes'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_archiving_fql // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_archiving_fql'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f515d40b460>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f515d40b400>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f515ebca700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f515d411be0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_archiving_fql'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_simple_bootstrap_small_keepalive_period // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_simple_bootstrap_small_keepalive_period'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f515d40b460>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f515d3a7040>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f515ebca700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f515c9b4f10>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_simple_bootstrap_small_keepalive_period'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_jmx_connection // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_jmx_connection'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f515d40b460>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f515c04a7c0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f515ebca700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f515d8a36a0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_jmx_connection'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_paging_with_filtering_on_counter_columns_compact // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_counter_columns_compact'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f515d40b460>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f5157e42d60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f515ebca700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5157cd1cd0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_counter_columns_compact'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_failed_read_repair // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_failed_read_repair'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f515d40b460>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f5157baf4f0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f515ebca700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5157baf370>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_failed_read_repair'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_set_ttl_to_zero_to_default_ttl // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_set_ttl_to_zero_to_default_ttl'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f515d40b460>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f5157cd71f0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f515ebca700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5157cd7460>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_set_ttl_to_zero_to_default_ttl'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_manual_join // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_manual_join'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f9c9c3979a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f9c9c4dd310>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9c9dcfc5e0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f9c9c86dc40>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_manual_join'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_remove // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_remove'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f9c9c3979a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f9c9c861160>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9c9dcfc5e0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f9c9c8611c0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_remove'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_repaired_tracking_with_varying_sstable_sets // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_repaired_tracking_with_varying_sstable_sets'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f9c9c3979a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f9c9cbb72e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9c9dcfc5e0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f9c9c87d0a0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_repaired_tracking_with_varying_sstable_sets'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_tracing_unknown_impl // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_tracing_unknown_impl'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f2d197b85b0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f2d19fda9a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f2d1b11c670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2d186def10>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_tracing_unknown_impl'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_write_survey // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_write_survey'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f2d197b85b0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f2d18e74d00>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f2d1b11c670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2d198fd4c0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_write_survey'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_replace // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_replace'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f2d197b85b0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f2d19de7ee0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f2d1b11c670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2d19de7a30>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_replace'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_repaired_tracking_with_mismatching_replicas // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_repaired_tracking_with_mismatching_replicas'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f2d197b85b0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f2d19918280>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f2d1b11c670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2d19cb32b0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_repaired_tracking_with_mismatching_replicas'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_tracing_default_impl // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_tracing_default_impl'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f9d82bec460>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f9d82d8b400>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9d84570790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f9d82bec130>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_tracing_default_impl'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_startup_no_live_seeds // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_startup_no_live_seeds'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f9d82bec460>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f9d8342e760>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9d84570790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f9d8342e2e0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_startup_no_live_seeds'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_transient_noop_write // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_transient_noop_write'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f9d82bec460>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f9d83208ee0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9d84570790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f9d832436a0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_transient_noop_write'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_preview // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_preview'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f9d82bec460>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f9d830e9700>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9d84570790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f9d83107340>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_preview'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_full_dc_access // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_full_dc_access'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f88f8e096d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f88f8e06fd0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f88fa854790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f88f95d7a60>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_full_dc_access'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_set_get_batchlog_replay_throttle // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_set_get_batchlog_replay_throttle'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f88f8e096d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f88f81f3b50>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f88fa854790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f88f9335550>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_set_get_batchlog_replay_throttle'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_startup_non_seed_with_peers // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_startup_non_seed_with_peers'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f88f8e096d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f88f16ba790>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f88fa854790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f88f2f572e0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_startup_non_seed_with_peers'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_transient_write // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_transient_write'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f88f8e096d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f88f16150a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f88fa854790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f88f161c8b0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_transient_write'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_round_trip_with_sub_second_precision // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_round_trip_with_sub_second_precision'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f88f8e096d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f88f163f5e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f88fa854790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f88f163fb50>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_round_trip_with_sub_second_precision'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_single_dc_access // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_single_dc_access'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f7c6a1c78e0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7c6a1c7700>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7c6bc25790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7c6a1d3e50>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_single_dc_access'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_startup_after_ring_delay // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_startup_after_ring_delay'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f7c6a1c78e0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7c6a4475e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7c6bc25790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7c6a849dc0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_startup_after_ring_delay'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_transient_full_merge_read // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_transient_full_merge_read'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f7c6a1c78e0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7c6a97fc40>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7c6bc25790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7c6a97fbe0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_transient_full_merge_read'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_round_trip_with_different_number_precision // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_round_trip_with_different_number_precision'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f7c6a1c78e0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7c6a44a790>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7c6bc25790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7c6a8fac40>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_round_trip_with_different_number_precision'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_revoked_dc_access // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_revoked_dc_access'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f3b140a1460>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f3b14095a00>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f3b15ae6790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f3b1497ce80>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_revoked_dc_access'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_srp // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_srp'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f3b140a1460>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f3b1467b3d0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f3b15ae6790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f3b1467b580>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_srp'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_create_dc_validation // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_create_dc_validation'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f47004c4820>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4701ebd340>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4701f14700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4700c85910>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_create_dc_validation'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_disk_balance_stress // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_stress'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f47004c4820>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f46fd47e670>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4701f14700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4700626bb0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_stress'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_set_get_concurrent_view_builders // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_set_get_concurrent_view_builders'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f47004c4820>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f46ffb30790>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4701f14700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4700c852b0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_set_get_concurrent_view_builders'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_rf_collapse_yaml_file_snitch // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_rf_collapse_yaml_file_snitch'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f47004c4820>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4700d2ae80>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4701f14700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4700943490>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_rf_collapse_yaml_file_snitch'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_transient_full_merge_read_with_delete_transient_coordinator
// Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_transient_full_merge_read_with_delete_transient_coordinator'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f47004c4820>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f470075aee0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4701f14700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4700872d00>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_transient_full_merge_read_with_delete_transient_coordinator'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_alter_dc_validation // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_alter_dc_validation'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f2c5fd8ee20>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f2c5fd83760>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f2c617dc820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2c5fdf5610>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_alter_dc_validation'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_describecluster_more_information_three_datacenters // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_describecluster_more_information_three_datacenters'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f2c5fd8ee20>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f2c5fd788e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f2c617dc820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2c5fd78430>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_describecluster_more_information_three_datacenters'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_rf_expand_yaml_file_snitch // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_rf_expand_yaml_file_snitch'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f2c5fd8ee20>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f2c5d52dc70>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f2c617dc820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2c5d506100>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_rf_expand_yaml_file_snitch'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_snapshot_and_restore_dropping_a_column // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_snapshot_and_restore_dropping_a_column'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f2c5fd8ee20>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f2c604acd30>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f2c617dc820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2c604ac1c0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_snapshot_and_restore_dropping_a_column'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_transient_full_merge_read_with_delete_full_coordinator /
/ Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_transient_full_merge_read_with_delete_full_coordinator'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f2c5fd8ee20>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f2c5fe175b0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f2c617dc820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2c5fe17fd0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_transient_full_merge_read_with_delete_full_coordinator'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_revoked_login // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_revoked_login'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fdc70e8cd00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fdc71124970>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fdc72862670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fdc70e90520>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_revoked_login'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_disk_balance_replace_same_address // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_replace_same_address'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fdc70e8cd00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fdc70ff7d60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fdc72862670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fdc70f31640>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_replace_same_address'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_sjk // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_sjk'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fdc70e8cd00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fdc711106d0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fdc72862670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fdc71110dc0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_sjk'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_cheap_quorums // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_cheap_quorums'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fdc70e8cd00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fdc710ad5e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fdc72862670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fdc705df850>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_cheap_quorums'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_udt_subfield // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_udt_subfield'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fdc70e8cd00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fdc71537040>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fdc72862670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fdc71537820>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_udt_subfield'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_disk_balance_replace_different_address // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_replace_different_address'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f835cabadc0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f835c1b6670>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f835e490670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f835c15ee20>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_replace_different_address'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_speculative_write // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_speculative_write'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f835cabadc0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f835d0cfdc0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f835e490670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f835d0cf790>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_speculative_write'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_archive_on_startup // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_archive_on_startup'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f130e0abdc0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f130e0abd60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f130faac700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f130e0ab1c0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_archive_on_startup'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_require_client_auth // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_require_client_auth'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f130e0abdc0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f130e6e4670>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f130faac700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f130e6e46d0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_require_client_auth'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_paging_with_filtering_on_clustering_columns // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_clustering_columns'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f130e0abdc0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f130e415b80>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f130faac700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f130cca65b0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_clustering_columns'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_normal_read_repair // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_normal_read_repair'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f130e0abdc0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f130c9c5400>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f130faac700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f130c9c5250>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_normal_read_repair'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_disk_balance_decommission // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_decommission'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fd3bf02adc0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd3bf82a1f0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd3c0995670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd3bf1b3ac0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_decommission'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_blacklisted_directory // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_blacklisted_directory'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f722f0fb7f0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f722c0650a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7230a6c700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f722c065b20>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_blacklisted_directory'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_sstableverify // Failure
IndexError: list index out of range
self = <offline_tools_test.TestOfflineTools object at 0x7f722f678220>
@since('2.2')
def test_sstableverify(self):
"""
Generate sstables and test offline verification works correctly
Test on bad input: nonexistent keyspace and sstables
Test on potential situations: deleted sstables, corrupted sstables
"""
cluster = self.cluster
cluster.populate(3).start()
node1, node2, node3 = cluster.nodelist()
# test on nonexistent keyspace
try:
(out, err, rc) = node1.run_sstableverify("keyspace1", "standard1")
except ToolError as e:
assert "Unknown keyspace/table keyspace1.standard1" in repr(e)
assert e.exit_status == 1, str(e.exit_status)
# test on nonexistent sstables:
node1.stress(['write', 'n=100', 'no-warmup', '-schema', 'replication(factor=3)',
'-rate', 'threads=8'])
(out, err, rc) = node1.run_sstableverify("keyspace1", "standard1")
assert rc == 0, str(rc)
# Generate multiple sstables and test works properly in the simple case
node1.stress(['write', 'n=100K', 'no-warmup', '-schema', 'replication(factor=3)',
'-rate', 'threads=8'])
node1.flush()
node1.stress(['write', 'n=100K', 'no-warmup', '-schema', 'replication(factor=3)',
'-rate', 'threads=8'])
node1.flush()
cluster.stop()
(out, error, rc) = node1.run_sstableverify("keyspace1", "standard1")
assert rc == 0, str(rc)
# STDOUT of the sstableverify command consists of multiple lines which may contain
# Java-normalized paths. To later compare these with Python-normalized paths, we
# map over each line of out and replace Java-normalized paths with Python
equivalents.
outlines = [re.sub("(?<=path=').*(?=')",
lambda match: os.path.normcase(match.group(0)),
line) for line in out.splitlines()]
# check output is correct for each sstable
sstables = self._get_final_sstables(node1, "keyspace1", "standard1")
for sstable in sstables:
verified = False
hashcomputed = False
for line in outlines:
if sstable in line:
if "Verifying BigTableReader" in line:
verified = True
elif "Checking computed hash of BigTableReader" in line:
hashcomputed = True
else:
logger.debug(line)
logger.debug(verified)
logger.debug(hashcomputed)
logger.debug(sstable)
assert verified and hashcomputed
# now try intentionally corrupting an sstable to see if hash computed is different
and error recognized
> sstable1 = sstables[1]
E IndexError: list index out of range
offline_tools_test.py:281: IndexError
------------------------------------------------------------------------------------
Cassandra dtests // test_failed_snitch_update_yaml_file_snitch // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_failed_snitch_update_yaml_file_snitch'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f722f0fb7f0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7215b06e50>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7230a6c700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7230a10d00>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_failed_snitch_update_yaml_file_snitch'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_speculative_write_repair_cycle // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_speculative_write_repair_cycle'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f722f0fb7f0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f721520c670>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7230a6c700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7215253b20>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_speculative_write_repair_cycle'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_alter_table // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_alter_table'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f722f0fb7f0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f722e519670>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7230a6c700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f722e519af0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_alter_table'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_alter_replication_factor // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_alter_replication_factor'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f03b9606cd0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f03b9bba820>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f03baf75670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f03b9bbd5e0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_alter_replication_factor'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_primary_range_repair // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_primary_range_repair'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f03b9606cd0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f03b9797d60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f03baf75670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f03b9602970>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_primary_range_repair'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_mutation_v2 // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_mutation_v2'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f03b9606cd0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f03b9dc38e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f03baf75670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f03b8354550>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_mutation_v2'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_auth_metrics // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_auth_metrics'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fc1aa1e2550>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fc1aa1e2040>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fc1abb5a700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fc1aa1d0f70>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_auth_metrics'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_disk_balance_after_boundary_change_stcs // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_after_boundary_change_stcs'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fc1aa1e2550>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fc1aa7e8730>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fc1abb5a700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fc1aa7a4550>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_after_boundary_change_stcs'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_optimized_primary_range_repair // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_optimized_primary_range_repair'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fc1aa1e2550>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fc1aa410640>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fc1abb5a700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fc1aa3c7fa0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_optimized_primary_range_repair'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_disk_balance_after_boundary_change_lcs // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_after_boundary_change_lcs'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f97717dc7c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f9770644520>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f977314e790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f9770644880>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_after_boundary_change_lcs'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_expiration_with_default_ttl_and_zero_ttl // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_expiration_with_default_ttl_and_zero_ttl'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f97717dc7c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f977199d310>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f977314e790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f977199d070>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_expiration_with_default_ttl_and_zero_ttl'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_optimized_primary_range_repair_with_lcs // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_optimized_primary_range_repair_with_lcs'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f97717dc7c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f9771db6c40>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f977314e790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f9771db63d0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_optimized_primary_range_repair_with_lcs'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_compaction_delete[LeveledCompactionStrategy] // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_compaction_delete
[LeveledCompactionStrategy]'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fa768a74880>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fa768139dc0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fa76a41ca60>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fa768128a60>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_compaction_delete
[LeveledCompactionStrategy]'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_disk_balance_after_joining_ring_stcs // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_after_joining_ring_stcs'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fa768a74880>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fa76811c400>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fa76a41ca60>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fa7680b38e0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_after_joining_ring_stcs'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_transient_incremental_repair // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_transient_incremental_repair'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fa768a74880>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fa761f8dd30>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fa76a41ca60>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fa768c7dd30>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_transient_incremental_repair'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_mutation_v5 // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_mutation_v5'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fa768a74880>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fa761e81b80>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fa76a41ca60>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fa761e81b20>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_mutation_v5'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_compaction_delete[SizeTieredCompactionStrategy] // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_compaction_delete
[SizeTieredCompactionStrategy]'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f3fc7b39220>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f3fc49b3910>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f3fc9558700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f3fc621beb0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_compaction_delete
[SizeTieredCompactionStrategy]'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_13911_rows_srp // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_13911_rows_srp'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f3fc7b39220>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f3fc496f340>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f3fc9558700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f3fc496f0d0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_13911_rows_srp'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_disk_balance_after_joining_ring_lcs // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_after_joining_ring_lcs'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f3fc7b39220>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f3fc496e790>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f3fc9558700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f3fc496efa0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_after_joining_ring_lcs'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_full_repair_from_full_replica // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_full_repair_from_full_replica'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f3fc7b39220>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f3fc7babe50>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f3fc9558700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f3fc727d4f0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_full_repair_from_full_replica'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_compaction_delete[DateTieredCompactionStrategy] // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_compaction_delete
[DateTieredCompactionStrategy]'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fdac2895eb0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fdac04b61f0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fdac40b1700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fdac046a9a0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_compaction_delete
[DateTieredCompactionStrategy]'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_13911_partitions_srp // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_13911_partitions_srp'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fdac2895eb0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fdac0467a00>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fdac40b1700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fdac0467eb0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_13911_partitions_srp'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_replay // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_replay'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fdac2895eb0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fdac0470340>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fdac40b1700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fdac0470d60>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_replay'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_ssl_enabled // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_ssl_enabled'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fdac2895eb0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fdac0e79820>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fdac40b1700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fdac0e797c0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_ssl_enabled'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_full_repair_from_transient_replica // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_full_repair_from_transient_replica'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fdac2895eb0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fdac2895790>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fdac40b1700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fdac2895370>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_full_repair_from_transient_replica'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_compare // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_compare'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f9b4dc09eb0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f9b4c0a3fa0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9b4f407790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f9b4c1196d0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_compare'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_ssl_correct_hostname_with_validation // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_ssl_correct_hostname_with_validation'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f9b4dc09eb0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f9b4da76100>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9b4f407790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f9b4f3a8b80>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_ssl_correct_hostname_with_validation'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_speculative_write_repair_cycle // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_speculative_write_repair_cycle'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f9b4dc09eb0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f9b4cffeee0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9b4f407790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f9b4f3a5d60>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_speculative_write_repair_cycle'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_compare_mismatch // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_compare_mismatch'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f059b475d60>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f0599ae0610>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f059ce2d820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f059ac22280>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_compare_mismatch'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_ssl_wrong_hostname_no_validation // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_ssl_wrong_hostname_no_validation'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f059b475d60>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f0599bf8850>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f059ce2d820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f0599bb6eb0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_ssl_wrong_hostname_no_validation'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_primary_range_repair // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_primary_range_repair'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f059b475d60>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f059b497340>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f059ce2d820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f059b497ac0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_primary_range_repair'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_archive_on_shutdown // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_archive_on_shutdown'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f05592fcc70>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f05592fcc10>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f055ace0790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f05592fc8b0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_archive_on_shutdown'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_paging_with_filtering_on_clustering_columns_compact /
/ Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_clustering_columns_compact'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f05592fcc70>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f0551647f10>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f055ace0790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f0551777880>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_clustering_columns_compact'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_speculative_data_request // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_speculative_data_request'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f05592fcc70>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f05517629a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f055ace0790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f0551762370>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_speculative_data_request'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_ssl_wrong_hostname_with_validation // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_ssl_wrong_hostname_with_validation'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f97a99427c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f97a8b35160>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f97ab365700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f97a8be7bb0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_ssl_wrong_hostname_with_validation'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_optimized_primary_range_repair // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_optimized_primary_range_repair'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f97a99427c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f979af4e370>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f97ab365700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f979af4e9a0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_optimized_primary_range_repair'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_ssl_client_auth_required_fail // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_ssl_client_auth_required_fail'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fbc54e49be0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fbc54e78850>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fbc56817820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fbc555734c0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_ssl_client_auth_required_fail'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_optimized_primary_range_repair_with_lcs // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_optimized_primary_range_repair_with_lcs'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fbc54e49be0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fbc5504f1f0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fbc56817820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fbc54405ee0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_optimized_primary_range_repair_with_lcs'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_ssl_client_auth_required_succeed // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_ssl_client_auth_required_succeed'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f01e0a82790>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f01dbfa5640>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f01e243c700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f01dbcdd9a0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_ssl_client_auth_required_succeed'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_transient_incremental_repair // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_transient_incremental_repair'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f01e0a82790>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f01dbd6c940>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f01e243c700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f01dbd6cd60>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_transient_incremental_repair'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_ca_mismatch // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_ca_mismatch'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f452ec2b1f0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f452ec12be0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f45305e4700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f452ec12820>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_ca_mismatch'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_full_repair_from_full_replica // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_full_repair_from_full_replica'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f452ec2b1f0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f452f24cc10>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f45305e4700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f452f24c340>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_full_repair_from_full_replica'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_hintedhandoff_setmaxwindow // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_hintedhandoff_setmaxwindow'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fb483662730>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb481c3a3a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb484f8f790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb480401a00>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_hintedhandoff_setmaxwindow'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_optional_outbound_tls // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_optional_outbound_tls'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fb483662730>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb483662b20>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb484f8f790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb481ccbbb0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_optional_outbound_tls'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_full_repair_from_transient_replica // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_full_repair_from_transient_replica'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fb483662730>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb483c53be0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb484f8f790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb4804012b0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_full_repair_from_transient_replica'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_always_speculate // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_always_speculate'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fb7f18e0310>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb7f0047160>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb7f3289670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb7f0047850>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_always_speculate'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_drop_with_stopped_build // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_drop_with_stopped_build'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f64187a97c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6416ec1f40>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f641a14e550>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f64165a7f70>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_drop_with_stopped_build'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_custom_speculate // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_custom_speculate'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f64187a97c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6417d80be0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f641a14e550>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6417bbd400>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_custom_speculate'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_pull_repair // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_pull_repair'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f64187a97c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6417bba8e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f641a14e550>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6417d273a0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_pull_repair'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_resume_stopped_build // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_resume_stopped_build'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fed99370520>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fed937e2bb0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fed9ab4b790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fed937e2490>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_resume_stopped_build'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_non_replicated_ks_repair // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_non_replicated_ks_repair'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fed99370520>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fed9174b610>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fed9ab4b790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fed9174b1c0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_non_replicated_ks_repair'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_group_by_paging // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_group_by_paging'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6cb8b31b20>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6cb3c13310>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6cba297700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6cb805e760>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_group_by_paging'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_sub_second_precision // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_sub_second_precision'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6cb8b31b20>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6cb39f9d60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6cba297700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6cb39f9490>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_sub_second_precision'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_multiple_ranges_repair // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_multiple_ranges_repair'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6cb8b31b20>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6cb8a793a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6cba297700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6cb8a79c40>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_multiple_ranges_repair'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_group_by_with_range_name_query_paging // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_group_by_with_range_name_query_paging'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f8cb0cc35e0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8cb10ee100>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f8cb2428790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8cb00483d0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_group_by_with_range_name_query_paging'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_paging_with_filtering_on_clustering_columns_with_contains /
/ Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_clustering_columns_with_contains'>>
dtest_config = <dtest_config.DTestConfig object at 0x7efd1dc7e7c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7efd0ee087f0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7efd1f665670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7efd0ef18850>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_clustering_columns_with_contains'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_speculative_write // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_speculative_write'>>
dtest_config = <dtest_config.DTestConfig object at 0x7efd1dc7e7c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7efd1dffc730>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7efd1f665670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7efd1c3f04f0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_speculative_write'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_default_keyspaces_exist // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_default_keyspaces_exist'>>
dtest_config = <dtest_config.DTestConfig object at 0x7efd1dc7e7c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7efd1d229b50>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7efd1f665670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7efd1d229e80>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_default_keyspaces_exist'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_basic_auth // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_basic_auth'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fb69d9a7220>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb69c53ed00>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb69f10f670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb69dd77550>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_basic_auth'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_group_by_with_static_columns_paging // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_group_by_with_static_columns_paging'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fb69d9a7220>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb69cd47880>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb69f10f670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb69c9cae50>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_group_by_with_static_columns_paging'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_tombstone_failure_v5 // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_tombstone_failure_v5'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f1b03c0a100>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f1b02b0f520>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f1b05381670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f1b02afe160>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_tombstone_failure_v5'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_wide_row_repair // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_wide_row_repair'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fa84e0f80a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fa84c168d60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fa84f8c3670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fa84c03fd60>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_wide_row_repair'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_paging_with_filtering_on_static_columns // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_static_columns'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f3d7f9724f0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f3d7d033e80>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f3d81335550>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f3d7ff9c070>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_static_columns'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_quorum_requirement // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_quorum_requirement'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f3d7f9724f0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f3d7c7c0d00>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f3d81335550>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f3d7fc89c70>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_quorum_requirement'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_paging_with_filtering_on_partition_key // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fd6799e89d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd679d29310>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd67b38e5e0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd678ff4c10>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_quorum_requirement_on_speculated_read // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_quorum_requirement_on_speculated_read'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fd6799e89d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd67a003550>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd67b38e5e0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd679fba280>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_quorum_requirement_on_speculated_read'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_user_defined_compaction // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_user_defined_compaction'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6a414169a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6a419c8fa0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6a42dcc700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6a41a0b6a0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_user_defined_compaction'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_paging_with_filtering_on_partition_key_with_limit // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key_with_limit'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6a414169a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6a40a20070>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6a42dcc700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6a40277c10>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key_with_limit'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_monotonic_reads[blocking] // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_monotonic_reads
[blocking]'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6a414169a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6a402a8a60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6a42dcc700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6a402a8820>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_monotonic_reads
[blocking]'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_datetimeformat_round_trip_40 // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_datetimeformat_round_trip_40'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6a414169a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6a40883be0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6a42dcc700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6a41c31790>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_datetimeformat_round_trip_40'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_archiving // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_archiving'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6e9f757700>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6e9f757730>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6ea0f4b700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6e9f747e50>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_archiving'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_paging_with_filtering_on_clustering_columns_with_contains /
/ Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_clustering_columns_with_contains'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6e9f757700>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6e9fdf1df0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6ea0f4b700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6e9d3ec790>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_clustering_columns_with_contains'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_atomic_writes[blocking] // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_atomic_writes
[blocking]'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6e9f757700>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6e9f8e0310>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6ea0f4b700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6e9f8e0460>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_atomic_writes
[blocking]'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_sstableloader_with_failing_2i // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_sstableloader_with_failing_2i'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6e9f757700>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6e9c097760>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6ea0f4b700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6e9f8d7970>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_sstableloader_with_failing_2i'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_paging_with_filtering_on_partition_key_on_static_columns /
/ Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key_on_static_columns'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f0425bd7c10>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f042624fac0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f04275c3700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f042624f6a0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key_on_static_columns'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_only_superuser_can_create_users // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_only_superuser_can_create_users'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f04b0e64250>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f04b0e644f0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f04b26075e0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f04b0e11fa0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_only_superuser_can_create_users'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_password_authenticator_create_user_requires_password /
/ Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_password_authenticator_create_user_requires_password'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f7b626ed040>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7b626eda30>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7b63e2e700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7b62643d30>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_password_authenticator_create_user_requires_password'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_fail_without_replace // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_fail_without_replace'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f7b626ed040>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7b627066a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7b63e2e700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7b62706370>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_fail_without_replace'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_per_partition_limit_paging // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_per_partition_limit_paging'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f26ee7398e0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f26ec2f3430>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f26efea0700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f26ec36abb0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_per_partition_limit_paging'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_unsafe_replace // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_unsafe_replace'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f26ee7398e0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f26ec332fd0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f26efea0700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f26ee69f280>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_unsafe_replace'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_update_missed_by_transient_replica // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_update_missed_by_transient_replica'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f26ee7398e0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f26eeb0be80>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f26efea0700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f26eeaffd00>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_update_missed_by_transient_replica'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_read_old_sstables_after_upgrade // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_read_old_sstables_after_upgrade'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f26ee7398e0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f26ec31c550>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f26efea0700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f26ec31c1c0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_read_old_sstables_after_upgrade'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_json_tools // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_json_tools'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f8cf5767a00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8cf4de33a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f8cf704c670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8cf4cc3520>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_json_tools'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_update_only_on_transient_replica // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_update_only_on_transient_replica'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f8cf5767a00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8cf5928f70>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f8cf704c670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8cf4e4f310>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_update_only_on_transient_replica'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_bootstrap // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_bootstrap'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f8cf5767a00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8cf58962b0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f8cf704c670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8cf5cb3760>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_bootstrap'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_drop_compact_storage_flag // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_drop_compact_storage_flag'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f0f47112b80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f0f4688c7c0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f0f48a3c670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f0f4688c040>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_drop_compact_storage_flag'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_resume // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_resume'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f0f47112b80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f0f46261a00>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f0f48a3c670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f0f46296130>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_resume'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_local_query // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_local_query'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fe36998d760>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe359f4d130>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe36b2c5670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe369b43400>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_local_query'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_manual_join // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_manual_join'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fe36998d760>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe369b7ae80>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe36b2c5670>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe36998a850>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_manual_join'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_only_superusers_can_drop_users // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_only_superusers_can_drop_users'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6f520cf310>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6f5222e2e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6f53a79700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6f520748e0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_only_superusers_can_drop_users'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_remote_query // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_remote_query'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6f520cf310>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6f5206aee0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6f53a79700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6f518504f0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_remote_query'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_write_survey // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_write_survey'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6f520cf310>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6f50479820>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6f53a79700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6f50479850>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_write_survey'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_set_ttl_to_zero_to_default_ttl // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_set_ttl_to_zero_to_default_ttl'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6f520cf310>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6f505c8490>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6f53a79700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6f505c8160>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_set_ttl_to_zero_to_default_ttl'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_disable_slow_query_log // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disable_slow_query_log'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fe72a73d250>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe72a94e070>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe72c11f790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe7286d0a30>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disable_slow_query_log'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_startup_no_live_seeds // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_startup_no_live_seeds'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fe72a73d250>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe72ad69520>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe72c11f790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe72ad71f70>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_startup_no_live_seeds'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_fql_nodetool_options // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_fql_nodetool_options'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f8195ea51c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8195ea5520>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f81976a95e0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8195ea8610>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_fql_nodetool_options'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_paging_with_filtering_on_static_columns // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_static_columns'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f8195ea51c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f81941e6b50>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f81976a95e0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8196310190>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_static_columns'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_atomic_writes[none] // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_atomic_writes
[none]'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f8195ea51c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8195fc91f0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f81976a95e0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f81941127c0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_atomic_writes
[none]'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_wide_row_repair // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_wide_row_repair'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f8195ea51c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f81963754f0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f81976a95e0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f81943563a0>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_wide_row_repair'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_cdc_enabled_data_readable_on_round_trip // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_cdc_enabled_data_readable_on_round_trip'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f425beb1580>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f425bdd8250>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f425d6cb790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f425bedfa90>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_cdc_enabled_data_readable_on_round_trip'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_startup_non_seed_with_peers // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_startup_non_seed_with_peers'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f425beb1580>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f425bf7b970>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f425d6cb790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f425bf774c0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_startup_non_seed_with_peers'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_cdc_disabled_data_readable_on_round_trip // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_cdc_disabled_data_readable_on_round_trip'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f8f931fa430>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8f931c91f0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f8f94ac4820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8f93102250>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_cdc_disabled_data_readable_on_round_trip'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_startup_after_ring_delay // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_startup_after_ring_delay'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f8f931fa430>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8f932f3460>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f8f94ac4820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8f932a2250>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_startup_after_ring_delay'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_default_keyspaces_exist // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_default_keyspaces_exist'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f8f931fa430>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8f90f02340>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f8f94ac4820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8f90d97fa0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_default_keyspaces_exist'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_non_cdc_segments_deleted_after_replay // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_non_cdc_segments_deleted_after_replay'>>
dtest_config = <dtest_config.DTestConfig object at 0x7ff1d2911070>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff1d06ae9a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff1d4100790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff1d2fbca60>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_non_cdc_segments_deleted_after_replay'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_rf_collapse_yaml_file_snitch // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_rf_collapse_yaml_file_snitch'>>
dtest_config = <dtest_config.DTestConfig object at 0x7ff1d2911070>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff1d1d86370>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff1d4100790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff1d1d86970>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_rf_collapse_yaml_file_snitch'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests /
/ test_insertion_and_commitlog_behavior_after_reaching_cdc_total_space // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_insertion_and_commitlog_behavior_after_reaching_cdc_total_space'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f4c92621a60>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4c924c1130>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4c93e16790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4c927808e0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_insertion_and_commitlog_behavior_after_reaching_cdc_total_space'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_rf_expand_yaml_file_snitch // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_rf_expand_yaml_file_snitch'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f4c92621a60>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4c92ae4280>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4c93e16790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4c90255070>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_rf_expand_yaml_file_snitch'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_cdc_data_available_in_cdc_raw // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_cdc_data_available_in_cdc_raw'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fc89cb37d00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fc89c0a63a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fc89e388790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fc89c0c9460>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_cdc_data_available_in_cdc_raw'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_nodetool_timeout_commands // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_nodetool_timeout_commands'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fc89cb37d00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fc89c09c4c0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fc89e388790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fc89c09c160>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_nodetool_timeout_commands'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_snapshot_and_restore_dropping_a_column // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_snapshot_and_restore_dropping_a_column'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fc89cb37d00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fc897c12730>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fc89e388790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fc897c12e50>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_snapshot_and_restore_dropping_a_column'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_datetimeformat_round_trip_40 // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_datetimeformat_round_trip_40'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fc89cb37d00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fc897be6e80>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fc89e388790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fc897b84520>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_datetimeformat_round_trip_40'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_reading_with_ttl // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_reading_with_ttl'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f4f2f62ef10>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4f17a69fd0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4f30c8a5e0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4f16613130>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_reading_with_ttl'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_consistent_repair // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_consistent_repair'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f59ee9cbb80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f59ef07bfa0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f59f0231700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f59ee9dbd30>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_consistent_repair'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_authentication_from_cache_while_unavailable // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_authentication_from_cache_while_unavailable'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fbfd03980a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fbfd1b1f280>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fbfd1b7e700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fbfd0a1efd0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_authentication_from_cache_while_unavailable'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_tracing_unknown_impl // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_tracing_unknown_impl'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fbfd03980a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fbfd0a355b0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fbfd1b7e700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fbfcf836a30>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_tracing_unknown_impl'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_failed_snitch_update_yaml_file_snitch // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_failed_snitch_update_yaml_file_snitch'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fbfd03980a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fbfd035bf70>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fbfd1b7e700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fbfd032fca0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_failed_snitch_update_yaml_file_snitch'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_manual_session_fail // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_manual_session_fail'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fbfd03980a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fbfd08441f0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fbfd1b7e700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fbfcf87d430>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_manual_session_fail'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_credentials_cache_background_reload_handle_unavailable /
/ Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_credentials_cache_background_reload_handle_unavailable'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f4a19e39400>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4a1a4ecd00>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4a1b648790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4a1a4c5730>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_credentials_cache_background_reload_handle_unavailable'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_tracing_default_impl // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_tracing_default_impl'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f4a19e39400>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4a19e39460>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4a1b648790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4a19e39ca0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_tracing_default_impl'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_set_get_batchlog_replay_throttle // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_set_get_batchlog_replay_throttle'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f4a19e39400>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4a19ce8280>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4a1b648790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4a19cc9b50>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_set_get_batchlog_replay_throttle'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_manual_session_cancel_non_coordinator_failure // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_manual_session_cancel_non_coordinator_failure'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f4a19e39400>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4a18fbe4c0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4a1b648790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4a19126160>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_manual_session_cancel_non_coordinator_failure'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_datetime_values_40 // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_datetime_values_40'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fd06f561700>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd06dc33c70>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd070f5d790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd06dc33910>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_datetime_values_40'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_manual_session_force_cancel // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_manual_session_force_cancel'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fd06f561700>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd06db47e50>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd070f5d790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd06dad2a00>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_manual_session_force_cancel'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_archiving_fql // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_archiving_fql'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f393e230280>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f393e230250>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f393fa0a5e0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f393e05a490>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_archiving_fql'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_paging_with_filtering_on_partition_key // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f393e230280>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f393c5cac10>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f393fa0a5e0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f393e66dca0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_paging_with_filtering_on_partition_key'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_failing_manual_rebuild_index // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_failing_manual_rebuild_index'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f393e230280>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f393e066400>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f393fa0a5e0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f393cd21970>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_failing_manual_rebuild_index'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_set_get_concurrent_view_builders // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_set_get_concurrent_view_builders'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fb1c563a8b0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb1c4b37f10>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb1c6e1d700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb1c4bde580>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_set_get_concurrent_view_builders'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_expiration_with_default_ttl_and_zero_ttl // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_expiration_with_default_ttl_and_zero_ttl'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fb1c563a8b0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb1c5ae9100>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb1c6e1d700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb1c5ae22b0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_expiration_with_default_ttl_and_zero_ttl'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_disk_balance_stress // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_stress'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fb795511fd0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb795d83040>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb796ee48b0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb795d478e0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_stress'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_describecluster_more_information_three_datacenters // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_describecluster_more_information_three_datacenters'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fb795511fd0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb794cba5e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb796ee48b0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb794cbaa30>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_describecluster_more_information_three_datacenters'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_full_dc_access // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_full_dc_access'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6ba9a60790>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6ba9858fd0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6bab19f700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6baa046220>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_full_dc_access'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_sjk // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_sjk'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6ba9a60790>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6ba9a72550>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6bab19f700>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6ba87c8b80>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_sjk'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_single_dc_access // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_single_dc_access'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fd408cf1be0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd408ae7be0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd40a3eb5e0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd408c8ec40>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_single_dc_access'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_disk_balance_replace_same_address // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_replace_same_address'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fd408cf1be0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd4081cc9a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd40a3eb5e0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd408252be0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_replace_same_address'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_ssl_enabled // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_ssl_enabled'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fd408cf1be0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd408c88070>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd40a3eb5e0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd408ada070>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_ssl_enabled'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_revoked_dc_access // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_revoked_dc_access'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f268fcd4370>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f268fc8fbe0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f26913c2820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f268e22fa90>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_revoked_dc_access'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_disk_balance_replace_different_address // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_replace_different_address'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f268fcd4370>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f268e23de50>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f26913c2820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f268c1e3340>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_replace_different_address'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_ssl_correct_hostname_with_validation // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_ssl_correct_hostname_with_validation'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f268fcd4370>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f268f1af3d0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f26913c2820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f268fb83bb0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_ssl_correct_hostname_with_validation'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_create_dc_validation // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_create_dc_validation'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f90337643d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f903375fd30>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9034e9f790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f90335ae670>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_create_dc_validation'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_disk_balance_decommission // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_decommission'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f90337643d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f90304bdfd0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9034e9f790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f90304e73d0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_decommission'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_sstableverify // Failure
IndexError: list index out of range
self = <offline_tools_test.TestOfflineTools object at 0x7f9032c34940>
@since('2.2')
def test_sstableverify(self):
"""
Generate sstables and test offline verification works correctly
Test on bad input: nonexistent keyspace and sstables
Test on potential situations: deleted sstables, corrupted sstables
"""
cluster = self.cluster
cluster.populate(3).start()
node1, node2, node3 = cluster.nodelist()
# test on nonexistent keyspace
try:
(out, err, rc) = node1.run_sstableverify("keyspace1", "standard1")
except ToolError as e:
assert "Unknown keyspace/table keyspace1.standard1" in repr(e)
assert e.exit_status == 1, str(e.exit_status)
# test on nonexistent sstables:
node1.stress(['write', 'n=100', 'no-warmup', '-schema', 'replication(factor=3)',
'-rate', 'threads=8'])
(out, err, rc) = node1.run_sstableverify("keyspace1", "standard1")
assert rc == 0, str(rc)
# Generate multiple sstables and test works properly in the simple case
node1.stress(['write', 'n=100K', 'no-warmup', '-schema', 'replication(factor=3)',
'-rate', 'threads=8'])
node1.flush()
node1.stress(['write', 'n=100K', 'no-warmup', '-schema', 'replication(factor=3)',
'-rate', 'threads=8'])
node1.flush()
cluster.stop()
(out, error, rc) = node1.run_sstableverify("keyspace1", "standard1")
assert rc == 0, str(rc)
# STDOUT of the sstableverify command consists of multiple lines which may contain
# Java-normalized paths. To later compare these with Python-normalized paths, we
# map over each line of out and replace Java-normalized paths with Python
equivalents.
outlines = [re.sub("(?<=path=').*(?=')",
lambda match: os.path.normcase(match.group(0)),
line) for line in out.splitlines()]
# check output is correct for each sstable
sstables = self._get_final_sstables(node1, "keyspace1", "standard1")
for sstable in sstables:
verified = False
hashcomputed = False
for line in outlines:
if sstable in line:
if "Verifying BigTableReader" in line:
verified = True
elif "Checking computed hash of BigTableReader" in line:
hashcomputed = True
else:
logger.debug(line)
logger.debug(verified)
logger.debug(hashcomputed)
logger.debug(sstable)
assert verified and hashcomputed
# now try intentionally corrupting an sstable to see if hash computed is different
and error recognized
> sstable1 = sstables[1]
E IndexError: list index out of range
offline_tools_test.py:281: IndexError
------------------------------------------------------------------------------------
Cassandra dtests // test_ssl_wrong_hostname_no_validation // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_ssl_wrong_hostname_no_validation'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f90337643d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f903374bc40>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9034e9f790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f903372a4f0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_ssl_wrong_hostname_no_validation'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_alter_dc_validation // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_alter_dc_validation'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fb6d0cccc10>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb6d0c89af0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb6d2465790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb6d0cce940>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_alter_dc_validation'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_blacklisted_directory // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_blacklisted_directory'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fb6d0cccc10>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb6d1319700>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb6d2465790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb6d131dee0>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_blacklisted_directory'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_ssl_wrong_hostname_with_validation // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_ssl_wrong_hostname_with_validation'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fb6d0cccc10>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb6d1122e20>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb6d2465790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb6d01a1130>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_ssl_wrong_hostname_with_validation'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_force // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_force'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fb6d0cccc10>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb6d0f9b5e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb6d2465790>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb6d1126790>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_force'>>
def cleanup_cluster(self, request=None):
with log_filter('cassandra'): # quiet noise from driver when nodes start going down
> if self.dtest_config.keep_test_dir or (self.dtest_config.keep_failed_test_dir and
request and request.node.rep_call.failed):
E AttributeError: 'Function' object has no attribute 'rep_call'
dtest_setup.py:351: AttributeError
------------------------------------------------------------------------------------
Cassandra dtests // test_revoked_login // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_revoked_login'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fc7014878e0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fc701463e50>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fc702c22820>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations