-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove new_timestamp(id)
standalone function, keep it only as a method of the Session
#1179
Comments
new_timestamp()
method of the Session
new_timestamp(id)
standalone function, keep it only as a method of the Session
Currenly we could safely make the standalone |
Actually, The question is then, should we allow timestamp generation only for the local id (from session/config), or do we allow to generate timestamp also for "foreign" ids (peers/routers). I don't think enabling it for "foreign" ids makes sense, but I don't know anything about timestamp in zenoh. Also, maybe we should hide these |
My understanding is that we wanted to have a Timestamp with an Idea of the Session, and the current implementation with a I agree with the point of hiding |
To guarantee the correct behaviour of Zenoh and avoid API misusage/abuse we should not expose the possibility of generate timestamp for foreign ids. The role of Therefore, I suggest to have something like: impl Session {
fn new_timestamp(&self) -> Timestamp { .. }
} |
Removed Timestamp entirely, PR:remove+rework_timestamp RocksDB PR: eclipse-zenoh/zenoh-backend-rocksdb#126 |
Completed |
Describe the release item
This will guarantee that artifitial timestamp with fake ZenohId is never created. But this requires rework of zenoh/plugins/zenoh-plugin-storage-manager/src/replica/snapshotter.rs and several plugins.
Make final decision after discussion with @J-Loudet and @Mallets
The text was updated successfully, but these errors were encountered: