Etcd: Does etcd keep order by event occur order when send watch event?

Created on 8 Jun 2016  路  2Comments  路  Source: etcd-io/etcd

I watch a key, and delete and add. etcd will send two event. Does these two event message order is same to operation order? Is it possible add message arrive first?

Most helpful comment

@xiang90 But how to understand :

etcd does not ensure linearizability for watch operations. Users are expected to verify the revision of watch responses to ensure correct ordering.

from https://coreos.com/etcd/docs/latest/learning/api_guarantees.html

thx.

All 2 comments

etcd preserves the event ordering.

Does these two event message order is same to operation order?

Yes.

Is it possible add message arrive first?

No, unless there is a bug.

@xiang90 But how to understand :

etcd does not ensure linearizability for watch operations. Users are expected to verify the revision of watch responses to ensure correct ordering.

from https://coreos.com/etcd/docs/latest/learning/api_guarantees.html

thx.

Was this page helpful?
0 / 5 - 0 ratings