Skip to content

Distinguish different types of table events in watch gRPC API - #3587

Open
SampleText2k77 wants to merge 2 commits into
osrg:masterfrom
SampleText2k77:feat/distinguish-init-table-events
Open

Distinguish different types of table events in watch gRPC API#3587
SampleText2k77 wants to merge 2 commits into
osrg:masterfrom
SampleText2k77:feat/distinguish-init-table-events

Conversation

@SampleText2k77

Copy link
Copy Markdown

Rationale for this is mainly to distinguish initial paths dump from regular updates. Initial dump may come in as a series of WatchEventResponses when WatchEventRequest has non-zero BatchSize in table filter configuration. This produces a short period of inconsistency which may be critical for some clients: you have received a batch of paths during initial dump and not sure will there be more of them of there will come a regular update. The problem is somewhat illustrated in a test case.

In theory this may also be the case for regular updates, but I haven't observed them coming and having multiple paths inside. This is why I left potentially batched updates having single UPDATE event type.

Rationale for this is mainly to distinguish initial paths dump from regular updates. Initial dump may come in as a series of WatchEventResponses when WatchEventRequest has non-zero BatchSize in table filter configuration. This produces a short period of inconsistency which may be critical for some clients: you have received a batch of paths during initial dump and not sure will there be more of them of there will come a regular update. The problem is somewhat illustrated in a test case.

In theory this may also be the case for regular updates, but I haven't observed them coming and having multiple paths inside. This is why I left potentially batched updates having single UPDATE event type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant