some kvstore.data methods fail if _key has '/'
See original GitHub issueDescribe the bug If record key has “/” the update method fails, but insert, query, and delete methods succeed.
This doesn’t seem like it should be expected but let me know if it is.
To Reproduce Steps to reproduce the behavior:
service.kvstore.create("test")
col = service.kvstore['test']
bad_key = "01:/i-001"
record = json.dumps({"_key":bad_key, "foo":"bar"})
record_update = json.dumps({"foo":"baz"})
query_key=json.dumps({"_key": bad_key})
# insert succeeds
col.data.insert(record)
# update fails
col.data.update(bad_key, record_update)
# query_by_id fails with 404
col.data.query_by_id(bad_key)
# regular query succeeds
col.data.query(query_key)
# delete_by_id fails with 404
col.data.delete_by_id(bad_key)
# delete succeeds
col.data.delete(query_key)
print(col.data.query())
Expected behavior
To my understanding all these calls should succeed - the inconsistency is very confusing. None of these calls should return HTTP 404 All statements succeed if bad_key does not contain “/”
Splunk (please complete the following information):
- Version: 8.0.7
- Docker Image 1d4750df3f5d
- Deployment: single-instance
SDK (please complete the following information):
- Version: 1.6.14
- Language Runtime Version: Python 3.7
- OS: Mac 10.15.7
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Why are we getting these errors: KV Store Process Terminated
Solved: I have gotten 3 error on the search head. The errors are: Failed to start KV Store process. See mongod.log and splunkd.log...
Read more >Key value storage (kvstore) - Varnish Cache Plus
If you have a highly dynamic key set, expired keys may never be landed on and your kvstore size can grow unchecked. This...
Read more >KV Store - HTTP API | Consul - HashiCorp Developer
The /kv endpoints access Consul's simple key/value store, useful for storing service configuration or other metadata.
Read more >Failed to start KV Store process. See mongod.log and splunkd ...
pem file has been generated. 8. NOTE : Run this command if the SH is in distributed environment not in cluster environment. We...
Read more >KVStore (Oracle NoSQL Database API)
This method is almost identical to multiGet(Key, KeyRange, Depth) . It differs solely in the type of its return value: It returns a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Greetings @pmeyerson Thanks for bringing it up We have fixed the issue, and the changes will be available in the next release. Reference to PR
I believe this is the issue initially reported by syrad #232