-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store private IPs in the token database. (#913)
* CASS-1828 Consolidate PriamInstance fetching into a single interface. * CASS-1828 Remove DeadTokenRetriever interface. * CASS-1828 Remove IPreGeneratedTokenRetriever interface * CASS-1828 Remove INewTokenRetriever interface * CASS-1828 remove populateRacMap * CASS-1828 Remove sameHostPredicate * CASS-1828 Move calls to gossip when finding preassigned token to separate function. * CASS-1828 Change PriamInstance toString to include IP and shrink a log statement. * CASS-1828 tighten up grabPreassignedToken. * CASS-1828 make TokenRetriever use the same logic to get rac instances both when generating a dead token and a pregenerated token. * CASS-1828 move gossip check from grabDeadToken to function. * CASS-1828 Move deletion to separate function. * CASS-1828 move token claiming to separate function * CASS-1828 Remove redundant comments and log statements, plus some minor rearranging. * CASS-1828 combine grabDeadToken and grabPreGeneratedToken * CASS-1828 add tests of new token generation * CASS-1828 Remove redundant method from ITokenManager interface and tighten up new token generation logic * CASS-1828 use nullity of replace ip to determine whether to replace. * CASS-1828 Ensure that pregenerated token is claimed when available and the dead token fails gossip check. This corrects a bug introduced when combining the erstwhile grabDeadToken and grabPregeneratedToken methods. * CASS-1828 stop marking tokens dead and deleting them, begin updating atomically and reading consistently with SimpleDB. * CASS-1828 Compare against both IPs when checking Gossip in assigned token case * CASS-1828 update database when getting preassigned tokens * CASS-1828 make DoubleRing inject InstanceInfo instead of InstanceIdentity. * CASS-1828 use private IP when dictated by configuration. * CASS-1828 remove redundant attachVolumes method from PriamInstanceFactory * CASS-1828 remove redundant sort method from PriamInstanceFactory * CASS-1828 remove redundant generics in PriamInstanceFactory * CASS-1828 Make PriamInstanceFactory return a Set of PriamInstances rather than a List. More generally, use a Set of PriamInstances where applicable. * CASS-1828 make IMembership return an ImmutableSet of IPs not a list. * CASS-1828 make UpdateSecuritySettings always add current instance's IP to account for possibility of stale data in instance database. Remove extra call to instance database as well.
- Loading branch information
1 parent
ed9eb9f
commit 21497b0
Showing
42 changed files
with
1,171 additions
and
1,438 deletions.
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
Oops, something went wrong.