question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

some kvstore.data methods fail if _key has '/'

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
vmalaviya-splunkcommented, Sep 28, 2021

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

1reaction
pmeyersoncommented, Dec 9, 2020

I believe this is the issue initially reported by syrad #232

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found