Tomasz Grabiec
ff35be339c
tests: cql: Improve error reporting in with_rows()
2015-03-30 09:07:01 +02:00
Avi Kivity
abcd745539
tests: add discarder test
...
UPDATE tab SET my_set_or_map = my_set_or_map - { key1, key2 }
2015-03-27 16:10:35 +01:00
Avi Kivity
844bdef6ac
tests: add sets::setter test
...
UPDATE tab SET myset = { 1, 2, 3 }
2015-03-27 16:09:41 +01:00
Avi Kivity
2602032b5e
tests: add tests for setting entire maps
...
UPDATE tab set my_map = { key: val, ... };
also test a random syntax error.
2015-03-26 18:14:35 +01:00
Tomasz Grabiec
2452df8617
tests: cql: Add test for static column query
2015-03-26 14:58:36 +01:00
Avi Kivity
1c1c4f923a
db: fix collection_type_impl::deserialize_mutation_form() types
...
It accepts a bytes_view instead of the type-safe wrapper.
2015-03-26 14:31:01 +02:00
Avi Kivity
e664c1640f
Merge branch 'tgrabiec/fixes' of github.com:cloudius-systems/seastar-dev into db
2015-03-26 13:47:12 +02:00
Avi Kivity
37633a2cdd
tests: tests list setter_by_index
2015-03-26 12:14:01 +02:00
Tomasz Grabiec
283f52549b
test: cql: Add test for results order with variable length keys
2015-03-26 10:46:53 +01:00
Tomasz Grabiec
2bc1c7b534
tests: Make rows_assertions::with_rows() verify order
2015-03-26 10:46:53 +01:00
Tomasz Grabiec
17825a8e81
tests: Test is_prefix_of() on keys rather than tuples
...
tuple_type<>::is_prefix_of() is not used and will be removed.
2015-03-26 10:46:53 +01:00
Avi Kivity
467ede53b7
Merge branch 'tgrabiec/query-v2' of github.com:cloudius-systems/seastar-dev into db
...
Query tests and cleanups, from Tomasz.
2015-03-25 15:45:14 +02:00
Tomasz Grabiec
121fa4ff46
test: Introduce test for in-memory CQL query performance
...
The schema and queries resemble that used by cassandra-stress.
Results on my laptop:
$ build/release/tests/perf/perf_simple_query -c1
Concurrency = 100 x 1
Creating 1000 partitions...
Timing single key selects...
452146.50 tps
449365.24 tps
457650.58 tps
460334.78 tps
458281.51 tps
Timing random key selects...
439181.03 tps
449899.67 tps
405146.90 tps
440228.84 tps
440889.50 tps
$ build/release/tests/perf/perf_simple_query -c3
Concurrency = 100 x 3
Creating 1000 partitions...
Timing single key selects...
302615.08 tps
301471.02 tps
303040.67 tps
302114.77 tps
302465.13 tps
Timing random key selects...
627516.46 tps
628978.04 tps
623664.15 tps
624098.48 tps
614549.85 tps
2015-03-25 12:59:25 +01:00
Tomasz Grabiec
8f73f7df47
tests: Add time_parallel() utility
2015-03-25 12:59:25 +01:00
Raphael S. Carvalho
d81cbbabf7
tests: add testcase for sstables compression info
...
Signed-off-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com >
2015-03-25 13:24:48 +02:00
Nadav Har'El
b4e805e811
sstable: test reading from data file
...
Test sstable::data_read(pos, len), for both compressed and uncompressed
data files. We already have compressed and uncompressed sstables in our
test tree with identical data, we read from them in a particular position
and expect to find the string "gustaf" there.
Signed-off-by: Nadav Har'El <nyh@cloudius-systems.com >
2015-03-25 12:35:33 +02:00
Tomasz Grabiec
b829062985
tests: Make time_it() template static
2015-03-25 10:36:19 +01:00
Tomasz Grabiec
e605a0368a
tests: Use lowres_clock in time_it()
2015-03-25 10:36:19 +01:00
Tomasz Grabiec
967073c3c2
tests: Add helpers for setting up CQL environment for tests
2015-03-25 10:36:19 +01:00
Tomasz Grabiec
7bd076ed85
db: Extract range tombstone lookup to separate method
...
While at it, convert affected methods to take a schema by const& instead
of a shared pointer to save on unnecessary shared ptr copies.
2015-03-25 10:36:19 +01:00
Tomasz Grabiec
201aad7fb1
Merge remote-tracking branch 'seastar/master'
2015-03-25 10:29:52 +01:00
Tomasz Grabiec
4dc8a6a09c
test: distrubuted_test: Test that constructor arguments are copied on each core
2015-03-25 09:39:34 +01:00
Tomasz Grabiec
5133a0b2ab
tests: distributed_test: Add missing start() invocation
2015-03-25 09:39:34 +01:00
Tomasz Grabiec
dc4eb7af2d
tests: Rename map_reduce_test.cc to distributed_test.cc
2015-03-25 09:39:34 +01:00
Tomasz Grabiec
040f8ffcfb
tests: Convert tabs to spaces
2015-03-25 09:39:34 +01:00
Pekka Enberg
13372695e6
tests: create table statement test case
...
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-03-24 15:06:06 +02:00
Avi Kivity
ea004d20d7
Merge branch 'tgrabiec/schema' of github.com:cloudius-systems/seastar-dev into db
...
Fix schema copy constructor, from Tomasz.
2015-03-24 14:07:36 +02:00
Tomasz Grabiec
e3422525c0
Use column_definition via const reference
2015-03-24 12:03:00 +01:00
Glauber Costa
a51aca67cb
Test summary querying
...
Note: since the Summary files tend to contain very few indexes, all of the previous ones
had only a single entry. We are using small files so we don't have to carry files that are
too big in-tree.
To properly test the Summary files, though, I am importing from my Origin test
setup a quite large sstable, but zeroing its Data/Index file. We can use it to
test all metadata-related queries if we so want, but should not be expecting
actual data from it.
Signed-off-by: Glauber Costa <glommer@cloudius-systems.com >
2015-03-24 11:31:21 +02:00
Tomasz Grabiec
868955658a
Merge tag 'refs/tags/avi/collections/lists/v3'
...
From Avi:
This patchset does some initial conversions for values and operations on
list types. Also included is the collection tombstone patchset, which is
needed to make setters work.
setter_by_index is an RMW operation, which is not implemented yet, so it
is not tested.
2015-03-23 21:43:55 +01:00
Avi Kivity
21f1888f88
cql: fix lists::setter to use a tombstone
...
Properly squash existing value
2015-03-23 21:54:22 +02:00
Avi Kivity
c77648da6e
db: add collection tombstones
2015-03-23 21:54:22 +02:00
Avi Kivity
62ee57b953
db: wrap collection_type_impl::mutation's vector in a struct
...
This will allow us to introduce a tombstone alongside.
2015-03-23 21:54:22 +02:00
Avi Kivity
00695c247a
tests: add list tests to cql_query_test
...
List update currently not tested due to lack of collection tombstones.
2015-03-23 21:54:22 +02:00
Tomasz Grabiec
100437ddfe
Merge remote-tracking branch 'seastar/master'
2015-03-23 10:58:24 +01:00
Gleb Natapov
406fbf76f7
rpc: add no_wait and client_info tests
2015-03-22 16:16:30 +02:00
Tomasz Grabiec
bc8df8c25c
tests: cql: Add tests for range queries
2015-03-20 19:20:59 +01:00
Tomasz Grabiec
bdbd5547e3
db: Cleanup key names
...
clustering_key::one -> clustering_key
clustering_key::prefix::one -> clustering_key_prefix
partition_key::one -> partition_key
clustering_prefix -> exploded_clustering_prefix
2015-03-20 18:59:29 +01:00
Tomasz Grabiec
90298af614
db: Cleanup atomic_cell naming
...
atomic_cell -> atomic_cell_type
atomic_cell::one -> atomic_cell
atomic_cell::view -> atomic_cell_view
2015-03-20 18:59:29 +01:00
Tomasz Grabiec
49b7a166a8
keys: Make key components non-optional
2015-03-19 14:54:41 +01:00
Avi Kivity
d1310f4886
Merge branch 'master' of github.com:cloudius-systems/seastar into db
2015-03-18 13:14:19 +02:00
Raphael S. Carvalho
6e049a4a98
tests: add test_fstream_unaligned testcase to fstream test
...
Signed-off-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com >
2015-03-18 13:10:00 +02:00
Tomasz Grabiec
83e91d6de4
tests: Add more tests for range tombstones
2015-03-17 15:56:29 +01:00
Tomasz Grabiec
1b1af8cdfd
db: Introduce types to hold keys
...
Holding keys and their prefixes as "bytes" is error prone. It's easy
to mix them up (or use wrong types). This change adds wrappers for
keys with accessors which are meant to make misuses as difficult as
possible.
Prefix and full keys are now distinguished. Places which assumed that
the representation is the same (it currently is) were changed not to
do so. This will allow us to introduce more compact storage for non-prefix
keys.
2015-03-17 15:56:29 +01:00
Avi Kivity
6fee695095
db: replace most uses of protocol_version with serialization_format
...
Better type safety.
2015-03-16 18:15:16 +02:00
Avi Kivity
c99185677b
tests: add test for set literals and set addiitions
2015-03-16 16:45:36 +02:00
Avi Kivity
e28938b8d6
tests: fix cql_query_test indentation
2015-03-16 16:45:36 +02:00
Avi Kivity
e6828d7ad0
Merge branch 'master' of github.com:cloudius-systems/seastar into db
...
Conflicts:
configure.py
2015-03-15 20:39:30 +02:00
Avi Kivity
d3acb5acc2
linecount: better error handling
2015-03-15 14:48:52 +02:00
Avi Kivity
0537a8ffe5
linecount: don't try to create the file.
...
It's read-only.
2015-03-15 14:48:31 +02:00