Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.4k
Remove use of blacklist/whitelist terms#4135
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
Closed
Uh oh!
There was an error while loading. Please reload this page.
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8a2d80b
start removing dubious phrases
7ea817d
remove black/white list phrasing
d3f53e5
remove a few last phrases
06a965d
fix inadvertent case change
3b5f966
wrong case
cd635aa
revert change which is actually in mysql
7ea0a96
fix typo
2d735bf
Updated changes to remove black/whitelist phrasing
sureshanaparti File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4 api/src/main/java/org/apache/cloudstack/query/QueryService.java
This file contains hidden or 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
6 changes: 6 additions & 0 deletions
6 engine/schema/src/main/resources/META-INF/db/schema-41510to41600.sql
This file contains hidden or 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
2 changes: 1 addition & 1 deletion
2 ...-role-based/src/main/java/org/apache/cloudstack/acl/DynamicRoleBasedAPIAccessChecker.java
This file contains hidden or 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
2 changes: 1 addition & 1 deletion
2 ...-role-based/src/main/java/org/apache/cloudstack/acl/ProjectRoleBasedApiAccessChecker.java
This file contains hidden or 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
2 changes: 1 addition & 1 deletion
2 ...c-role-based/src/main/java/org/apache/cloudstack/acl/StaticRoleBasedAPIAccessChecker.java
This file contains hidden or 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
34 changes: 17 additions & 17 deletions
34 plugins/database/mysql-ha/src/main/java/com/cloud/utils/db/StaticStrategy.java
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -44,21 +44,21 @@ public JdbcConnection pickConnection(InvocationHandler proxy, List<String> confi | ||
| SQLException ex = null; | ||
| List<String> whiteList = new ArrayList<String>(numHosts); | ||
| whiteList.addAll(configuredHosts); | ||
| List<String> allowList = new ArrayList<String>(numHosts); | ||
| allowList.addAll(configuredHosts); | ||
| Map<String, Long> blackList = ((LoadBalancedConnectionProxy) proxy).getGlobalBlacklist(); | ||
| Map<String, Long> denylist = ((LoadBalancedConnectionProxy) proxy).getGlobalBlacklist(); | ||
sureshanaparti marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| whiteList.removeAll(blackList.keySet()); | ||
| allowList.removeAll(denylist.keySet()); | ||
| Map<String, Integer> whiteListMap = this.getArrayIndexMap(whiteList); | ||
| Map<String, Integer> allowListMap = this.getArrayIndexMap(allowList); | ||
| for (int attempts = 0; attempts < numRetries;) { | ||
| if (whiteList.size() == 0) { | ||
| if (allowList.size() == 0) { | ||
| throw SQLError.createSQLException("No hosts configured", null); | ||
| } | ||
| String hostPortSpec = whiteList.get(0); //Always take the first host | ||
| String hostPortSpec = allowList.get(0); //Always take the first host | ||
| ConnectionImpl conn = (ConnectionImpl) liveConnections.get(hostPortSpec); | ||
| @@ -70,16 +70,16 @@ public JdbcConnection pickConnection(InvocationHandler proxy, List<String> confi | ||
| if (((LoadBalancedConnectionProxy) proxy).shouldExceptionTriggerFailover(sqlEx)) { | ||
| Integer whiteListIndex = whiteListMap.get(hostPortSpec); | ||
| Integer allowListIndex = allowListMap.get(hostPortSpec); | ||
| // exclude this host from being picked again | ||
| if (whiteListIndex != null) { | ||
| whiteList.remove(whiteListIndex.intValue()); | ||
| whiteListMap = this.getArrayIndexMap(whiteList); | ||
| if (allowListIndex != null) { | ||
| allowList.remove(allowListIndex.intValue()); | ||
| allowListMap = this.getArrayIndexMap(allowList); | ||
| } | ||
| ((LoadBalancedConnectionProxy) proxy).addToGlobalBlacklist(hostPortSpec); | ||
| if (whiteList.size() == 0) { | ||
| if (allowList.size() == 0) { | ||
| attempts++; | ||
| try { | ||
| Thread.sleep(250); | ||
| @@ -88,12 +88,12 @@ public JdbcConnection pickConnection(InvocationHandler proxy, List<String> confi | ||
| } | ||
| // start fresh | ||
| whiteListMap = new HashMap<String, Integer>(numHosts); | ||
| whiteList.addAll(configuredHosts); | ||
| blackList = ((LoadBalancedConnectionProxy) proxy).getGlobalBlacklist(); | ||
| allowListMap = new HashMap<String, Integer>(numHosts); | ||
| allowList.addAll(configuredHosts); | ||
| denylist = ((LoadBalancedConnectionProxy) proxy).getGlobalBlacklist(); | ||
| whiteList.removeAll(blackList.keySet()); | ||
| whiteListMap = this.getArrayIndexMap(whiteList); | ||
| allowList.removeAll(denylist.keySet()); | ||
| allowListMap = this.getArrayIndexMap(allowList); | ||
| } | ||
| continue; | ||
6 changes: 3 additions & 3 deletions
6 server/src/main/java/com/cloud/api/query/QueryManagerImpl.java
This file contains hidden or 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
4 changes: 2 additions & 2 deletions
4 server/src/main/java/com/cloud/api/query/dao/UserVmJoinDaoImpl.java
This file contains hidden or 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
2 changes: 1 addition & 1 deletion
2 server/src/main/java/com/cloud/configuration/ConfigurationManagerImpl.java
This file contains hidden or 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
16 changes: 8 additions & 8 deletions
16 server/src/main/java/com/cloud/network/vpc/VpcManagerImpl.java
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
Uh oh!
There was an error while loading. Please reload this page.