Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 ScalarDB,它将 ACID 功能添加到Cassandra. 似乎如果我使用重复Put项,即插入与现有条目相同的条目,则会NoMutationApplied引发异常。
Cassandra
Put
NoMutationApplied
它是否正确?是否有任何其他条件会引发此异常?
当条件不满足时,会抛出Putwith conditions like的执行。PutIfNoMutationException
PutIf
NoMutationException
在这种情况下,您可以Put发出带条件的请求PutIfNotExists并执行它。如果条目存在,NoMutationException将被抛出并避免覆盖条目。
PutIfNotExists