This repository has been archived by the owner on Mar 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Fix race condition in subnet deletion API #663
Open
xieus
wants to merge
43
commits into
futurewei-cloud:master
Choose a base branch
from
xieus:fix/subnet_concurrent_delete_issue
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
9645772
Documentation update
pkommoju 183c36a
Apply changes suggested in review
pkommoju 4896515
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju f170e1e
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju bcbf7b1
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju efc5b6e
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju c785697
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju d213c03
Merge branch 'master' of https://github.com/pkommoju/alcor
0f56454
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 4a2a382
Merge branch 'master' of https://github.com/pkommoju/alcor
pkommoju 7f93fe3
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 8d6dd0e
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju b19d428
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
kevin-zhonghao 539d0c0
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 6a9a1c6
Merge branch 'master' of https://github.com/pkommoju/alcor
pkommoju 19430b2
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 1d7ef7e
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju cd1fec6
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju e079a44
Fix race condition in VPC Mgr delete subnet API
4831ad6
Set subnset ip version as IPv4
3c378e0
Merge branch 'master' into fix/subnet_concurrent_delete_issue
4cb934e
Fix varible type
ad62ef0
Add some logs
f756eef
Add more logs
8160d4a
Revert the wrong fix to the non-gateway port count check
639a0cd
Fix commit transaction from different thread issue
85de8fb
Update ignite config xml to support transaction in VpcRepository
d6ed075
Fix Ip mgr ignite misconfiguration
e57abe4
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 1b63054
Add missing file
pkommoju fe81008
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 016aaf5
Add create ignite client with cache config and support in ip mgr
118dd53
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 7d9a2e5
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 3884a44
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 0b5cd11
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 2ae9045
Merge from master
257ef71
Make all currently used caches transactional
pkommoju c303e0b
Merge branch 'master' of https://github.com/futurewei-cloud/alcor
pkommoju 46b79f8
Merge branch 'master' into all_txn
pkommoju c7809b3
Make more caches to Transactional atomicity to fix subnet deletion pr…
pkommoju 70e9251
Address code review comments
pkommoju 06bc414
Merge branch 'all_txn' into fix/subnet_concurrent_delete_issue
pkommoju File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good but there is a convention about the naming. The convention is to call someCache.getTransaction().start(), .commit(), .rollback() instead of wrapping the transaction calls in a method and calling it. It would be better if this code follows the convention.
Another change is required for this to actually work. Ignite configuration declare that this cache must have atomicity mode of TRANSACTIONAL. Here is the declatration.
In kubernetes/services/ignite_config.xml there is this section
under which there is tag . The above declaration should be added under the tag.Every one needs this update to the ignite config file to not run into this issue, in addition the iginte database should be deleted. (default is <your_ignite_home>/work). If anyone has valuable data in the ignite DB, let me know we can delete just this cache.
If there are any questions about this extra work, ping me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pkommoju Thanks. We have updated the transaction naming and added a new cacheConfiguration for VpcRepo.