Skip to content

Commit e1e190e

Browse files
committed
fixed unit tests for cassandra backend
1 parent 6a19c4b commit e1e190e

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

backends/cassandra/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@
9393
<goal>test</goal>
9494
</goals>
9595
<configuration>
96+
<environmentVariables>
97+
<HAYSTACK_PROP_CASSANDRA_ENDPOINTS>cass1,cass2</HAYSTACK_PROP_CASSANDRA_ENDPOINTS>
98+
</environmentVariables>
9699
<wildcardSuites>com.expedia.www.haystack.trace.storage.backends.cassandra.unit</wildcardSuites>
97100
</configuration>
98101
</execution>

backends/cassandra/src/test/resources/config/base.conf

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,25 @@ cassandra {
2626
}
2727

2828
connections {
29-
max.per.host = 10
29+
max.per.host = 100
3030
read.timeout.ms = 5000
3131
conn.timeout.ms = 10000
3232
keep.alive = true
3333
}
34+
ttl.sec = 86400
35+
36+
retries {
37+
max = 10
38+
backoff {
39+
initial.ms = 250
40+
factor = 2
41+
}
42+
}
3443

3544
keyspace {
3645
name = "haystack"
3746
table.name = "traces"
47+
auto.create.schema = "cassandra_cql_schema_1",
48+
3849
}
3950
}

0 commit comments

Comments
 (0)