-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rgw: metadata search part 2 #14351
rgw: metadata search part 2 #14351
Commits on May 30, 2017
-
rgw: initial implementation of mdsearch query compiler
convert infix queries that look as follows: [(]<name> <operator> <value> [)] [<and|or> ...] into a prefix structure that is understood by elasticsearch. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 8fd55cc - Browse repository at this point
Copy the full SHA 8fd55ccView commit details -
rgw: add init callback to sync modules
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 6d4733c - Browse repository at this point
Copy the full SHA 6d4733cView commit details -
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 49b27f4 - Browse repository at this point
Copy the full SHA 49b27f4View commit details -
rgw: implement init_sync() callback in es module
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 67bfdb4 - Browse repository at this point
Copy the full SHA 67bfdb4View commit details -
rgw: handle nested fields in es queries
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 6de586c - Browse repository at this point
Copy the full SHA 6de586cView commit details -
just cleaning up Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 86ea424 - Browse repository at this point
Copy the full SHA 86ea424View commit details -
rgw: simplify es compile interface
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 0fdd24f - Browse repository at this point
Copy the full SHA 0fdd24fView commit details -
rgw: rename rgw_rest_es.cc to rgw_es_query.cc
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 42130df - Browse repository at this point
Copy the full SHA 42130dfView commit details -
rgw: work on REST handler for es module
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for bb46f19 - Browse repository at this point
Copy the full SHA bb46f19View commit details -
rgw: meta search rest handler can access es module
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for e515bf3 - Browse repository at this point
Copy the full SHA e515bf3View commit details -
just rename calls Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for c9d6882 - Browse repository at this point
Copy the full SHA c9d6882View commit details -
rgw: make key param in RGWRESTStreamRWRequest::send_request() optional
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 9f494ff - Browse repository at this point
Copy the full SHA 9f494ffView commit details -
rgw: can send data in RGWRESTStreamRWRequest::send_request()
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 952e72d - Browse repository at this point
Copy the full SHA 952e72dView commit details -
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for b6fe05d - Browse repository at this point
Copy the full SHA b6fe05dView commit details -
rgw: extend interfaces to allow sending data
when retrieving REST resource Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 698763f - Browse repository at this point
Copy the full SHA 698763fView commit details -
rgw: send request to elasticsearch and parse response
and send back response to user Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 86fe122 - Browse repository at this point
Copy the full SHA 86fe122View commit details -
rgw: also dump custom meta entries
when doing metadata search Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 0180650 - Browse repository at this point
Copy the full SHA 0180650View commit details -
rgw: add permissions and bucket to es query
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 99b49ac - Browse repository at this point
Copy the full SHA 99b49acView commit details -
rgw: metadata search pagination
Leveraging elasticsearch "size" and "from" for doing pagination. This is not optimal, but sadly it's currently the way to go as elasticsearch does not have an efficient way to retrieve ordered entries (other than using stateful api). This should be revisited in the future. A preferable way would be to hold a unique identifier for each object doc, and have the query sort by that unique identifier (that could be used as marker). At the moment sorting by anything would require elasticseatch to load all data into memory. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 1e88647 - Browse repository at this point
Copy the full SHA 1e88647View commit details -
rgw: initial support for multiple types in es requests
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for d026a23 - Browse repository at this point
Copy the full SHA d026a23View commit details -
rgw: support for generic entities types in es
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 42746ac - Browse repository at this point
Copy the full SHA 42746acView commit details -
rgw: support more meaningful compilation error string
in es module Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 21ee7c1 - Browse repository at this point
Copy the full SHA 21ee7c1View commit details -
rgw: support field aliases in es compiler
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 484fd2b - Browse repository at this point
Copy the full SHA 484fd2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for de5bd34 - Browse repository at this point
Copy the full SHA de5bd34View commit details -
rgw: guard restricted fields in es query
don't allow users to use the 'permissions' field. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 3f62f17 - Browse repository at this point
Copy the full SHA 3f62f17View commit details -
rgw: new api to configure bucket's custom keys for mdsearch
POST /bucket?mdsearch x-rgw-meta-search: <x-amz-meta-key>[;<str|int|date>][,...] note that x-amz-meta-search header can also be used. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 8249f76 - Browse repository at this point
Copy the full SHA 8249f76View commit details -
rgw: es: limit indexing to only configured user meta
only metadata keys that are configured on user's bucket are allowed to be indexed. Also, use the type of meta that was configured. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for e4e6e1e - Browse repository at this point
Copy the full SHA e4e6e1eView commit details -
rgw: es: also return custom int and date results
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 7b61c99 - Browse repository at this point
Copy the full SHA 7b61c99View commit details -
rgw: es: api to retrieve bucket mdsearch config
GET /bucket?mdsearch Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for acba916 - Browse repository at this point
Copy the full SHA acba916View commit details -
rgw: es: api to delete bucket mdsearch config
DELETE /bucket?mdsearch Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 603863a - Browse repository at this point
Copy the full SHA 603863aView commit details -
rgw: es: handle get config api in es zone
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 874223b - Browse repository at this point
Copy the full SHA 874223bView commit details -
common/ceph_json: map type can handle 2 or 3 template arguments
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for f1e681b - Browse repository at this point
Copy the full SHA f1e681bView commit details -
rgw: expose conf_get(), conf_get_int(), conf_get_bool()
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 6d5555a - Browse repository at this point
Copy the full SHA 6d5555aView commit details -
rgw: add "explicit_custom_meta" configurable to es sync module
Modify all the map<string, string> that is used to pass in module config to map<string, string, ltstr> so that it can be used with the conf get vals util. Also, switch to using shared_ptr to hold the ElasticConfig, so that later when we hold maps and such it doesn't need to be copied on every call. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 85310f0 - Browse repository at this point
Copy the full SHA 85310f0View commit details -
rgw: create helper for configurable item selection
with optional prefix and suffix. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for b02d616 - Browse repository at this point
Copy the full SHA b02d616View commit details -
rgw: es: configurable list of buckets and owners to index
and a tier configuration that allows to select both list of buckets and list of bucket owners (if both configured then will intersect the selection). Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 151a6eb - Browse repository at this point
Copy the full SHA 151a6ebView commit details -
rgw: es: elasticsearch index path unique per sync instance
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for f5b158f - Browse repository at this point
Copy the full SHA f5b158fView commit details -
rgw: es: add a configurable to override index path
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for fbae80b - Browse repository at this point
Copy the full SHA fbae80bView commit details -
rgw: es: configurable number of replicas and shards
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 8bfe137 - Browse repository at this point
Copy the full SHA 8bfe137View commit details -
rgw: add missing custom meta map initialization
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 3f40938 - Browse repository at this point
Copy the full SHA 3f40938View commit details -
rgw: fix time format that is sent to elasticsearch
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 4a91a54 - Browse repository at this point
Copy the full SHA 4a91a54View commit details -
rgw: es: generic keys are not case sensitive
make map case insensitive, and explicitly define all generic keys so that they can be forced to be lower case. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 2c9a7bc - Browse repository at this point
Copy the full SHA 2c9a7bcView commit details -
rgw: es: use "null" as instance in case key.instance is empty
when indexing objects. We can get either. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for a680aa1 - Browse repository at this point
Copy the full SHA a680aa1View commit details -
rgw-admin: zone create handles --tier-config
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for de9d2cb - Browse repository at this point
Copy the full SHA de9d2cbView commit details -
rgw: don't pass sync module to rest filter in creation
sync module instance might change due to reconfiguration. Pass it into the handler when executing op. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 1ca77ab - Browse repository at this point
Copy the full SHA 1ca77abView commit details -
rgw: move data sync instance_id initialization to caller
so that caller can easily know the instance id. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 6d3cc4b - Browse repository at this point
Copy the full SHA 6d3cc4bView commit details -
rgw: es: index and return versioned epoch
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 024d98c - Browse repository at this point
Copy the full SHA 024d98cView commit details -
rgw/test_multi: add support for elasticsearch testing
Add support for different zone types, and create an elasticsearch zone type that deals with es testing. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for ba0626f - Browse repository at this point
Copy the full SHA ba0626fView commit details -
test/rgw/test_multi: differentiate between zone and zone connection
Instead of having a Zone type used for the connection, create a new ZoneConn type that represents the connection. This frees us from the need to pass in credentials all around. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 366ffd5 - Browse repository at this point
Copy the full SHA 366ffd5View commit details -
test/rgw/test_multi: initial es functional tests
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for bbc5d48 - Browse repository at this point
Copy the full SHA bbc5d48View commit details -
rgw/test_multi/es: extend test
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 7d3be06 - Browse repository at this point
Copy the full SHA 7d3be06View commit details -
rgw/test_multi: zone_conn can hold more than one bucket per zone
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for f503762 - Browse repository at this point
Copy the full SHA f503762View commit details -
rgw/test_multi: add tests for different key types
add int and date tests Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 131f6a3 - Browse repository at this point
Copy the full SHA 131f6a3View commit details -
rgw: don't send raw date header to elasticsearch
parse the header, and encode it in the json doc using a format that ES can understand. Skip header if fails to parse. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for c13ec1c - Browse repository at this point
Copy the full SHA c13ec1cView commit details -
rgw/test-multi: test more complicated queries
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for d230915 - Browse repository at this point
Copy the full SHA d230915View commit details -
rgw/test_multi: add test_es_bucket_conf test
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for cd3fb79 - Browse repository at this point
Copy the full SHA cd3fb79View commit details -
test_multi: realm checkpoint after init
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for c9e2aff - Browse repository at this point
Copy the full SHA c9e2affView commit details -
instead of defining X_AMZ_META_PREFIX Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 7e4e743 - Browse repository at this point
Copy the full SHA 7e4e743View commit details -
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 3a81d09 - Browse repository at this point
Copy the full SHA 3a81d09View commit details -
Configuration menu - View commit details
-
Copy full SHA for a42aad0 - Browse repository at this point
Copy the full SHA a42aad0View commit details -
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 0b20353 - Browse repository at this point
Copy the full SHA 0b20353View commit details -
test_multi: don't pass array as default param to constructor
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 49f92f7 - Browse repository at this point
Copy the full SHA 49f92f7View commit details -
rgw: system users override elasticsearch permission filter
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 16e07f0 - Browse repository at this point
Copy the full SHA 16e07f0View commit details -
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for ea902d1 - Browse repository at this point
Copy the full SHA ea902d1View commit details -
rgw: es: fix system user check
check was inverted Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for dd83616 - Browse repository at this point
Copy the full SHA dd83616View commit details -
rgw: minor fixes following review
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for c3422bd - Browse repository at this point
Copy the full SHA c3422bdView commit details -
rgw: check init_sync return code
fix following review Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 0a836ba - Browse repository at this point
Copy the full SHA 0a836baView commit details -
rgw: get_rest_filter() delete original rest manager
When overriding rest manager, delete original. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 8f020cc - Browse repository at this point
Copy the full SHA 8f020ccView commit details -
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 8519dc4 - Browse repository at this point
Copy the full SHA 8519dc4View commit details
Commits on May 31, 2017
-
Configuration menu - View commit details
-
Copy full SHA for 4aea15f - Browse repository at this point
Copy the full SHA 4aea15fView commit details
Commits on Jun 1, 2017
-
qa/tasks/rgw_multisite.py: adjust zone init
zone is now a ZoneConn object. Also, change import to make it relative so that qa task can locate it. Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 6594d97 - Browse repository at this point
Copy the full SHA 6594d97View commit details