in etcd doc
If we miss all the 1000 events, we need to recover the current state of the watching key space through a get and then start to watch from the X-Etcd-Index + 1.
For example, we set /other="bar" for 2000 times and try to wait from index 8.
We get the index is outdated response, since we miss the 1000 events kept in etcd.
{"errorCode":401,"message":"The event in requested index is outdated and cleared","cause":"the requested history has been cleared [1008/8]","index":2007}
The index is a long type, when index is bigger than 2,147,483,647(2^31 - 1) gson will throw an NumberFormatException.
in etcd doc If we miss all the 1000 events, we need to recover the current state of the watching key space through a get and then start to watch from the X-Etcd-Index + 1.
For example, we set /other="bar" for 2000 times and try to wait from index 8.
We get the index is outdated response, since we miss the 1000 events kept in etcd.
The index is a long type, when index is bigger than 2,147,483,647(2^31 - 1) gson will throw an NumberFormatException.