Hello Experts,
I am trying Jepsen with concurrency.During INVOKE two workers has different payload(key=value), just before calling actual (http/put <args>) it had override the payload, due to which subsequent GET/READ has wrong payload and it fails during consistency check.
Could anyone please suggest how to resolve this, such that Worker Threads will be intact to their local values? Has anyone also faced the same issue?
Code Snippet-------------(defn put-test "this is to test http PUT command "[uri key val](def uri1 (str (:endpoint uri) "/" base-path "/" api-version "/" ki))(def put_body_content (str "{ \"acl\":[{\"provider\": \"TLS\", \"domain\": \"\"
Hello Sapan,
This is more of a Clojure question than something specific to Jepsen. `def` assigns global, mutable variables; it's typically used for defining functions and constants. For lexical variables, which I suspect is what you want here, try `let`. You can find plenty of examples in the tutorial documentation:
https://github.com/jepsen-io/jepsen/blob/master/doc/tutorial/index.md
--Kyle
--
You received this message because you are subscribed to a topic in the Google Groups "Jepsen Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/a/jepsen.io/d/topic/talk/xyjrQFxagC4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to talk+uns...@jepsen.io.
To view this discussion on the web visit https://groups.google.com/a/jepsen.io/d/msgid/talk/dd618621-9d73-20a4-7e50-1cc8a4a3d0e3%40jepsen.io.