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/12/02 16:27:35 UTC
Build complete: Cassandra-3.0 #61 [UNSTABLE]
6baeb9247b9156c08305326a77d8c27510d6cb40
-------------------------------------------------------------------------------
Build Cassandra-3.0 #61 Still Unstable
URL: https://ci-cassandra.apache.org/job/Cassandra-3.0/61/
-------------------------------------------------------------------------------
Changes:
[Benjamin Lerer] Fix the histogram merge of the table metrics
[Benjamin Lerer] Fix the counting of cells per partition
-------------------------------------------------------------------------------
Failed Tests:
6 tests failed.
FAILED: dtest-novnode.replace_address_test.TestReplaceAddress.test_insert_data_during_replace_same_address
FAILED: dtest.replace_address_test.TestReplaceAddress.test_insert_data_during_replace_same_address
FAILED: org.apache.cassandra.distributed.test.SimpleReadWriteTest.coordinatorWriteTest
FAILED: org.apache.cassandra.concurrent.LongSharedExecutorPoolTest.testPromptnessOfExecution
FAILED: org.apache.cassandra.db.ScrubTest.testScrubCorruptedCounterRow
FAILED: dtest.offline_tools_test.TestOfflineTools.test_sstableverify
-------------------------------------------------------------------------------
Cassandra CI Results
-------------------------------------------------------------------------------
Tests Failures Errors Skipped Success rate Time
8389 3 359 35 95.68% 81430.585
-------------------------------------------------------------------------------
Name Tests Errors Failures Skipped Time(s)
2582 358 1 0 72711.094
org.apache.cassandra.auth 22 0 0 0 9.839
org.apache.cassandra.batchlog 30 0 0 0 16.724
org.apache.cassandra.cache 6 0 0 0 13.285
org.apache.cassandra.concurrent 12 0 1 0 370.299
org.apache.cassandra.config 38 0 0 0 10.764
org.apache.cassandra.cql.jdbc 2 0 0 0 0.155
org.apache.cassandra.cql3 382 0 0 12 1298.745
org.apache.cassandra.cql3.functions 26 0 0 0 1.053
org.apache.cassandra.cql3.restrictions 46 0 0 0 1.654
org.apache.cassandra.cql3.selection 4 0 0 0 8.793
org.apache.cassandra.cql3.validation 42 0 0 0 30.726
org.apache.cassandra.cql3.validation.entities 658 0 0 2 494.968
org.apache.cassandra.cql3.validation.miscellaneous 86 0 0 0 67.674
org.apache.cassandra.cql3.validation.operations 756 0 0 0 425.430
org.apache.cassandra.db 614 1 0 0 364.671
org.apache.cassandra.db.columniterator 2 0 0 0 5.119
org.apache.cassandra.db.commitlog 291 0 0 2 507.502
org.apache.cassandra.db.compaction 168 0 0 2 375.214
org.apache.cassandra.db.composites 6 0 0 0 0.987
org.apache.cassandra.db.context 16 0 0 0 3.088
org.apache.cassandra.db.filter 10 0 0 0 3.397
org.apache.cassandra.db.lifecycle 136 0 0 0 37.403
org.apache.cassandra.db.marshal 234 0 0 0 50.150
org.apache.cassandra.db.partition 24 0 0 0 107.744
org.apache.cassandra.db.partitions 16 0 0 0 1.707
org.apache.cassandra.db.rows 96 0 0 0 54.988
org.apache.cassandra.db.transform 44 0 0 0 11.546
org.apache.cassandra.db.view 6 0 0 0 2.642
org.apache.cassandra.dht 132 0 0 0 57.560
org.apache.cassandra.dht.tokenallocator 2 0 0 0 141.909
org.apache.cassandra.distributed.test 74 0 1 7 652.948
org.apache.cassandra.distributed.upgrade 12 0 0 0 381.330
org.apache.cassandra.gms 26 0 0 0 23.288
org.apache.cassandra.hadoop 2 0 0 0 0.677
org.apache.cassandra.hints 65 0 0 0 469.839
org.apache.cassandra.index 58 0 0 0 46.105
org.apache.cassandra.index.internal 56 0 0 0 43.550
org.apache.cassandra.io 10 0 0 0 36.288
org.apache.cassandra.io.compress 48 0 0 0 21.200
org.apache.cassandra.io.sstable 213 0 0 2 453.833
org.apache.cassandra.io.sstable.format 2 0 0 0 1.815
org.apache.cassandra.io.sstable.metadata 12 0 0 0 2.109
org.apache.cassandra.io.util 264 0 0 0 87.995
org.apache.cassandra.locator 77 0 0 0 182.093
org.apache.cassandra.metrics 30 0 0 0 37.442
org.apache.cassandra.net 10 0 0 0 14.756
org.apache.cassandra.repair 20 0 0 0 43.971
org.apache.cassandra.repair.messages 24 0 0 0 2.871
org.apache.cassandra.schema 38 0 0 0 30.847
org.apache.cassandra.security 4 0 0 0 1.612
org.apache.cassandra.serializers 54 0 0 0 2.230
org.apache.cassandra.service 218 0 0 2 179.744
org.apache.cassandra.service.pager 14 0 0 0 1.830
org.apache.cassandra.streaming 16 0 0 0 17.354
org.apache.cassandra.streaming.compression 6 0 0 0 1.708
org.apache.cassandra.transport 48 0 0 0 80.057
org.apache.cassandra.triggers 48 0 0 0 17.203
org.apache.cassandra.utils 332 0 0 4 1257.513
org.apache.cassandra.utils.concurrent 34 0 0 2 13.453
org.apache.cassandra.utils.memory 69 0 0 0 137.248
org.apache.cassandra.utils.progress.jmx 10 0 0 0 0.679
org.apache.cassandra.utils.vint 6 0 0 0 0.167
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Packages
-------------------------------------------------------------------------------
Name Tests Errors Failures Skipped Time(s)
Cassandra dtests 6 1 0 806.627
Cassandra dtests 5 0 0 464.586
Cassandra dtests 8 2 0 494.345
Cassandra dtests 5 0 0 730.814
Cassandra dtests 5 0 0 812.894
Cassandra dtests 4 0 0 249.720
Cassandra dtests 2 0 0 285.510
Cassandra dtests 3 0 0 483.041
Cassandra dtests 20 1 0 543.465
Cassandra dtests 21 3 0 446.885
Cassandra dtests 22 4 0 459.261
Cassandra dtests 23 6 0 615.295
Cassandra dtests 22 5 0 326.957
Cassandra dtests 22 5 0 410.754
Cassandra dtests 20 2 0 665.148
Cassandra dtests 22 4 0 569.907
Cassandra dtests 20 2 0 718.142
Cassandra dtests 20 2 0 598.954
Cassandra dtests 21 3 0 708.805
Cassandra dtests 20 1 0 517.031
Cassandra dtests 20 2 0 704.333
Cassandra dtests 22 4 0 1024.091
Cassandra dtests 20 3 0 522.446
Cassandra dtests 18 2 0 382.827
Cassandra dtests 20 3 0 373.466
Cassandra dtests 19 3 0 291.355
Cassandra dtests 20 3 0 285.294
Cassandra dtests 21 4 0 355.116
Cassandra dtests 24 6 0 276.114
Cassandra dtests 23 5 0 255.423
Cassandra dtests 21 2 0 408.672
Cassandra dtests 23 4 0 1558.945
Cassandra dtests 21 4 0 710.488
Cassandra dtests 20 3 0 373.232
Cassandra dtests 22 6 0 292.101
Cassandra dtests 20 5 0 157.805
Cassandra dtests 21 5 0 360.438
Cassandra dtests 21 4 0 328.246
Cassandra dtests 19 2 0 437.494
Cassandra dtests 22 5 0 260.445
Cassandra dtests 20 4 0 321.299
Cassandra dtests 22 3 0 375.083
Cassandra dtests 21 4 0 466.636
Cassandra dtests 18 2 0 802.631
Cassandra dtests 18 1 0 801.245
Cassandra dtests 23 5 0 972.973
Cassandra dtests 20 3 0 517.203
Cassandra dtests 19 2 0 485.416
Cassandra dtests 21 4 0 420.993
Cassandra dtests 22 5 0 424.304
Cassandra dtests 21 4 0 538.013
Cassandra dtests 21 3 0 515.156
Cassandra dtests 24 5 0 484.538
Cassandra dtests 21 3 0 686.716
Cassandra dtests 21 3 0 623.112
Cassandra dtests 20 2 0 1078.989
Cassandra dtests 20 2 0 797.218
Cassandra dtests 20 2 0 686.821
Cassandra dtests 20 2 0 586.657
Cassandra dtests 21 3 0 523.102
Cassandra dtests 19 1 0 506.656
Cassandra dtests 21 3 0 773.184
Cassandra dtests 19 2 0 686.499
Cassandra dtests 21 3 0 411.193
Cassandra dtests 21 3 0 655.788
Cassandra dtests 19 1 0 559.486
Cassandra dtests 20 2 0 912.958
Cassandra dtests 19 1 0 746.846
Cassandra dtests 19 1 0 578.058
Cassandra dtests 20 2 0 459.138
Cassandra dtests 21 3 0 426.671
Cassandra dtests 20 2 0 457.921
Cassandra dtests 24 6 0 441.081
Cassandra dtests 18 2 0 470.858
Cassandra dtests 18 2 0 507.506
Cassandra dtests 18 2 0 390.507
Cassandra dtests 17 1 0 408.376
Cassandra dtests 16 0 0 652.637
Cassandra dtests 18 1 0 395.756
Cassandra dtests 21 4 0 213.662
Cassandra dtests 22 5 0 1194.748
Cassandra dtests 20 3 0 668.491
Cassandra dtests 18 2 0 362.433
Cassandra dtests 21 3 0 616.774
Cassandra dtests 19 4 0 216.811
Cassandra dtests 18 3 0 201.625
Cassandra dtests 19 2 0 480.933
Cassandra dtests 20 3 0 509.301
Cassandra dtests 19 2 0 361.524
Cassandra dtests 19 1 0 315.084
Cassandra dtests 20 3 0 457.220
Cassandra dtests 19 2 0 544.587
Cassandra dtests 19 2 0 491.047
Cassandra dtests 20 4 0 350.329
Cassandra dtests 22 4 0 752.561
Cassandra dtests 19 3 0 438.610
Cassandra dtests 18 2 0 444.935
Cassandra dtests 16 0 0 486.339
Cassandra dtests 19 3 0 397.861
Cassandra dtests 18 3 0 364.854
Cassandra dtests 16 2 0 266.358
Cassandra dtests 19 3 0 561.714
Cassandra dtests 19 3 0 767.387
Cassandra dtests 18 3 1 388.015
Cassandra dtests 20 3 0 511.227
Cassandra dtests 22 4 0 668.032
Cassandra dtests 19 3 0 326.262
Cassandra dtests 19 3 0 379.124
Cassandra dtests 20 4 0 238.600
Cassandra dtests 23 6 0 239.362
Cassandra dtests 21 4 0 215.472
Cassandra dtests 19 2 0 372.726
Cassandra dtests 18 1 0 390.323
Cassandra dtests 18 1 0 439.877
Cassandra dtests 17 0 0 767.157
Cassandra dtests 17 0 0 672.561
Cassandra dtests 21 3 0 653.600
Cassandra dtests 18 1 0 400.446
Cassandra dtests 18 1 0 548.746
Cassandra dtests 18 1 0 572.092
Cassandra dtests 19 2 0 550.956
Cassandra dtests 18 1 0 550.798
Cassandra dtests 19 2 0 778.574
Cassandra dtests 18 1 0 567.619
Cassandra dtests 19 2 0 533.175
Cassandra dtests 18 1 0 733.314
Cassandra dtests 19 2 0 638.816
Cassandra dtests 22 4 0 734.671
Cassandra dtests 18 1 0 543.389
Cassandra dtests 18 1 0 517.812
Cassandra dtests 19 2 0 799.482
Cassandra dtests 21 4 0 870.338
Cassandra dtests 21 4 0 846.105
Cassandra dtests 21 4 0 664.622
Cassandra dtests 20 3 0 919.193
Cassandra dtests 17 2 0 397.724
-------------------------------------------------------------------------------
org.apache.cassandra.auth
Name Tests Errors Failures Skipped Time(s)
PasswordAuthenticatorTest-compression 7 0 0 0 4.228
RoleOptionsTest-compression 4 0 0 0 0.648
PasswordAuthenticatorTest 7 0 0 0 4.343
RoleOptionsTest 4 0 0 0 0.620
-------------------------------------------------------------------------------
org.apache.cassandra.batchlog
Name Tests Errors Failures Skipped Time(s)
BatchTest-compression 2 0 0 0 2.346
BatchlogEndpointFilterTest-compression 5 0 0 0 0.127
BatchlogManagerTest-compression 8 0 0 0 5.969
BatchTest 2 0 0 0 2.274
BatchlogEndpointFilterTest 5 0 0 0 0.137
BatchlogManagerTest 8 0 0 0 5.871
-------------------------------------------------------------------------------
org.apache.cassandra.cache
Name Tests Errors Failures Skipped Time(s)
AutoSavingCacheTest-compression 1 0 0 0 2.402
CacheProviderTest-compression 2 0 0 0 4.254
AutoSavingCacheTest 1 0 0 0 2.456
CacheProviderTest 2 0 0 0 4.173
-------------------------------------------------------------------------------
org.apache.cassandra.concurrent
Name Tests Errors Failures Skipped Time(s)
LongOpOrderTest 1 0 0 0 330.913
LongSharedExecutorPoolTest 1 0 1 0 0.968
DebuggableScheduledThreadPoolExecutorTest- 1 0 0 0 14.168
compression
DebuggableThreadPoolExecutorTest- 1 0 0 0 1.148
compression
SEPExecutorTest-compression 1 0 0 0 4.076
WaitQueueTest-compression 2 0 0 0 0.076
DebuggableScheduledThreadPoolExecutorTest 1 0 0 0 14.126
DebuggableThreadPoolExecutorTest 1 0 0 0 1.133
SEPExecutorTest 1 0 0 0 3.615
WaitQueueTest 2 0 0 0 0.076
-------------------------------------------------------------------------------
org.apache.cassandra.config
Name Tests Errors Failures Skipped Time(s)
CFMetaDataTest-compression 2 0 0 0 2.320
ColumnDefinitionTest-compression 1 0 0 0 0.792
DatabaseDescriptorTest-compression 15 0 0 0 1.957
YamlConfigurationLoaderTest-compression 1 0 0 0 0.385
CFMetaDataTest 2 0 0 0 2.218
ColumnDefinitionTest 1 0 0 0 0.755
DatabaseDescriptorTest 15 0 0 0 1.968
YamlConfigurationLoaderTest 1 0 0 0 0.369
-------------------------------------------------------------------------------
org.apache.cassandra.cql.jdbc
Name Tests Errors Failures Skipped Time(s)
JdbcDecimalTest-compression 1 0 0 0 0.079
JdbcDecimalTest 1 0 0 0 0.076
-------------------------------------------------------------------------------
org.apache.cassandra.cql3
Name Tests Errors Failures Skipped Time(s)
CorruptionTest 1 0 0 0 126.911
ManyRowsTest 2 0 0 0 5.762
ViewLongTest 5 0 0 0 100.381
CQL3TypeLiteralTest-compression 6 0 0 0 0.777
ColumnConditionTest-compression 4 0 0 0 1.057
ColumnIdentifierTest-compression 3 0 0 0 0.471
CqlParserTest-compression 2 0 0 0 0.204
DeleteTest-compression 1 0 0 0 19.472
DistinctQueryPagingTest-compression 5 0 0 0 11.751
EmptyValuesTest-compression 14 0 0 5 31.607
ErrorCollectorTest-compression 6 0 0 0 0.077
IndexQueryPagingTest-compression 4 0 0 0 10.632
KeyCacheCqlTest-compression 5 0 0 0 15.344
LargeCompactValueTest-compression 1 0 0 0 2.657
ListsTest-compression 6 0 0 0 3.859
NonNativeTimestampTest-compression 1 0 0 0 2.587
OutOfSpaceTest-compression 3 0 0 0 3.195
PagingTest-compression 1 0 0 0 10.771
PreparedStatementsTest-compression 3 0 0 0 21.569
QueryWithIndexedSSTableTest-compression 1 0 0 0 3.125
ReservedKeywordsTest-compression 1 0 0 0 0.507
SerializationMirrorTest-compression 1 0 0 0 2.607
SimpleQueryTest-compression 18 0 0 0 8.374
ThriftCompatibilityTest-compression 2 0 0 0 2.720
TombstonesWithIndexedSSTableTest- 2 0 0 0 4.272
compression
UDHelperTest-compression 3 0 0 0 0.378
ViewComplexTest-compression 32 0 0 1 140.567
ViewFilteringTest-compression 14 0 0 0 99.401
ViewSchemaTest-compression 6 0 0 0 52.138
ViewTest-compression 42 0 0 0 83.295
CQL3TypeLiteralTest 6 0 0 0 0.756
ColumnConditionTest 4 0 0 0 1.017
ColumnIdentifierTest 3 0 0 0 0.447
CqlParserTest 2 0 0 0 0.186
DeleteTest 1 0 0 0 18.567
DistinctQueryPagingTest 5 0 0 0 11.222
EmptyValuesTest 14 0 0 5 30.871
ErrorCollectorTest 6 0 0 0 0.075
IndexQueryPagingTest 4 0 0 0 10.457
KeyCacheCqlTest 5 0 0 0 14.638
LargeCompactValueTest 1 0 0 0 2.568
ListsTest 6 0 0 0 4.027
NonNativeTimestampTest 1 0 0 0 2.572
OutOfSpaceTest 3 0 0 0 3.171
PagingTest 1 0 0 0 10.758
PreparedStatementsTest 3 0 0 0 21.459
QueryWithIndexedSSTableTest 1 0 0 0 3.170
ReservedKeywordsTest 1 0 0 0 0.507
SerializationMirrorTest 1 0 0 0 2.651
SimpleQueryTest 18 0 0 0 8.451
ThriftCompatibilityTest 2 0 0 0 2.655
TombstonesWithIndexedSSTableTest 2 0 0 0 4.384
UDHelperTest 3 0 0 0 0.387
ViewComplexTest 32 0 0 1 140.923
ViewFilteringTest 14 0 0 0 99.279
ViewSchemaTest 6 0 0 0 52.400
ViewTest 42 0 0 0 84.679
-------------------------------------------------------------------------------
org.apache.cassandra.cql3.functions
Name Tests Errors Failures Skipped Time(s)
TimeFctsTest-compression 13 0 0 0 0.528
TimeFctsTest 13 0 0 0 0.525
-------------------------------------------------------------------------------
org.apache.cassandra.cql3.restrictions
Name Tests Errors Failures Skipped Time(s)
PrimaryKeyRestrictionSetTest-compression 23 0 0 0 0.859
PrimaryKeyRestrictionSetTest 23 0 0 0 0.795
-------------------------------------------------------------------------------
org.apache.cassandra.cql3.selection
Name Tests Errors Failures Skipped Time(s)
SelectionColumnMappingTest-compression 2 0 0 0 4.456
SelectionColumnMappingTest 2 0 0 0 4.337
-------------------------------------------------------------------------------
org.apache.cassandra.cql3.validation
Name Tests Errors Failures Skipped Time(s)
ThriftIllegalColumnsTest-compression 2 0 0 0 3.496
ThriftIntegrationTest-compression 19 0 0 0 11.843
ThriftIllegalColumnsTest 2 0 0 0 3.387
ThriftIntegrationTest 19 0 0 0 12.000
-------------------------------------------------------------------------------
org.apache.cassandra.cql3.validation.entities
Name Tests Errors Failures Skipped Time(s)
CollectionsTest-compression 37 0 0 0 14.440
CountersTest-compression 7 0 0 0 4.577
DateTypeTest-compression 1 0 0 0 2.767
FrozenCollectionsTest-compression 34 0 0 0 13.824
JsonTest-compression 18 0 0 0 17.695
RowUpdateBuilderTest-compression 2 0 0 0 2.986
SecondaryIndexOnMapEntriesTest- 11 0 0 0 6.764
compression
SecondaryIndexTest-compression 41 0 0 0 26.240
StaticColumnsTest-compression 7 0 0 0 6.191
TimestampTest-compression 6 0 0 0 4.464
TimeuuidTest-compression 2 0 0 0 3.007
TupleTypeTest-compression 11 0 0 0 6.072
TypeTest-compression 4 0 0 0 3.349
UFAuthTest-compression 26 0 0 0 13.166
UFIdentificationTest-compression 14 0 0 1 14.484
UFJavaTest-compression 18 0 0 0 21.828
UFPureScriptTupleCollectionTest- 1 0 0 0 9.585
compression
UFScriptTest-compression 12 0 0 0 15.198
UFSecurityTest-compression 2 0 0 0 5.539
UFTest-compression 25 0 0 0 17.928
UFTypesTest-compression 7 0 0 0 15.838
UFVerifierTest-compression 17 0 0 0 5.907
UserTypesTest-compression 26 0 0 0 15.450
CollectionsTest 37 0 0 0 13.721
CountersTest 7 0 0 0 4.554
DateTypeTest 1 0 0 0 2.568
FrozenCollectionsTest 34 0 0 0 14.396
JsonTest 18 0 0 0 17.793
RowUpdateBuilderTest 2 0 0 0 2.922
SecondaryIndexOnMapEntriesTest 11 0 0 0 6.697
SecondaryIndexTest 41 0 0 0 26.866
StaticColumnsTest 7 0 0 0 6.285
TimestampTest 6 0 0 0 4.471
TimeuuidTest 2 0 0 0 3.028
TupleTypeTest 11 0 0 0 6.059
TypeTest 4 0 0 0 3.541
UFAuthTest 26 0 0 0 13.262
UFIdentificationTest 14 0 0 1 14.701
UFJavaTest 18 0 0 0 21.716
UFPureScriptTupleCollectionTest 1 0 0 0 9.633
UFScriptTest 12 0 0 0 15.253
UFSecurityTest 2 0 0 0 5.443
UFTest 25 0 0 0 17.736
UFTypesTest 7 0 0 0 15.368
UFVerifierTest 17 0 0 0 5.731
UserTypesTest 26 0 0 0 15.925
-------------------------------------------------------------------------------
org.apache.cassandra.cql3.validation.miscellaneous
Name Tests Errors Failures Skipped Time(s)
CrcCheckChanceTest-compression 3 0 0 0 5.602
OverflowTest-compression 15 0 0 0 7.212
PgStringTest-compression 3 0 0 0 3.410
RoleSyntaxTest-compression 9 0 0 0 3.799
SSTableMetadataTrackingTest-compression 7 0 0 0 4.772
SSTablesIteratedTest-compression 1 0 0 0 2.730
TombstonesTest-compression 5 0 0 0 6.408
CrcCheckChanceTest 3 0 0 0 5.571
OverflowTest 15 0 0 0 7.116
PgStringTest 3 0 0 0 3.445
RoleSyntaxTest 9 0 0 0 3.807
SSTableMetadataTrackingTest 7 0 0 0 4.678
SSTablesIteratedTest 1 0 0 0 2.780
TombstonesTest 5 0 0 0 6.344
-------------------------------------------------------------------------------
org.apache.cassandra.cql3.validation.operations
Name Tests Errors Failures Skipped Time(s)
AggregationTest-compression 51 0 0 0 24.245
AlterTest-compression 31 0 0 0 13.797
BatchTest-compression 10 0 0 0 5.509
CreateTest-compression 23 0 0 0 10.255
DeleteTest-compression 32 0 0 0 19.667
DropCompactStorageThriftTest-compression 11 0 0 0 6.665
DropRecreateAndRestoreTest-compression 4 0 0 0 3.762
DropTest-compression 2 0 0 0 2.935
InsertTest-compression 11 0 0 0 6.774
InsertUpdateIfConditionTest-compression 36 0 0 0 18.521
SelectLimitTest-compression 9 0 0 0 12.210
SelectMultiColumnRelationTest-compression 22 0 0 0 11.320
SelectOrderByTest-compression 17 0 0 0 8.708
SelectOrderedPartitionerTest-compression 16 0 0 0 7.916
SelectSingleColumnRelationTest- 23 0 0 0 11.453
compression
SelectTest-compression 60 0 0 0 23.965
TTLTest-compression 7 0 0 0 8.806
TruncateTest-compression 1 0 0 0 2.796
UpdateTest-compression 11 0 0 0 9.395
UseTest-compression 1 0 0 0 2.344
AggregationTest 51 0 0 0 24.776
AlterTest 31 0 0 0 14.240
BatchTest 10 0 0 0 5.637
CreateTest 23 0 0 0 10.530
DeleteTest 32 0 0 0 20.253
DropCompactStorageThriftTest 11 0 0 0 6.671
DropRecreateAndRestoreTest 4 0 0 0 3.785
DropTest 2 0 0 0 2.868
InsertTest 11 0 0 0 6.803
InsertUpdateIfConditionTest 36 0 0 0 18.789
SelectLimitTest 9 0 0 0 12.423
SelectMultiColumnRelationTest 22 0 0 0 11.311
SelectOrderByTest 17 0 0 0 8.920
SelectOrderedPartitionerTest 16 0 0 0 8.172
SelectSingleColumnRelationTest 23 0 0 0 11.410
SelectTest 60 0 0 0 24.501
TTLTest 7 0 0 0 9.017
TruncateTest 1 0 0 0 2.805
UpdateTest 11 0 0 0 9.175
UseTest 1 0 0 0 2.301
-------------------------------------------------------------------------------
org.apache.cassandra.db
Name Tests Errors Failures Skipped Time(s)
CellTest-compression 9 0 0 0 2.245
CleanupTest-compression 6 0 0 0 7.148
ColumnFamilyMetricTest-compression 5 0 0 0 2.848
ColumnFamilyStoreCQLHelperTest- 18 0 0 0 8.043
compression
ColumnFamilyStoreTest-compression 8 0 0 0 4.137
ColumnsTest-compression 8 0 0 0 1.435
CounterCacheTest-compression 5 0 0 0 3.402
CounterCellTest-compression 5 0 0 0 2.491
CounterMutationTest-compression 4 0 0 0 2.780
DeletePartitionTest-compression 1 0 0 0 2.728
DirectoriesTest-compression 9 0 0 0 1.096
KeyCacheTest-compression 3 0 0 0 3.289
KeyspaceTest-compression 10 0 0 0 8.402
LegacyCellNameTest-compression 5 0 0 0 1.172
LegacyLayoutTest-compression 10 0 0 0 3.827
LegacyLayoutValidationTest-compression 15 0 0 0 1.092
LivenessInfoTest-compression 2 0 0 0 0.617
MmapFileTest-compression 1 0 0 0 0.227
MultiKeyspaceTest-compression 1 0 0 0 3.858
NameSortTest-compression 3 0 0 0 3.714
OldFormatDeserializerTest-compression 2 0 0 0 1.070
PartitionRangeReadTest-compression 7 0 0 0 3.887
PartitionTest-compression 5 0 0 0 3.387
RangeTombstoneListTest-compression 23 0 0 0 0.795
RangeTombstoneTest-compression 14 0 0 0 4.222
ReadMessageTest-compression 3 0 0 0 2.990
ReadResponseTest-compression 1 0 0 0 2.656
RecoveryManagerFlushedTest-compression 4 0 0 0 3.580
RecoveryManagerMissingHeaderTest- 4 0 0 0 3.489
compression
RecoveryManagerTest-compression 24 0 0 0 8.907
RecoveryManagerTruncateTest-compression 4 0 0 0 3.672
RemoveCellTest-compression 1 0 0 0 2.689
RepairedDataTombstonesTest-compression 7 0 0 0 28.029
RowCacheCQLTest-compression 3 0 0 0 3.431
RowCacheTest-compression 11 0 0 0 3.878
RowIndexEntryTest-compression 2 0 0 0 3.161
RowIterationTest-compression 3 0 0 0 3.366
RowTest-compression 4 0 0 0 2.226
ScrubTest 1 1 0 0 0.000
SecondaryIndexTest-compression 13 0 0 0 8.319
SerializationHeaderTest-compression 1 0 0 0 1.238
SinglePartitionReadCommandCQLTest- 1 0 0 0 2.632
compression
SinglePartitionSliceCommandTest- 8 0 0 0 3.016
compression
SystemKeyspaceTest-compression 9 0 0 0 1.907
TimeSortTest-compression 2 0 0 0 3.572
TransformerTest-compression 1 0 0 0 0.796
VerifyTest-compression 12 0 0 0 2.929
CellTest 9 0 0 0 2.213
CleanupTest 6 0 0 0 7.149
ColumnFamilyMetricTest 5 0 0 0 2.920
ColumnFamilyStoreCQLHelperTest 18 0 0 0 8.969
ColumnFamilyStoreTest 8 0 0 0 4.762
ColumnsTest 8 0 0 0 1.703
CounterCacheTest 5 0 0 0 3.722
CounterCellTest 5 0 0 0 3.287
CounterMutationTest 4 0 0 0 3.465
DeletePartitionTest 1 0 0 0 2.906
DirectoriesTest 9 0 0 0 1.232
KeyCacheTest 3 0 0 0 3.710
KeyspaceTest 10 0 0 0 8.588
LegacyCellNameTest 5 0 0 0 1.109
LegacyLayoutTest 10 0 0 0 3.056
LegacyLayoutValidationTest 15 0 0 0 0.901
LivenessInfoTest 2 0 0 0 0.420
MmapFileTest 1 0 0 0 0.166
MultiKeyspaceTest 1 0 0 0 2.741
NameSortTest 3 0 0 0 2.865
OldFormatDeserializerTest 2 0 0 0 0.878
PartitionRangeReadTest 7 0 0 0 2.961
PartitionTest 5 0 0 0 2.562
RangeTombstoneListTest 23 0 0 0 0.567
RangeTombstoneTest 14 0 0 0 3.498
ReadMessageTest 3 0 0 0 2.720
ReadResponseTest 1 0 0 0 2.423
RecoveryManagerFlushedTest 4 0 0 0 3.432
RecoveryManagerMissingHeaderTest 4 0 0 0 3.617
RecoveryManagerTest 24 0 0 0 9.556
RecoveryManagerTruncateTest 4 0 0 0 3.654
RemoveCellTest 1 0 0 0 4.307
RepairedDataTombstonesTest 7 0 0 0 28.356
RowCacheCQLTest 3 0 0 0 5.068
RowCacheTest 11 0 0 0 3.950
RowIndexEntryTest 2 0 0 0 4.707
RowIterationTest 3 0 0 0 3.967
RowTest 4 0 0 0 2.464
ScrubTest 19 0 0 0 8.363
SecondaryIndexTest 13 0 0 0 9.786
SerializationHeaderTest 1 0 0 0 1.219
SinglePartitionReadCommandCQLTest 1 0 0 0 2.611
SinglePartitionSliceCommandTest 8 0 0 0 3.411
SystemKeyspaceTest 9 0 0 0 2.345
TimeSortTest 2 0 0 0 4.213
TransformerTest 1 0 0 0 0.810
VerifyTest 12 0 0 0 2.947
-------------------------------------------------------------------------------
org.apache.cassandra.db.columniterator
Name Tests Errors Failures Skipped Time(s)
SSTableReverseIteratorTest-compression 1 0 0 0 2.613
SSTableReverseIteratorTest 1 0 0 0 2.506
-------------------------------------------------------------------------------
org.apache.cassandra.db.commitlog
Name Tests Errors Failures Skipped Time(s)
CommitLogStressTest 3 0 0 0 379.045
AbstractCommitLogServiceTest-compression 9 0 0 0 0.922
BatchCommitLogTest-compression 2 0 0 0 2.265
CommitLogCQLTest-compression 1 0 0 0 2.742
CommitLogChainedMarkersTest-compression 1 0 0 0 3.118
CommitLogDescriptorTest-compression 3 0 0 0 14.412
CommitLogFailurePolicyTest-compression 4 0 0 0 4.839
CommitLogSegmentBackpressureTest- 1 0 0 0 3.815
compression
CommitLogTest-compression 112 0 0 0 22.290
CommitLogUpgradeTest-compression 9 0 0 0 3.363
CommitlogShutdownTest-compression 1 0 0 0 3.110
SnapshotDeletingTest-compression 1 0 0 1 2.246
AbstractCommitLogServiceTest 9 0 0 0 0.869
BatchCommitLogTest 2 0 0 0 2.219
CommitLogCQLTest 1 0 0 0 2.734
CommitLogChainedMarkersTest 1 0 0 0 3.152
CommitLogDescriptorTest 3 0 0 0 14.548
CommitLogFailurePolicyTest 4 0 0 0 6.248
CommitLogSegmentBackpressureTest 1 0 0 0 3.603
CommitLogTest 112 0 0 0 22.312
CommitLogUpgradeTest 9 0 0 0 3.009
CommitlogShutdownTest 1 0 0 0 3.806
SnapshotDeletingTest 1 0 0 1 2.835
-------------------------------------------------------------------------------
org.apache.cassandra.db.compaction
Name Tests Errors Failures Skipped Time(s)
LongCompactionsTest 4 0 0 0 31.334
LongLeveledCompactionStrategyTest 2 0 0 0 6.554
AntiCompactionBytemanTest-compression 1 0 0 0 5.420
AntiCompactionTest-compression 6 0 0 0 27.795
CancelCompactionsTest-compression 1 0 0 0 2.851
CompactionAwareWriterTest-compression 4 0 0 0 25.622
CompactionControllerTest-compression 2 0 0 0 2.861
CompactionExecutorTest-compression 3 0 0 0 0.693
CompactionIteratorTest-compression 1 0 0 0 2.661
CompactionsBytemanTest-compression 1 0 0 0 6.356
CompactionsCQLTest-compression 13 0 0 0 22.283
CompactionsPurgeTest-compression 10 0 0 0 3.280
CompactionsTest-compression 7 0 0 1 18.160
CorruptedSSTablesCompactionsTest- 2 0 0 0 4.347
compression
DateTieredCompactionStrategyTest- 7 0 0 0 6.190
compression
LeveledCompactionStrategyTest-compression 5 0 0 0 8.293
NeverPurgeTest-compression 4 0 0 0 8.436
OneCompactionTest-compression 2 0 0 0 2.707
SizeTieredCompactionStrategyTest- 3 0 0 0 2.616
compression
TTLExpiryTest-compression 5 0 0 0 9.242
TimeWindowCompactionStrategyTest- 4 0 0 0 5.939
compression
AntiCompactionBytemanTest 1 0 0 0 5.405
AntiCompactionTest 6 0 0 0 28.734
CancelCompactionsTest 1 0 0 0 2.711
CompactionAwareWriterTest 4 0 0 0 28.119
CompactionControllerTest 2 0 0 0 2.957
CompactionExecutorTest 3 0 0 0 0.689
CompactionIteratorTest 1 0 0 0 2.616
CompactionsBytemanTest 1 0 0 0 6.279
CompactionsCQLTest 13 0 0 0 22.501
CompactionsPurgeTest 10 0 0 0 3.709
CompactionsTest 7 0 0 1 18.531
CorruptedSSTablesCompactionsTest 2 0 0 0 4.169
DateTieredCompactionStrategyTest 7 0 0 0 6.019
LeveledCompactionStrategyTest 5 0 0 0 7.728
NeverPurgeTest 4 0 0 0 11.275
OneCompactionTest 2 0 0 0 2.606
SizeTieredCompactionStrategyTest 3 0 0 0 2.566
TTLExpiryTest 5 0 0 0 9.213
TimeWindowCompactionStrategyTest 4 0 0 0 5.747
-------------------------------------------------------------------------------
org.apache.cassandra.db.composites
Name Tests Errors Failures Skipped Time(s)
CTypeTest-compression 3 0 0 0 0.515
CTypeTest 3 0 0 0 0.472
-------------------------------------------------------------------------------
org.apache.cassandra.db.context
Name Tests Errors Failures Skipped Time(s)
CounterContextTest-compression 8 0 0 0 1.547
CounterContextTest 8 0 0 0 1.541
-------------------------------------------------------------------------------
org.apache.cassandra.db.filter
Name Tests Errors Failures Skipped Time(s)
ColumnFilterTest-compression 1 0 0 0 0.620
RowFilterTest-compression 1 0 0 0 0.819
SliceTest-compression 3 0 0 0 0.303
ColumnFilterTest 1 0 0 0 0.582
RowFilterTest 1 0 0 0 0.784
SliceTest 3 0 0 0 0.289
-------------------------------------------------------------------------------
org.apache.cassandra.db.lifecycle
Name Tests Errors Failures Skipped Time(s)
HelpersTest-compression 8 0 0 0 6.626
LifecycleTransactionTest-compression 8 0 0 0 1.990
LogTransactionTest-compression 39 0 0 0 2.517
RealTransactionsTest-compression 3 0 0 0 3.289
TrackerTest-compression 7 0 0 0 1.904
ViewTest-compression 3 0 0 0 1.509
HelpersTest 8 0 0 0 6.976
LifecycleTransactionTest 8 0 0 0 3.039
LogTransactionTest 39 0 0 0 2.532
RealTransactionsTest 3 0 0 0 3.053
TrackerTest 7 0 0 0 2.245
ViewTest 3 0 0 0 1.723
-------------------------------------------------------------------------------
org.apache.cassandra.db.marshal
Name Tests Errors Failures Skipped Time(s)
BytesTypeTest-compression 2 0 0 0 0.279
CollectionTypeTest-compression 6 0 0 0 0.334
CompositeTypeTest-compression 8 0 0 0 2.354
DecimalTypeTest-compression 3 0 0 0 0.273
DynamicCompositeTypeTest-compression 8 0 0 0 2.221
EmptyTypeTest-compression 7 0 0 0 0.858
IntegerTypeTest-compression 10 0 0 0 0.325
JsonConversionTest-compression 30 0 0 0 0.663
ReversedTypeTest-compression 1 0 0 0 0.281
RoundTripTest-compression 8 0 0 0 0.471
SimpleDateTypeTest-compression 1 0 0 0 0.338
TimeTypeTest-compression 2 0 0 0 2.840
TimeUUIDTypeTest-compression 6 0 0 0 7.975
TypeCompareTest-compression 6 0 0 0 0.297
TypeParserTest-compression 3 0 0 0 0.644
TypeValidationTest-compression 10 0 0 0 0.619
UUIDTypeTest-compression 6 0 0 0 4.010
BytesTypeTest 2 0 0 0 0.360
CollectionTypeTest 6 0 0 0 0.416
CompositeTypeTest 8 0 0 0 2.643
DecimalTypeTest 3 0 0 0 0.353
DynamicCompositeTypeTest 8 0 0 0 2.439
EmptyTypeTest 7 0 0 0 0.872
IntegerTypeTest 10 0 0 0 0.347
JsonConversionTest 30 0 0 0 0.658
ReversedTypeTest 1 0 0 0 0.298
RoundTripTest 8 0 0 0 0.473
SimpleDateTypeTest 1 0 0 0 0.331
TimeTypeTest 2 0 0 0 2.859
TimeUUIDTypeTest 6 0 0 0 7.652
TypeCompareTest 6 0 0 0 0.324
TypeParserTest 3 0 0 0 0.713
TypeValidationTest 10 0 0 0 0.637
UUIDTypeTest 6 0 0 0 3.993
-------------------------------------------------------------------------------
org.apache.cassandra.db.partition
Name Tests Errors Failures Skipped Time(s)
PartitionImplementationTest-compression 7 0 0 0 49.351
PartitionUpdateTest-compression 5 0 0 0 3.921
PartitionImplementationTest 7 0 0 0 48.414
PartitionUpdateTest 5 0 0 0 6.058
-------------------------------------------------------------------------------
org.apache.cassandra.db.partitions
Name Tests Errors Failures Skipped Time(s)
PurgeFunctionTest-compression 8 0 0 0 0.791
PurgeFunctionTest 8 0 0 0 0.916
-------------------------------------------------------------------------------
org.apache.cassandra.db.rows
Name Tests Errors Failures Skipped Time(s)
AbstractTypeVersionComparatorTest- 9 0 0 0 0.307
compression
DigestBackwardCompatibilityTest- 5 0 0 0 3.957
compression
EncodingStatsTest-compression 9 0 0 0 0.087
RowAndDeletionMergeIteratorTest- 10 0 0 0 2.260
compression
RowsTest-compression 9 0 0 0 0.844
UnfilteredRowIteratorsMergeTest- 5 0 0 0 18.146
compression
UnfilteredRowIteratorsTest-compression 1 0 0 0 0.814
AbstractTypeVersionComparatorTest 9 0 0 0 0.340
DigestBackwardCompatibilityTest 5 0 0 0 3.979
EncodingStatsTest 9 0 0 0 0.093
RowAndDeletionMergeIteratorTest 10 0 0 0 2.518
RowsTest 9 0 0 0 0.839
UnfilteredRowIteratorsMergeTest 5 0 0 0 19.920
UnfilteredRowIteratorsTest 1 0 0 0 0.884
-------------------------------------------------------------------------------
org.apache.cassandra.db.transform
Name Tests Errors Failures Skipped Time(s)
DuplicateRowCheckerTest-compression 7 0 0 0 4.611
RTTransformationsTest-compression 15 0 0 0 0.813
DuplicateRowCheckerTest 7 0 0 0 5.218
RTTransformationsTest 15 0 0 0 0.904
-------------------------------------------------------------------------------
org.apache.cassandra.db.view
Name Tests Errors Failures Skipped Time(s)
ViewUtilsTest-compression 3 0 0 0 1.229
ViewUtilsTest 3 0 0 0 1.413
-------------------------------------------------------------------------------
org.apache.cassandra.dht
Name Tests Errors Failures Skipped Time(s)
BootStrapperTest-compression 8 0 0 0 4.350
BoundsTest-compression 1 0 0 0 0.305
ByteOrderedPartitionerTest-compression 6 0 0 0 1.848
KeyCollisionTest-compression 1 0 0 0 2.376
Murmur3PartitionerTest-compression 6 0 0 0 1.228
OrderPreservingPartitionerTest- 7 0 0 0 2.059
compression
RandomPartitionerTest-compression 6 0 0 0 1.389
RangeTest-compression 30 0 0 0 12.258
StreamStateStoreTest-compression 1 0 0 0 1.548
BootStrapperTest 8 0 0 0 4.951
BoundsTest 1 0 0 0 0.295
ByteOrderedPartitionerTest 6 0 0 0 2.064
KeyCollisionTest 1 0 0 0 3.296
Murmur3PartitionerTest 6 0 0 0 1.924
OrderPreservingPartitionerTest 7 0 0 0 2.224
RandomPartitionerTest 6 0 0 0 1.378
RangeTest 30 0 0 0 12.262
StreamStateStoreTest 1 0 0 0 1.805
-------------------------------------------------------------------------------
org.apache.cassandra.dht.tokenallocator
Name Tests Errors Failures Skipped Time(s)
ReplicationAwareTokenAllocatorTest 2 0 0 0 141.909
-------------------------------------------------------------------------------
org.apache.cassandra.distributed.test
Name Tests Errors Failures Skipped Time(s)
BootstrapBinaryDisabledTest 1 0 0 0 52.195
BootstrapTest 1 0 0 0 68.596
CASTest 14 0 0 6 101.661
ClientNetworkStopStartTest 2 0 0 0 21.146
GossipSettlesTest 1 0 0 0 11.960
GossipShutdownTest 1 0 0 0 20.136
GossipTest 3 0 0 0 42.256
JVMDTestTest 4 0 0 0 36.384
JVMStabilityInspectorCorruptSSTableExceptionTest 2 0 0 0 61.989
MessageFiltersTest 4 0 0 0 46.954
MessageForwardingTest 1 0 0 0 12.748
NativeProtocolTest 2 0 0 0 35.821
NetworkTopologyTest 6 0 0 0 4.937
NodeToolTest 2 0 0 0 9.738
ReadRepairTest 2 0 0 0 12.980
RepairOperationalTest 5 0 0 0 38.524
ReplicaFilteringProtectionTest 3 0 0 0 7.876
ResourceLeakTest 1 0 0 1 0.058
SchemaTest 3 0 0 0 18.608
SimpleReadWriteTest 15 0 1 0 39.192
ThriftClientTest 1 0 0 0 9.189
-------------------------------------------------------------------------------
org.apache.cassandra.distributed.upgrade
Name Tests Errors Failures Skipped Time(s)
CompactStorage2to3UpgradeTest 4 0 0 0 63.576
MigrateDropColumnsTest 1 0 0 0 31.014
MixedModeRangeTombstoneTest 1 0 0 0 14.702
MixedModeReadRepairTest 2 0 0 0 27.168
PagingTest 1 0 0 0 107.105
UpgradeTest 3 0 0 0 137.765
-------------------------------------------------------------------------------
org.apache.cassandra.gms
Name Tests Errors Failures Skipped Time(s)
ArrayBackedBoundedStatsTest-compression 2 0 0 0 0.075
ArrivalWindowTest-compression 1 0 0 0 0.622
EndpointStateTest-compression 2 0 0 0 1.164
ExpireEndpointTest-compression 1 0 0 0 0.848
FailureDetectorTest-compression 1 0 0 0 1.681
GossipDigestTest-compression 1 0 0 0 0.686
GossiperTest-compression 2 0 0 0 1.541
PendingRangeCalculatorServiceTest- 1 0 0 0 3.217
compression
SerializationsTest-compression 2 0 0 0 0.774
ArrayBackedBoundedStatsTest 2 0 0 0 0.073
ArrivalWindowTest 1 0 0 0 0.659
EndpointStateTest 2 0 0 0 1.318
ExpireEndpointTest 1 0 0 0 0.970
FailureDetectorTest 1 0 0 0 1.979
GossipDigestTest 1 0 0 0 0.730
GossiperTest 2 0 0 0 1.747
PendingRangeCalculatorServiceTest 1 0 0 0 4.122
SerializationsTest 2 0 0 0 1.082
-------------------------------------------------------------------------------
org.apache.cassandra.hadoop
Name Tests Errors Failures Skipped Time(s)
ColumnFamilyInputFormatTest-compression 1 0 0 0 0.321
ColumnFamilyInputFormatTest 1 0 0 0 0.356
-------------------------------------------------------------------------------
org.apache.cassandra.hints
Name Tests Errors Failures Skipped Time(s)
HintsWriteThenReadTest 1 0 0 0 80.089
ChecksummedDataInputTest-compression 3 0 0 0 0.678
HintMessageTest-compression 1 0 0 0 2.258
HintTest-compression 7 0 0 0 2.634
HintsBufferPoolTest-compression 1 0 0 0 2.827
HintsBufferTest-compression 2 0 0 0 5.262
HintsCatalogTest-compression 3 0 0 0 2.341
HintsCompressionTest-compression 3 0 0 0 4.965
HintsDescriptorTest-compression 4 0 0 0 0.510
HintsReaderTest-compression 2 0 0 0 2.602
HintsServiceTest-compression 4 0 0 0 164.940
LegacyHintsMigratorTest-compression 2 0 0 0 3.053
ChecksummedDataInputTest 3 0 0 0 0.706
HintMessageTest 1 0 0 0 2.186
HintTest 7 0 0 0 2.602
HintsBufferPoolTest 1 0 0 0 3.044
HintsBufferTest 2 0 0 0 6.041
HintsCatalogTest 3 0 0 0 3.803
HintsCompressionTest 3 0 0 0 7.976
HintsDescriptorTest 4 0 0 0 0.562
HintsReaderTest 2 0 0 0 2.547
HintsServiceTest 4 0 0 0 164.917
LegacyHintsMigratorTest 2 0 0 0 3.296
-------------------------------------------------------------------------------
org.apache.cassandra.index
Name Tests Errors Failures Skipped Time(s)
CustomIndexTest-compression 29 0 0 0 22.240
CustomIndexTest 29 0 0 0 23.865
-------------------------------------------------------------------------------
org.apache.cassandra.index.internal
Name Tests Errors Failures Skipped Time(s)
CassandraIndexTest-compression 28 0 0 0 21.154
CassandraIndexTest 28 0 0 0 22.396
-------------------------------------------------------------------------------
org.apache.cassandra.io
Name Tests Errors Failures Skipped Time(s)
BloomFilterTrackerTest-compression 3 0 0 0 0.078
DiskSpaceMetricsTest-compression 2 0 0 0 18.203
BloomFilterTrackerTest 3 0 0 0 0.072
DiskSpaceMetricsTest 2 0 0 0 17.935
-------------------------------------------------------------------------------
org.apache.cassandra.io.compress
Name Tests Errors Failures Skipped Time(s)
CompressedRandomAccessReaderTest- 6 0 0 0 0.858
compression
CompressedSequentialWriterReopenTest- 4 0 0 0 7.140
compression
CompressedSequentialWriterTest- 10 0 0 0 0.918
compression
CompressorTest-compression 4 0 0 0 1.350
CompressedRandomAccessReaderTest 6 0 0 0 0.845
CompressedSequentialWriterReopenTest 4 0 0 0 7.614
CompressedSequentialWriterTest 10 0 0 0 1.007
CompressorTest 4 0 0 0 1.468
-------------------------------------------------------------------------------
org.apache.cassandra.io.sstable
Name Tests Errors Failures Skipped Time(s)
CQLSSTableWriterLongTest 1 0 0 0 4.980
BigTableWriterTest-compression 5 0 0 0 2.659
CQLSSTableWriterClientTest-compression 1 0 0 0 1.305
CQLSSTableWriterTest-compression 7 0 0 0 3.577
DescriptorTest-compression 7 0 0 0 0.701
IndexHelperTest-compression 1 0 0 0 0.415
IndexSummaryManagerTest-compression 8 0 0 0 6.400
IndexSummaryRedistributionTest- 1 0 0 0 3.333
compression
IndexSummaryTest-compression 12 0 0 0 32.466
LegacySSTableTest-compression 17 0 0 1 25.287
SSTableCorruptionDetectionTest- 2 0 0 0 53.404
compression
SSTableLoaderTest-compression 2 0 0 0 11.098
SSTableMetadataTest-compression 3 0 0 0 2.805
SSTableReaderTest-compression 12 0 0 0 6.582
SSTableRewriterTest-compression 21 0 0 0 15.628
SSTableScannerTest-compression 3 0 0 0 2.612
SSTableWriterTest-compression 4 0 0 0 34.745
BigTableWriterTest 5 0 0 0 2.507
CQLSSTableWriterClientTest 1 0 0 0 1.264
CQLSSTableWriterTest 7 0 0 0 3.915
DescriptorTest 7 0 0 0 0.718
IndexHelperTest 1 0 0 0 0.473
IndexSummaryManagerTest 8 0 0 0 4.697
IndexSummaryRedistributionTest 1 0 0 0 4.353
IndexSummaryTest 12 0 0 0 34.978
LegacySSTableTest 17 0 0 1 29.276
SSTableCorruptionDetectionTest 2 0 0 0 54.263
SSTableLoaderTest 2 0 0 0 13.267
SSTableMetadataTest 3 0 0 0 2.924
SSTableReaderTest 12 0 0 0 6.577
SSTableRewriterTest 21 0 0 0 15.531
SSTableScannerTest 3 0 0 0 2.344
SSTableWriterTest 4 0 0 0 68.749
-------------------------------------------------------------------------------
org.apache.cassandra.io.sstable.format
Name Tests Errors Failures Skipped Time(s)
ClientModeSSTableTest-compression 1 0 0 0 0.793
ClientModeSSTableTest 1 0 0 0 1.022
-------------------------------------------------------------------------------
org.apache.cassandra.io.sstable.metadata
Name Tests Errors Failures Skipped Time(s)
MetadataSerializerTest-compression 6 0 0 0 0.925
MetadataSerializerTest 6 0 0 0 1.184
-------------------------------------------------------------------------------
org.apache.cassandra.io.util
Name Tests Errors Failures Skipped Time(s)
BufferedDataOutputStreamTest-compression 19 0 0 0 26.169
BufferedRandomAccessFileTest-compression 17 0 0 0 0.732
ChecksummedRandomAccessReaderTest- 3 0 0 0 0.721
compression
ChecksummedSequentialWriterTest- 7 0 0 0 0.699
compression
DataOutputTest-compression 15 0 0 0 0.702
FileSegmentInputStreamTest-compression 7 0 0 0 0.085
FileUtilsTest-compression 2 0 0 0 0.282
MemoryTest-compression 2 0 0 0 0.324
MmappedRegionsTest-compression 12 0 0 0 0.870
NIODataInputStreamTest-compression 17 0 0 0 8.829
RandomAccessReaderTest-compression 11 0 0 0 0.945
RewindableDataInputStreamPlusTest- 8 0 0 0 0.092
compression
SafeMemoryWriterTest-compression 2 0 0 0 2.692
SegmentedFileTest-compression 3 0 0 0 0.628
SequentialWriterTest-compression 7 0 0 0 0.662
BufferedDataOutputStreamTest 19 0 0 0 25.008
BufferedRandomAccessFileTest 17 0 0 0 0.752
ChecksummedRandomAccessReaderTest 3 0 0 0 0.729
ChecksummedSequentialWriterTest 7 0 0 0 0.669
DataOutputTest 15 0 0 0 0.713
FileSegmentInputStreamTest 7 0 0 0 0.095
FileUtilsTest 2 0 0 0 0.307
MemoryTest 2 0 0 0 0.330
MmappedRegionsTest 12 0 0 0 0.889
NIODataInputStreamTest 17 0 0 0 9.071
RandomAccessReaderTest 11 0 0 0 0.923
RewindableDataInputStreamPlusTest 8 0 0 0 0.090
SafeMemoryWriterTest 2 0 0 0 2.613
SegmentedFileTest 3 0 0 0 0.643
SequentialWriterTest 7 0 0 0 0.731
-------------------------------------------------------------------------------
org.apache.cassandra.locator
Name Tests Errors Failures Skipped Time(s)
DynamicEndpointSnitchLongTest 1 0 0 0 94.706
CloudstackSnitchTest-compression 2 0 0 0 5.244
DynamicEndpointSnitchTest-compression 1 0 0 0 1.879
EC2SnitchTest-compression 3 0 0 0 5.257
GoogleCloudSnitchTest-compression 2 0 0 0 5.222
GossipingPropertyFileSnitchTest- 1 0 0 0 0.753
compression
NetworkTopologyStrategyTest-compression 3 0 0 0 0.856
OldNetworkTopologyStrategyTest- 8 0 0 0 0.816
compression
PendingRangeMapsTest-compression 2 0 0 0 0.425
PropertyFileSnitchTest-compression 5 0 0 0 15.899
ReplicationStrategyEndpointCacheTest- 2 0 0 0 2.188
compression
SimpleStrategyTest-compression 4 0 0 0 2.200
TokenMetadataTest-compression 5 0 0 0 0.850
CloudstackSnitchTest 2 0 0 0 5.427
DynamicEndpointSnitchTest 1 0 0 0 1.956
EC2SnitchTest 3 0 0 0 6.105
GoogleCloudSnitchTest 2 0 0 0 6.269
GossipingPropertyFileSnitchTest 1 0 0 0 0.805
NetworkTopologyStrategyTest 3 0 0 0 0.864
OldNetworkTopologyStrategyTest 8 0 0 0 0.813
PendingRangeMapsTest 2 0 0 0 0.403
PropertyFileSnitchTest 5 0 0 0 15.870
ReplicationStrategyEndpointCacheTest 2 0 0 0 2.422
SimpleStrategyTest 4 0 0 0 3.586
TokenMetadataTest 5 0 0 0 1.278
-------------------------------------------------------------------------------
org.apache.cassandra.metrics
Name Tests Errors Failures Skipped Time(s)
CQLMetricsTest-compression 4 0 0 0 7.342
DecayingEstimatedHistogramReservoirTest- 9 0 0 0 6.752
compression
HintedHandOffMetricsTest-compression 1 0 0 0 1.553
LatencyMetricsTest-compression 1 0 0 0 0.378
CQLMetricsTest 4 0 0 0 11.648
DecayingEstimatedHistogramReservoirTest 9 0 0 0 7.696
HintedHandOffMetricsTest 1 0 0 0 1.516
LatencyMetricsTest 1 0 0 0 0.557
-------------------------------------------------------------------------------
org.apache.cassandra.net
Name Tests Errors Failures Skipped Time(s)
MessagingServiceTest-compression 1 0 0 0 0.720
MockMessagingServiceTest-compression 1 0 0 0 2.671
OutboundTcpConnectionTest-compression 2 0 0 0 1.575
WriteCallbackInfoTest-compression 1 0 0 0 0.907
MessagingServiceTest 1 0 0 0 1.073
MockMessagingServiceTest 1 0 0 0 4.172
OutboundTcpConnectionTest 2 0 0 0 2.226
WriteCallbackInfoTest 1 0 0 0 1.412
-------------------------------------------------------------------------------
org.apache.cassandra.repair
Name Tests Errors Failures Skipped Time(s)
LocalSyncTaskTest-compression 2 0 0 0 2.850
RepairJobTest-compression 3 0 0 0 4.013
RepairSessionTest-compression 1 0 0 0 0.863
ValidatorTest-compression 4 0 0 0 13.430
LocalSyncTaskTest 2 0 0 0 4.014
RepairJobTest 3 0 0 0 4.429
RepairSessionTest 1 0 0 0 0.800
ValidatorTest 4 0 0 0 13.572
-------------------------------------------------------------------------------
org.apache.cassandra.repair.messages
Name Tests Errors Failures Skipped Time(s)
RepairMessageSerializationsTest- 9 0 0 0 0.802
compression
RepairOptionTest-compression 3 0 0 0 0.661
RepairMessageSerializationsTest 9 0 0 0 0.767
RepairOptionTest 3 0 0 0 0.641
-------------------------------------------------------------------------------
org.apache.cassandra.schema
Name Tests Errors Failures Skipped Time(s)
CreateTableValidationTest-compression 1 0 0 0 2.465
DefsTest-compression 11 0 0 0 4.146
LegacySchemaMigratorTest-compression 2 0 0 0 5.076
SchemaKeyspaceTest-compression 5 0 0 0 2.749
CreateTableValidationTest 1 0 0 0 2.674
DefsTest 11 0 0 0 4.740
LegacySchemaMigratorTest 2 0 0 0 6.043
SchemaKeyspaceTest 5 0 0 0 2.954
-------------------------------------------------------------------------------
org.apache.cassandra.security
Name Tests Errors Failures Skipped Time(s)
SSLFactoryTest-compression 2 0 0 0 0.746
SSLFactoryTest 2 0 0 0 0.866
-------------------------------------------------------------------------------
org.apache.cassandra.serializers
Name Tests Errors Failures Skipped Time(s)
ClientUtilsTest-compression 1 0 0 0 0.473
SimpleDateSerializerTest-compression 9 0 0 0 0.375
TimeSerializerTest-compression 16 0 0 0 0.092
TimestampSerializerTest-compression 1 0 0 0 0.096
ClientUtilsTest 1 0 0 0 0.537
SimpleDateSerializerTest 9 0 0 0 0.450
TimeSerializerTest 16 0 0 0 0.104
TimestampSerializerTest 1 0 0 0 0.103
-------------------------------------------------------------------------------
org.apache.cassandra.service
Name Tests Errors Failures Skipped Time(s)
ActiveRepairServiceTest-compression 10 0 0 0 3.692
ClientWarningsTest-compression 4 0 0 0 23.480
DataResolverTest-compression 18 0 0 0 2.390
EmbeddedCassandraServiceTest-compression 1 0 0 0 3.748
LeaveAndBootstrapTest-compression 8 0 0 0 4.240
LegacyAuthFailTest-compression 1 0 0 0 3.540
MigrationCoordinatorTest-compression 8 0 0 0 0.721
MigrationManagerTest-compression 3 0 0 0 3.154
MoveTest-compression 7 0 0 0 7.091
NativeTransportServiceTest-compression 11 0 0 0 8.385
PaxosStateTest-compression 1 0 0 0 7.314
QueryPagerTest-compression 8 0 0 0 2.632
RMIServerSocketFactoryImplTest- 1 0 0 0 0.071
compression
RemoveTest-compression 3 0 0 0 5.071
SerializationsTest-compression 4 0 0 0 0.932
StartupChecksTest-compression 3 0 0 0 2.065
StorageProxyTest-compression 4 0 0 0 0.955
StorageServiceServerTest-compression 14 0 0 1 5.462
ActiveRepairServiceTest 10 0 0 0 4.403
ClientWarningsTest 4 0 0 0 30.920
DataResolverTest 18 0 0 0 2.672
EmbeddedCassandraServiceTest 1 0 0 0 3.788
LeaveAndBootstrapTest 8 0 0 0 4.140
LegacyAuthFailTest 1 0 0 0 3.485
MigrationCoordinatorTest 8 0 0 0 0.739
MigrationManagerTest 3 0 0 0 3.147
MoveTest 7 0 0 0 7.860
NativeTransportServiceTest 11 0 0 0 8.787
PaxosStateTest 1 0 0 0 5.375
QueryPagerTest 8 0 0 0 3.223
RMIServerSocketFactoryImplTest 1 0 0 0 0.099
RemoveTest 3 0 0 0 5.515
SerializationsTest 4 0 0 0 0.987
StartupChecksTest 3 0 0 0 2.396
StorageProxyTest 4 0 0 0 1.123
StorageServiceServerTest 14 0 0 1 6.142
-------------------------------------------------------------------------------
org.apache.cassandra.service.pager
Name Tests Errors Failures Skipped Time(s)
PagingStateTest-compression 7 0 0 0 0.904
PagingStateTest 7 0 0 0 0.926
-------------------------------------------------------------------------------
org.apache.cassandra.streaming
Name Tests Errors Failures Skipped Time(s)
SessionInfoTest-compression 1 0 0 0 0.703
StreamTransferTaskTest-compression 2 0 0 0 2.883
StreamingTransferTest-compression 5 0 0 0 5.774
SessionInfoTest 1 0 0 0 0.808
StreamTransferTaskTest 2 0 0 0 2.782
StreamingTransferTest 5 0 0 0 4.404
-------------------------------------------------------------------------------
org.apache.cassandra.streaming.compression
Name Tests Errors Failures Skipped Time(s)
CompressedInputStreamTest-compression 3 0 0 0 0.872
CompressedInputStreamTest 3 0 0 0 0.836
-------------------------------------------------------------------------------
org.apache.cassandra.transport
Name Tests Errors Failures Skipped Time(s)
DataTypeTest-compression 3 0 0 0 0.492
DynamicLimitTest-compression 2 0 0 0 2.280
InflightRequestPayloadTrackerTest- 5 0 0 0 10.365
compression
MessagePayloadTest-compression 2 0 0 0 10.108
ProtocolErrorTest-compression 5 0 0 0 1.056
ProtocolNegotiationTest-compression 3 0 0 0 14.359
SerDeserTest-compression 4 0 0 0 0.958
DataTypeTest 3 0 0 0 0.440
DynamicLimitTest 2 0 0 0 2.265
InflightRequestPayloadTrackerTest 5 0 0 0 10.741
MessagePayloadTest 2 0 0 0 9.643
ProtocolErrorTest 5 0 0 0 1.016
ProtocolNegotiationTest 3 0 0 0 15.491
SerDeserTest 4 0 0 0 0.843
-------------------------------------------------------------------------------
org.apache.cassandra.triggers
Name Tests Errors Failures Skipped Time(s)
TriggerExecutorTest-compression 9 0 0 0 1.005
TriggersSchemaTest-compression 4 0 0 0 3.375
TriggersTest-compression 11 0 0 0 4.925
TriggerExecutorTest 9 0 0 0 0.948
TriggersSchemaTest 4 0 0 0 2.857
TriggersTest 11 0 0 0 4.093
-------------------------------------------------------------------------------
org.apache.cassandra.utils
Name Tests Errors Failures Skipped Time(s)
LongBitSetTest 3 0 0 0 37.955
LongBloomFilterTest 5 0 0 0 302.562
LongBTreeTest 14 0 0 0 672.671
AbstractIteratorTest-compression 9 0 0 0 0.107
BTreeTest-compression 7 0 0 0 0.185
BitSetTest-compression 4 0 0 0 0.774
BloomFilterTest-compression 12 0 0 2 0.927
ByteBufferUtilTest-compression 10 0 0 0 0.398
BytesReadTrackerTest-compression 4 0 0 0 0.118
CassandraVersionTest-compression 5 0 0 0 0.088
CoalescingStrategiesTest-compression 6 0 0 0 1.434
EstimatedHistogramTest-compression 7 0 0 0 0.404
FBUtilitiesTest-compression 5 0 0 0 1.140
FastByteOperationsTest-compression 2 0 0 0 4.830
HexTest-compression 2 0 0 0 0.404
HistogramBuilderTest-compression 5 0 0 0 0.401
IntegerIntervalsTest-compression 6 0 0 0 57.257
IntervalTreeTest-compression 3 0 0 0 0.329
JVMStabilityInspectorTest-compression 3 0 0 0 0.791
JavaUtilsTest-compression 1 0 0 0 0.284
MergeIteratorComparisonTest-compression 16 0 0 0 14.245
MergeIteratorTest-compression 1 0 0 0 0.088
MerkleTreeTest-compression 14 0 0 0 0.739
MerkleTreesTest-compression 13 0 0 0 0.868
NanoTimeToCurrentTimeMillisTest- 1 0 0 0 21.454
compression
NativeLibraryTest-compression 2 0 0 0 0.463
NoSpamLoggerTest-compression 4 0 0 0 0.092
OverlapIteratorTest-compression 1 0 0 0 11.912
SerializationsTest-compression 5 0 0 0 2.575
StreamingHistogramTest-compression 4 0 0 0 0.083
TopKSamplerTest-compression 3 0 0 0 2.681
AbstractIteratorTest 9 0 0 0 0.083
BTreeTest 7 0 0 0 0.124
BitSetTest 4 0 0 0 0.551
BloomFilterTest 12 0 0 2 0.606
ByteBufferUtilTest 10 0 0 0 0.275
BytesReadTrackerTest 4 0 0 0 0.069
CassandraVersionTest 5 0 0 0 0.073
CoalescingStrategiesTest 6 0 0 0 1.137
EstimatedHistogramTest 7 0 0 0 0.276
FBUtilitiesTest 5 0 0 0 0.744
FastByteOperationsTest 2 0 0 0 3.795
HexTest 2 0 0 0 0.281
HistogramBuilderTest 5 0 0 0 0.323
IntegerIntervalsTest 6 0 0 0 54.370
IntervalTreeTest 3 0 0 0 0.504
JVMStabilityInspectorTest 3 0 0 0 1.026
JavaUtilsTest 1 0 0 0 0.299
MergeIteratorComparisonTest 16 0 0 0 11.610
MergeIteratorTest 1 0 0 0 0.124
MerkleTreeTest 14 0 0 0 1.054
MerkleTreesTest 13 0 0 0 1.223
NanoTimeToCurrentTimeMillisTest 1 0 0 0 20.211
NativeLibraryTest 2 0 0 0 0.506
NoSpamLoggerTest 4 0 0 0 0.094
OverlapIteratorTest 1 0 0 0 13.841
SerializationsTest 5 0 0 0 2.808
StreamingHistogramTest 4 0 0 0 0.090
TopKSamplerTest 3 0 0 0 3.157
-------------------------------------------------------------------------------
org.apache.cassandra.utils.concurrent
Name Tests Errors Failures Skipped Time(s)
AbstractTransactionalTest-compression 1 0 0 1 0.058
AccumulatorTest-compression 4 0 0 0 0.075
RefCountedTest-compression 12 0 0 0 6.537
AbstractTransactionalTest 1 0 0 1 0.066
AccumulatorTest 4 0 0 0 0.081
RefCountedTest 12 0 0 0 6.636
-------------------------------------------------------------------------------
org.apache.cassandra.utils.memory
Name Tests Errors Failures Skipped Time(s)
LongBufferPoolTest 1 0 0 0 120.906
BufferPoolTest-compression 33 0 0 0 7.664
NativeAllocatorTest-compression 1 0 0 0 0.475
BufferPoolTest 33 0 0 0 7.700
NativeAllocatorTest 1 0 0 0 0.503
-------------------------------------------------------------------------------
org.apache.cassandra.utils.progress.jmx
Name Tests Errors Failures Skipped Time(s)
LegacyJMXProgressSupportTest-compression 5 0 0 0 0.365
LegacyJMXProgressSupportTest 5 0 0 0 0.314
-------------------------------------------------------------------------------
org.apache.cassandra.utils.vint
Name Tests Errors Failures Skipped Time(s)
VIntCodingTest-compression 3 0 0 0 0.085
VIntCodingTest 3 0 0 0 0.082
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
Failures
-------------------------------------------------------------------------------
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 0x7efe0a34b070>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7efdf964b730>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7efe0b1009d0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7efdf95c2e50>
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_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 0x7f28436f9d00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f28431cae20>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f2843927ca0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2842c28790>
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 0x7f28436f9d00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f28431e8d30>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f2843927ca0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2841a09550>
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_archiving // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_archiving'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fa2edcd8a30>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fa2edcd8af0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fa2ee5c9d30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fa2edcd8a90>
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_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 0x7f720d9e6d60>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f720cf4f5e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f720e122dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f720cfcfa90>
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 // 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 0x7f720d9e6d60>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f720cca5d90>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f720e122dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f720cc6b340>
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 0x7f720d9e6d60>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f720dfbc880>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f720e122dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f720dfbca90>
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_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 0x7f82337cc4c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8233765a30>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f8233e98ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8233c42d00>
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_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 0x7f82337cc4c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8232ac22b0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f8233e98ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8232c06700>
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 0x7f82337cc4c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8232ba2370>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f8233e98ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8232ba22b0>
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 0x7f82337cc4c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8232917460>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f8233e98ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8232b92130>
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_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 0x7fb70c3a3e80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb70c3a3df0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb70cc4bd30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb70c3a3d00>
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_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 0x7fb70c3a3e80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb70a0cdfa0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb70cc4bd30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb70a226e80>
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 /
/ 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 0x7fb70c3a3e80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb70ca80e80>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb70cc4bd30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb70ca80040>
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 0x7fb70c3a3e80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb70a27b460>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb70cc4bd30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb70a27bf40>
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 0x7fb70c3a3e80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb70c73b2e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb70cc4bd30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb70c5865b0>
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 0x7fb70c3a3e80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb70c487e20>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb70cc4bd30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb70a1e6a00>
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_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 0x7f4179c99490>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4179c99430>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f417a586e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4179c99250>
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_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 0x7f4179c99490>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4179c8d070>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f417a586e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f417a06dcd0>
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 0x7f4179c99490>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4179eeb340>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f417a586e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4179eeb9a0>
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 0x7f4179c99490>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4178b1e310>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f417a586e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4178b1a310>
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 0x7f4179c99490>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f417a359610>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f417a586e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4178b55340>
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_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 0x7f0bfe89d3d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f0bfec63af0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f0bff18bd30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f0bfeaeb190>
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 // 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 0x7f0bfe89d3d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f0be6e43ac0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f0bff18bd30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f0be7ef28e0>
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 0x7f0bfe89d3d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f0bfea71880>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f0bff18bd30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f0bfea71400>
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 0x7f0bfe89d3d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f0be7f53a60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f0bff18bd30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f0bfe9a97c0>
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 0x7f0bfe89d3d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f0be6e54c10>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f0bff18bd30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f0bfec81400>
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_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 0x7fdc319f8b50>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fdc31155a30>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fdc322e9e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fdc320ad850>
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 0x7fdc319f8b50>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fdc31c1af70>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fdc322e9e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fdc31c1a820>
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 0x7f51c82d16a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f51c831bee0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f51c8bc9dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f51c869e520>
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 0x7f51c82d16a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f51c84db850>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f51c8bc9dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f51c82d48e0>
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 0x7f51c82d16a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f51c898dd90>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f51c8bc9dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f51c898d550>
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 0x7f51c82d16a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f51c4271a60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f51c8bc9dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f51c899a9d0>
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 0x7fa12f5cedc0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fa12c3681f0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fa12fe59d30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fa12cbb3040>
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 0x7fa12f5cedc0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fa12e8b34c0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fa12fe59d30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fa12e8b3100>
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_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 0x7f4e0ca72190>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4e0ca6ff10>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4e0d2bedc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4e0ca6fb80>
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_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 0x7f4e0ca72190>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4e0d0f12b0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4e0d2bedc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4e0d0fb400>
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 0x7fda835bf6a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fda54f12580>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fda83e0ddc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fda549af2b0>
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 0x7fda835bf6a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fda80ca4340>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fda83e0ddc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fda83602400>
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 0x7fda835bf6a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fda4bb27a60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fda83e0ddc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fda80cab820>
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_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 0x7f2f31a16af0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f2f31a130d0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f2f3230adc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2f31a10520>
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_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 0x7fb4e206d9a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb4e26faf70>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb4e28bde50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb4e26fa130>
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 0x7fb4e206d9a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb4e222b1f0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb4e28bde50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb4e0737790>
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_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 0x7fb979570fd0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb978152700>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb979aafe50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb9781e4bb0>
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_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 0x7fb979570fd0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb9780fe220>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb979aafe50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb9780fecd0>
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 0x7fb979570fd0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb9795a2790>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb979aafe50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb9780f1760>
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 0x7fb979570fd0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb972f8a9d0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb979aafe50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb972f8a640>
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_truncate_failure // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_truncate_failure'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fd86a822ac0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd869c1f550>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd86acc5040>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd869bec640>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_truncate_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_json_tools // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_json_tools'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fd86a822ac0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd869bd0c10>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd86acc5040>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd869b88d30>
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 0x7fd86a822ac0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd86a7c3850>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd86acc5040>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd8684ab7f0>
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_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 0x7fb0101e7e50>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb0101a9c40>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb010804ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb00d7bec40>
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_local_query // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_local_query'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fb0101e7e50>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb00d663bb0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb010804ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb00d663a00>
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_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 0x7f2afdf1c8b0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f2afd647ee0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f2afe662040>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2afd5ef6a0>
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_remote_query // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_remote_query'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f2afdf1c8b0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f2afd558820>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f2afe662040>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2afd4f9ee0>
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 0x7f2afdf1c8b0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f2afe0487c0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f2afe662040>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2afd543040>
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_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 0x7f5181c45f40>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f5181d3f130>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f5182424f70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5181e27c40>
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_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 0x7f5181c45f40>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f5181e4e490>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f5182424f70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5181e4e7f0>
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 0x7f5181c45f40>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f5152adcaf0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f5182424f70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5152adcf70>
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_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 0x7fce36935280>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fce35f58ca0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fce3710dee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fce36fed5e0>
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_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 0x7fce36935280>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fce1db99a00>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fce3710dee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fce1db996a0>
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 0x7fce36935280>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fce36c12760>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fce3710dee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fce36c12430>
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_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 0x7f2988acd310>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f2988c9fac0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f29892a6e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2988dbf250>
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 0x7f2988acd310>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f2989176580>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f29892a6e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2988ce50d0>
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_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 0x7f2988acd310>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f29807ac2e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f29892a6e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f29880f8520>
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 0x7f2988acd310>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f2988c10220>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f29892a6e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2988e2ae80>
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_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 0x7f685c8e2a00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f685c8a31f0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f685d0bdee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f685cbe34c0>
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 0x7f685c8e2a00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f685cf910a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f685d0bdee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f685cf8b430>
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_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 0x7f685c8e2a00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f685ca1c3a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f685d0bdee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6857ee70d0>
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 0x7f685c8e2a00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f685cbc0ee0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f685d0bdee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f685cbc0790>
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 0x7f685c8e2a00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f685c887d60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f685d0bdee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f685ca1a4c0>
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 0x7f685c8e2a00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f683641b490>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f685d0bdee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f68364bfa30>
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_unsafe_replace // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_unsafe_replace'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fccf0d69250>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fccf04a7d00>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fccf153af70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fccf10a3b20>
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 0x7fccf0d69250>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fccf0479fd0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fccf153af70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fccf0479400>
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 0x7fccf0d69250>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fccf0d4ff10>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fccf153af70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fccf0d4f280>
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 0x7fccf0d69250>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fccf0235c10>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fccf153af70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fccf02356d0>
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 0x7fccf0d69250>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fcce9f59e50>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fccf153af70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fcce9efe8b0>
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_archiving_fql // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_archiving_fql'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f8bba23bdf0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8bba185070>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f8bbaa7de50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8bba1858b0>
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 0x7f8bba23bdf0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8bba205c70>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f8bbaa7de50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8bb994cc10>
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_insert_data_during_replace_same_address // Error
test teardown failure
Unexpected error found in node logs (see stdout for full details). Errors: [ERROR
[main] 2020-12-02 16:09:12,536 CassandraDaemon.java:817 - Exception encountered
during startup
java.lang.IllegalStateException: Unable to contact any seeds!
at org.apache.cassandra.service.StorageService.bootstrap(StorageService.java:1331) ~
[main/:na]
at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:
1013) ~[main/:na]
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:746) ~
[main/:na]
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:654) ~
[main/:na]
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:373)
[main/:na]
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:611)
[main/:na]
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:804)
[main/:na], ERROR [main] 2020-12-02 16:09:12,536 CassandraDaemon.java:817 -
Exception encountered during startup
java.lang.IllegalStateException: Unable to contact any seeds!
at org.apache.cassandra.service.StorageService.bootstrap(StorageService.java:1331) ~
[main/:na]
at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:
1013) ~[main/:na]
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:746) ~
[main/:na]
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:654) ~
[main/:na]
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:373)
[main/:na]
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:611)
[main/:na]
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:804)
[main/:na]]
------------------------------------------------------------------------------------
Cassandra dtests // test_bootstrap // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_bootstrap'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6a222db8b0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6a226a6640>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6a22ae8dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f69f2d6fc40>
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 0x7f6a222db8b0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f69f127ae20>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6a22ae8dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f69f13afd30>
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 0x7f6a222db8b0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6a224366d0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6a22ae8dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f69f12d9820>
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 0x7f7763ef92b0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f77634de8e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f776475cf70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7760eba5e0>
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 0x7f7763ef92b0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f77634e6a90>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f776475cf70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f776330cb50>
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 0x7f7763ef92b0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7763ef0820>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f776475cf70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f776425ac40>
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 0x7f7763ef92b0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f77633dbd60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f776475cf70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f77633db430>
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_manual_join // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_manual_join'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fe9bab72b20>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe9ba165220>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe9bb37cdc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe9ba2dac10>
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 0x7fe9bab72b20>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe9ba114ca0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe9bb37cdc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe9ba114940>
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 0x7fe9bab72b20>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe9babb1400>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe9bb37cdc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe9bad3e100>
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_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 0x7efd98565b80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7efd98563e20>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7efd98dd2d30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7efd98582790>
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_client_request_metrics // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_client_request_metrics'>>
dtest_config = <dtest_config.DTestConfig object at 0x7efd98565b80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7efd97c0ba30>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7efd98dd2d30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7efd97c0bd90>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_client_request_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_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 0x7efd98565b80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7efd98d5c640>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7efd98dd2d30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7efd98d5c7c0>
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 0x7efd98565b80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7efd98b71790>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7efd98dd2d30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7efd987d1f10>
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 0x7efd98565b80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7efd987cb730>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7efd98dd2d30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7efd97bff760>
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 0x7efd98565b80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7efd98deec10>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7efd98dd2d30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7efd97adda90>
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_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 0x7f451bb37f40>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f451bb62b80>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f451c191e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f451bb59f10>
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_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 0x7f451bb37f40>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f451ba21580>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f451c191e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f451bfc22e0>
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 0x7f451bb37f40>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f451bb8d460>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f451c191e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f451bb8da00>
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 0x7f451bb37f40>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f451bfc5970>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f451c191e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f451bfc5b80>
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 0x7f451bb37f40>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f451bbc8dc0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f451c191e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f451bbc8c40>
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_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 0x7f7c862acf40>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7c869fa520>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7c86b28e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7c8647d0a0>
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_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 0x7f7c862acf40>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7c85502a90>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7c86b28e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7c863c99d0>
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 0x7f7c862acf40>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7c840aa580>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7c86b28e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7c841516a0>
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 0x7f7c862acf40>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7c8410bf70>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7c86b28e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7c747ba730>
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 0x7f7c862acf40>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7c84061340>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7c86b28e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7c84061820>
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_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 0x7f54c715fa30>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f54c7346f70>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f54c795eee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f54c734a3d0>
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_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 0x7f54c715fa30>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f54c732d070>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f54c795eee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f54c7305e20>
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 0x7f54c715fa30>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f54c72e1550>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f54c795eee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f54c7346e20>
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 0x7f54c715fa30>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f54c72fcf40>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f54c795eee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f54c6636580>
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_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 0x7f1a5101f790>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f1a50eaf610>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f1a51676ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f1a5100c310>
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_srp // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_srp'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f1a5101f790>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f1a5037e490>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f1a51676ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f1a50eaf190>
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_revoked_login // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_revoked_login'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f55d636e3d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f55d636ec70>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f55d6353ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f55d61e78b0>
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_stress // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_stress'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f55d636e3d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f55d6205c70>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f55d6353ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f55d5237400>
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 0x7f55d636e3d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f55d60dd250>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f55d6353ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f55d60dd8e0>
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 0x7f55d636e3d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f55d6119910>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f55d6353ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f55d617a6d0>
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 0x7f55d636e3d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f55d61e7970>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f55d6353ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f55d61e7070>
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_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 0x7fa79662aca0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fa7943f3520>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fa796d2af70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fa7943f04c0>
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 0x7fa79662aca0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fa7944a1e20>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fa796d2af70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fa7944a1280>
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 0x7fa79662aca0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fa79449e070>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fa796d2af70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fa79449eaf0>
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 0x7fa79662aca0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fa796b553a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fa796d2af70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fa796b55310>
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_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 0x7efddd9597f0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7efddd959790>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7efdde20bee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7efddd959430>
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_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 0x7efddd9597f0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7efdde049070>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7efdde20bee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7efdddf70520>
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 0x7efddd9597f0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7efddd144af0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7efdde20bee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7efddc045340>
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_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 0x7ff940a14f70>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff9400dcee0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff9411f8dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff9400e0850>
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 0x7ff940a14f70>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff940e3a3d0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff9411f8dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff940e3ac70>
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 0x7ff940a14f70>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff940c1e7c0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff9411f8dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff940c1e430>
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 0x7ff940a14f70>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff940a107c0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff9411f8dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff940a10a90>
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 0x7f792335ed90>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7922b1a9d0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7923b3fdc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7923ad3ac0>
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 0x7f792335ed90>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f79229de0a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7923b3fdc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f79226e0d90>
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_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 0x7f47a4a2f880>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f47a41118e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f47a5225e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f47a4111340>
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_auth_metrics // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_auth_metrics'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f7a800ac1c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7a800ac880>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7a8083cdc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7a800a87f0>
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_blacklisted_directory // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_blacklisted_directory'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f7a800ac1c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7a80244940>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7a8083cdc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7a80244160>
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_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 0x7f7a800ac1c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7a80629130>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7a8083cdc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7a806291c0>
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 0x7f7a800ac1c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7a7dd96f10>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7a8083cdc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7a800e5a00>
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 0x7f7a800ac1c0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7a7c484dc0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7a8083cdc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7a80041a30>
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 0x7f3099b2dd90>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f309a0e8310>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f309a327dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f309a0e8af0>
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 0x7f3099b2dd90>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f3099d419d0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f309a327dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f3098211ee0>
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 0x7f3099b2dd90>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f3099d57610>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f309a327dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f3099d571f0>
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_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 0x7f19bfd60be0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f19be31a670>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f19c04f0ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f19be3a73d0>
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 0x7f19bfd60be0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f19bfe5af70>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f19c04f0ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f19bff75f40>
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_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 0x7f161f24fd00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f161d386a30>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f161f53af70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f161d3c4340>
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_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 0x7f161f24fd00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f161f37c130>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f161f53af70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f161e4b5250>
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 0x7f161f24fd00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f161f32da60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f161f53af70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f161f333970>
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 0x7f161f24fd00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f161f3759d0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f161f53af70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f161f375400>
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[SizeTieredCompactionStrategy] // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_compaction_delete
[SizeTieredCompactionStrategy]'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fe66fd1ba90>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe66fd1b160>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe670533160>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe66c1db430>
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 0x7fe66fd1ba90>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe66f335b20>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe670533160>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe66f335e20>
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_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 0x7fe66fd1ba90>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe6703602b0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe670533160>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe670360bb0>
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 0x7fe66fd1ba90>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe66fef1160>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe670533160>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe66e311c40>
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 0x7fe66fd1ba90>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fe66fe20f40>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fe670533160>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fe670364ee0>
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[DateTieredCompactionStrategy] // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_compaction_delete
[DateTieredCompactionStrategy]'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fd5882dc3a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd58686a8b0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd588ae4ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd58686da30>
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 0x7fd5882dc3a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd587a1ff10>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd588ae4ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd586930a60>
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_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 0x7fd5882dc3a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd5888b83d0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd588ae4ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd5888ba5e0>
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 0x7fd5882dc3a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd587808700>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd588ae4ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd5882d4a60>
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_replay // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_replay'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fddb201b430>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fddb171cd60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fddb2833dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fddb05ab430>
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 0x7fddb201b430>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fddb1f792b0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fddb2833dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fddb171bc70>
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 0x7fddb201b430>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fddb24f4b80>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fddb2833dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fddb16a0400>
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_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 0x7f48412b60d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f48412b6730>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4841b7ce50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f48412b6be0>
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_jmx_connection // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_jmx_connection'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f48412b60d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f48414abc70>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4841b7ce50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4841448370>
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 0x7f48412b60d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f48380a0e80>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4841b7ce50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4839703af0>
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 0x7f48412b60d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f48396b5d90>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4841b7ce50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4839713d90>
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 0x7f48412b60d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4839612850>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4841b7ce50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4839679c40>
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_compare // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_compare'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fc60938e670>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fc608acff10>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fc609ba5ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fc6081ad850>
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 0x7fc60938e670>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fc609326280>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fc609ba5ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fc6082af970>
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 0x7fc60938e670>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fc6097ff1f0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fc609ba5ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fc60897ea90>
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 0x7f072f0c9130>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f072d76db50>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f072f8dd040>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f072d76d730>
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 0x7f072f0c9130>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f072f2491f0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f072f8dd040>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f072f0251c0>
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 0x7f072f0c9130>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f072f6d0520>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f072f8dd040>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f072f6d0730>
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_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 0x7f801a5540d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f8019612280>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f801ad7dee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f8019612fd0>
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 0x7f801a5540d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f801a9cb2e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f801ad7dee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f801ab2da30>
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 0x7fdac6aa0100>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fdac4fd7370>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fdac72b9ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fdac4fdba30>
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 0x7fdac6aa0100>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fdac6042580>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fdac72b9ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fdac4faaa90>
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 0x7f658501b820>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f657de30bb0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f65858d7dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f657de307c0>
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 0x7f658501b820>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f657f750400>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f65858d7dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f65850c8670>
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 0x7f9d5e88c370>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f9d5dc52e20>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9d5f0a3e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f9d5dc45880>
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 0x7f9d5e88c370>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f9d5dc701f0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9d5f0a3e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f9d5dc70d00>
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 0x7f4c2f724d00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4c2c332100>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4c2fe02ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4c2c332ca0>
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 0x7f4c2f724d00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4c2f77bd60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4c2fe02ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4c2c11b880>
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 0x7f4c2f724d00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4c2dc47d60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4c2fe02ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4c2dc47880>
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 0x7f7555c2cc40>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7556273940>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f7556497d30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7556273af0>
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 0x7ff15d8fab80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff15c6092e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff15dfa4dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff15cf3b4f0>
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 0x7ff15d8fab80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff15d7cf850>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff15dfa4dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff15c542d90>
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 0x7ff15d8fab80>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7ff15cdb4370>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7ff15dfa4dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7ff15d819c40>
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 0x7fd76c64d520>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd76ad24730>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd76ce9eee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd76ad88970>
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 0x7fd76c64d520>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd76a8cffa0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd76ce9eee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd76a8ca640>
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_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 0x7f638f637700>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f638cc39a90>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f638fd6bee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f638cbaaa90>
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 0x7f638f637700>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f638f6e1310>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f638fd6bee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f638c2d6460>
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 0x7f638f637700>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f638c3904f0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f638fd6bee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f638f77f160>
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_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 0x7f2d1a1d69d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f2d1a7fc640>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f2d1aa2ae50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2d19538970>
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 0x7f2d1a1d69d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f2d18069be0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f2d1aa2ae50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2d18196bb0>
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 0x7f2d1a1d69d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f2d18193eb0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f2d1aa2ae50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f2d18136370>
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 0x7faa0b13bee0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7faa0a204af0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7faa0b991f70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7faa08afd0d0>
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_basic_auth // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_basic_auth'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fb0d17b9820>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb0d0249220>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb0d2005dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb0d01a3130>
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 0x7fb0d17b9820>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb0d055e340>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb0d2005dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb0d034bc70>
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 0x7f03c9735400>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f03c85702e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f03c9f8aca0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f03c9db9250>
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 0x7fbfda466d30>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fbfd819a2b0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fbfdad10dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fbfd819a1c0>
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_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 0x7f08b53c1ac0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f08b53c1fd0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f08b58c4e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f08b53ab340>
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 0x7f08b53c1ac0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f08b501a460>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f08b58c4e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f08b501ab20>
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_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 0x7f978e10ba00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f978c4fdf70>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f978e64de50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f978d321f10>
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 0x7f978e10ba00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f978e203880>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f978e64de50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f978e2036d0>
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 0x7f978e10ba00>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f978e638670>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f978e64de50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f978c4e67c0>
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_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 0x7fd894e35550>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd8943c8e20>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd895512d30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd894219a60>
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 0x7fd894e35550>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd894398c70>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd895512d30>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd8943983d0>
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_archiving // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_archiving'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f913273b9a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f913273b940>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9132fe3e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f913273b5e0>
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_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 0x7f913273b9a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f9132b11dc0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9132fe3e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f9132b17190>
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 0x7f913273b9a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f91310932e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9132fe3e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f91314b5490>
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_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 0x7f913273b9a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f9131310100>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9132fe3e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f9131310310>
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_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 0x7f913273b9a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f91311382b0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9132fe3e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f9131094d30>
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_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 0x7f913273b9a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f9131ef9910>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9132fe3e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f91304c6a90>
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_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 0x7f0c2dbcb130>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f0c2cf1fb20>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f0c2e0e5ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f0c2ce98820>
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 0x7f0c2dbcb130>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f0c2cf6fd60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f0c2e0e5ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f0c2df9f640>
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_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 0x7f924ed991f0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f924f1391c0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f924f30ff70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f924ee09430>
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_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 0x7f924ed991f0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f924e041d90>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f924f30ff70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f92374427c0>
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_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 0x7fb6aec84d30>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb6aec84760>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb6af1bde50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb6ae90e760>
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_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 0x7fb6aec84d30>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fb6ac694640>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fb6af1bde50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fb6ac784940>
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_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 0x7fbd0e5d8190>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fbd0e55f250>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fbd0edd8f70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fbd0e58c730>
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 0x7f9098308610>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f9098897d60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f9098b4edc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f90982eb580>
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 0x7f6dbbf63640>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6dbb726b20>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6dbc730dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6dbb6c7610>
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 0x7f6dbbf63640>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6dbc6df9a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6dbc730dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6dbc6df880>
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 0x7f6dbbf63640>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6dbc4cd9a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6dbc730dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6dbb6cfd30>
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 0x7f6dbbf63640>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6dbbf4e3d0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6dbc730dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6dbbf4e850>
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_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 0x7fda7e9c33d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fda7c4b3400>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fda7ee86e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fda7e8c30a0>
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 0x7fda7e9c33d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fda7de6caf0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fda7ee86e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fda7de6cdc0>
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_insert_data_during_replace_same_address // Error
test teardown failure
Unexpected error found in node logs (see stdout for full details). Errors: [ERROR
[main] 2020-12-02 15:55:19,614 CassandraDaemon.java:817 - Exception encountered
during startup
java.lang.IllegalStateException: Unable to contact any seeds!
at org.apache.cassandra.service.StorageService.bootstrap(StorageService.java:1331) ~
[main/:na]
at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:
1013) ~[main/:na]
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:746) ~
[main/:na]
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:654) ~
[main/:na]
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:373)
[main/:na]
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:611)
[main/:na]
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:804)
[main/:na], ERROR [main] 2020-12-02 15:55:19,614 CassandraDaemon.java:817 -
Exception encountered during startup
java.lang.IllegalStateException: Unable to contact any seeds!
at org.apache.cassandra.service.StorageService.bootstrap(StorageService.java:1331) ~
[main/:na]
at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:
1013) ~[main/:na]
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:746) ~
[main/:na]
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:654) ~
[main/:na]
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:373)
[main/:na]
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:611)
[main/:na]
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:804)
[main/:na]]
------------------------------------------------------------------------------------
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 0x7fda7e9c33d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fda7ec208b0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fda7ee86e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fda7dcf8070>
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 0x7fda7e9c33d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fda7d94af10>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fda7ee86e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fda7e844400>
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_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 0x7fc5e4078430>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fc5e4078490>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fc5e45b6dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fc5e40aa970>
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_truncate_failure // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_truncate_failure'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fc5e4078430>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fc5e037b4c0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fc5e45b6dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fc5e0375d90>
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_truncate_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_resume // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_resume'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fc5e4078430>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fc5e2817eb0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fc5e45b6dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fc5e27dc250>
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 0x7f3cdaee4520>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f3cd8374220>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f3cdb563e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f3cd83d1790>
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 0x7f3cdaee4520>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f3cd835c820>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f3cdb563e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f3cd835cd00>
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_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 0x7f563fe421f0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f563fe42250>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f56406c1f70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f563fe36460>
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_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 0x7f563fe421f0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f563c196970>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f56406c1f70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f563c068220>
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_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 0x7f563fe421f0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f561c755100>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f56406c1f70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f561c755730>
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_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 0x7f544171cf40>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f54415b70a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f5441dc5f70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5440499130>
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_remote_query // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_remote_query'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f544171cf40>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f5440349670>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f5441dc5f70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5440349310>
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 0x7f544171cf40>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f54405e9730>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f5441dc5f70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f54402580a0>
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 0x7f544171cf40>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f544016bb80>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f5441dc5f70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f544016b1c0>
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_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 0x7f01b829b130>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f01b58ba3a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f01b894ce50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f01b846b280>
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_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 0x7f01b829b130>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f01b5801af0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f01b894ce50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f01b582fcd0>
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 0x7f01b829b130>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f01b88baa00>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f01b894ce50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f01b88bad30>
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_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 0x7f939eea6100>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f939e520520>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f939f602f70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f939e4cae20>
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_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 0x7f939eea6100>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f939eea6bb0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f939f602f70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f939f120a90>
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_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 0x7f6f5610d370>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6f56062640>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6f567beee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6f5616d7f0>
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_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 0x7f6f5610d370>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6f56160e80>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6f567beee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6f565fc1c0>
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 0x7f6f5610d370>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6f54657bb0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6f567beee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6f5469d520>
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_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 0x7fa096b6f250>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fa096a8b1c0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fa0971f3e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fa096b1d190>
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_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 0x7fa096b6f250>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fa096fcb640>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fa0971f3e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fa096d12970>
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_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 0x7fee795da970>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fee79bd9460>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fee79e0ee50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fee79bd9070>
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_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 0x7f79c018c6d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f799283cc10>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f79c09baf70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f79c05143a0>
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 0x7f79c018c6d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f79928ede80>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f79c09baf70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7992892070>
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 0x7f79c018c6d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f7992583d60>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f79c09baf70>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f7992630d30>
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_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 0x7fa49abaf880>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fa49b3463a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fa49b3b4e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fa49ad32700>
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_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 0x7fa49abaf880>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fa49a305c40>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fa49b3b4e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fa49ac14d60>
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_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 0x7f3b47bb76d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f3b47bb5970>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f3b483c6ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f3b47c548b0>
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_consistent_repair // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_consistent_repair'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f3b47bb76d0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f3b47331970>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f3b483c6ee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f3b471f2340>
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_client_request_metrics // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_client_request_metrics'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6891657d90>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6891e03700>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6891e58e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6891e03850>
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_client_request_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_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 0x7f6891657d90>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f68917f0940>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6891e58e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f68917f0130>
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 0x7f6891657d90>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6891a45220>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6891e58e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6891a48f10>
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 0x7f6891657d90>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6891808970>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6891e58e50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f68882da430>
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_archiving_fql // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_archiving_fql'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f6e0f593730>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6e0f5936d0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6e0fe8be50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6e0f593370>
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_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 0x7f6e0f593730>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6e0f7cc340>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6e0fe8be50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6e0d424a60>
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 0x7f6e0f593730>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6e0cac2970>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6e0fe8be50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6e0f8b6d60>
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 0x7f6e0f593730>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f6e0d451f70>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f6e0fe8be50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f6e0d451eb0>
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_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 0x7f44e8bd2e20>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f44e91a6520>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f44e93dde50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f44e91add90>
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 0x7f44e8bd2e20>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f44e91627c0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f44e93dde50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f44e9036fd0>
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 0x7f44e8bd2e20>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f44e814ed00>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f44e93dde50>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f44e81acf40>
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 0x7f4f78f3a340>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4f79409730>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4f7976dee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4f78525e20>
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 0x7f4f78f3a340>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4f707418e0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4f7976dee0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4f78556760>
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_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 0x7f5b6398bc70>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f5b6398e280>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f5b641b9dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5b63b49400>
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_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 0x7f5b6398bc70>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f5b63b5ffd0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f5b641b9dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5b63b4eac0>
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 0x7f5b6398bc70>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f5b63151220>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f5b641b9dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f5b6302fd00>
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_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 0x7f92b762c9a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f92b7ceedf0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f92b7e51040>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f92b7cf95b0>
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_stress // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function
'test_disk_balance_stress'>>
dtest_config = <dtest_config.DTestConfig object at 0x7f92b762c9a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f92b7804af0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f92b7e51040>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f92b77e1730>
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 0x7f92b762c9a0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f92b7cd3a30>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f92b7e51040>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f92b7cd3d90>
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_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 0x7fd9b4121ee0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd9b10c9a30>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd9b48c6dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd9b4341400>
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_sjk // Error
test teardown failure
request = <SubRequest 'fixture_dtest_setup' for <Function 'test_sjk'>>
dtest_config = <dtest_config.DTestConfig object at 0x7fd9b4121ee0>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7fd9b38a59a0>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7fd9b48c6dc0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7fd9b38aeb80>
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_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 0x7f4e68fde640>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4e68f02c40>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4e695a9ca0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config.delete_logs:
copy_logs(request, dtest_setup.cluster)
except Exception as e:
logger.error("Error saving log:", str(e))
finally:
> dtest_setup.cleanup_cluster(request)
conftest.py:350:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <dtest_setup.DTestSetup object at 0x7f4e685c01c0>
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_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 0x7f4e68fde640>
fixture_dtest_setup_overrides = <dtest_setup_overrides.DTestSetupOverrides object at
0x7f4e684fd250>
fixture_logging_setup = None, fixture_dtest_cluster_name = 'test'
fixture_dtest_create_cluster_func = <function DTestSetup.create_ccm_cluster at
0x7f4e695a9ca0>
@pytest.fixture(scope='function', autouse=False)
def fixture_dtest_setup(request,
dtest_config,
fixture_dtest_setup_overrides,
fixture_logging_setup,
fixture_dtest_cluster_name,
fixture_dtest_create_cluster_func):
if running_in_docker():
cleanup_docker_environment_before_test_execution()
# do all of our setup operations to get the enviornment ready for the actual test
# to run (e.g. bring up a cluster with the necessary config, populate variables,
etc)
initial_environment = copy.deepcopy(os.environ)
dtest_setup = DTestSetup(dtest_config=dtest_config,
setup_overrides=fixture_dtest_setup_overrides,
cluster_name=fixture_dtest_cluster_name)
dtest_setup.initialize_cluster(fixture_dtest_create_cluster_func)
if not dtest_config.disable_active_log_watching:
dtest_setup.begin_active_log_watch()
# at this point we're done with our setup operations in this fixture
# yield to allow the actual test to run
yield dtest_setup
# phew! we're back after executing the test, now we need to do
# all of our teardown and cleanup operations
reset_environment_vars(initial_environment)
dtest_setup.jvm_args = []
for con in dtest_setup.connections:
con.cluster.shutdown()
dtest_setup.connections = []
failed = False
try:
if not dtest_setup.allow_log_errors:
errors = check_logs_for_errors(dtest_setup)
if len(errors) > 0:
failed = True
pytest.fail(msg='Unexpected error found in node logs (see stdout for full details).
Errors: [{errors}]'
.format(errors=str.join(", ", errors)), pytrace=False)
finally:
try:
# save the logs for inspection
if failed or not dtest_config