Skip to content

Conversation

@ajoaoff
Copy link

@ajoaoff ajoaoff commented Jun 8, 2021

Original pull request opened by @ajoaoff at kytos#248.

📑 Description of the Change

This PR fixes same issues found when creating/editing several EVCs at once.

  • Do not load archived EVCs in memory.
  • Use locks when loading EVCs
  • Fix an issue where several locks were created in storehouse.

💻 Verification Process

Unit tests passed.
One of the tests was modified to reflect archived EVCs not being loaded.

📄 Release Notes

Examples:

  • Archived EVCs not loaded on startup
  • Locks when loading EVCs

@ajoaoff ajoaoff marked this pull request as ready for review June 8, 2021 11:35
@ajoaoff ajoaoff requested review from a team, jab1982 and rmotitsuki and removed request for a team June 8, 2021 11:37
ajoaoff added 4 commits June 8, 2021 08:44
When iterating through a dictionary, get a tuple of keys
instead of a view, avoiding errors when the dictionary changes.
Archived EVCs cannot be used or changed, so there is
no need for them to be in memory.
When an EVC cannot be loaded, a message is logged as error instead of info.

Co-authored-by: Italo Valcy S Brito <[email protected]>
@ajoaoff ajoaoff merged commit d0d90d1 into kytos-ng:master Jun 11, 2021
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.

2 participants