Skip to content
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

[201811] Drop explict 3 seconds pause between two object updates/deletes. #1457

Closed

Conversation

renukamanavalan
Copy link
Contributor

What I did

Drop explicitly introduced 3 seconds pause between object updates using configlet.
Master PR #1359

How I did it

Remove the added time.sleep(3)

How to verify it

Loaded original minigraph that has all T0s
Get redis-dump of Asic-DB.
Manipulate minigraph to remove a T0
Load that minigraph
Add that removed T0 via configlet
Get the red-dump of ASIC-DB

Compared the two ASIC dumps using saiasiccmp tool to match.

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

objects.
Tested this change using saiasiccmp tool to work good.
@jleveque jleveque changed the title Drop explict 3 seconds pause between two object updates/deletes. [201811] Drop explict 3 seconds pause between two object updates/deletes. Feb 24, 2021
@yxieca
Copy link
Contributor

yxieca commented Mar 1, 2021

Why was it added? Why is no longer needed? Can you clarify the reason?
(Not that I don't like the change, just curious)

@renukamanavalan
Copy link
Contributor Author

Why was it added? Why is no longer needed? Can you clarify the reason?
(Not that I don't like the change, just curious)

When we introduced this as new feature (more than a year back), there were some doubts w.r.t quick updates and consumption of the same down the pipeline in control plane. We did not have any concrete doubts. Still added the 3 seconds pause to play it safe.

Now, with help of latest tool saiasiccmp (thanks to Kamil), we did the ASIC dumps comparison across, adding-all-T0s-via-minigraph vs add-one-of-the-T0s via configlet w/o 3 secs pause. This cleared our doubts and hence removed the assumed-but-redundant safety pause of 3 secs.

@jleveque
Copy link
Contributor

jleveque commented Mar 6, 2021

Retest this please

@renukamanavalan renukamanavalan deleted the configlet_201811 branch September 16, 2022 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants