storj/internal
Cameron 4058c29ca4
filter duplicate node IPs (#1890)
* add last_ip field to dbx model node, generate dbx

* add last_ip to node proto, generate pb

* migrate

* resolve address in transport.DialNode, update lastIp in cache.UpdateAddress

* use net.SplitHostPort to isolate host address from port

* define DistinctIPs flag

* add test for GetIP

* select last_ip when querying for nodes

* if distinctIPs flag == true, query for nodes with distinct IPs

* some basic tests

* change last_ip to field 14 in proto

* remove comments

* check err

* change distinctIPs to distinctIP

* exclude IPs from newNodes in query for reputable nodes

* add index on last_ip

* only add to excludedIPs if flag is true

* test half new nodes returns distinct IPs

* fix alignment

* add test

* rework ip filter query, add retry logic, add switch for database driver

* add retry to SelectNewNodes

* change discovery intervals so IPs don't get overwritten

* remove TestGetIP

* edit updating node stats in test

* split exclude into nodeIDs and IPs

* separate non-distinct IP query into other function

* trigger checks

* remove else block
2019-05-22 16:06:27 -04:00
..
cui better batch-generation (#1219) 2019-02-06 09:04:12 +01:00
dbutil db: set max idle connections higher to avoid redialing all the time (#1991) 2019-05-21 17:30:06 +03:00
debugging Identity versioning (#1389) 2019-04-08 20:15:19 +02:00
errs2 ensure TestParallel doesn't deadlock on error (#1808) 2019-04-24 13:15:46 +03:00
fpath remove utils.CombineErrors and utils.ErrorGroup (#1603) 2019-03-29 14:30:23 +02:00
memory fix potential truncation of int64 (#1718) 2019-04-10 06:36:27 -04:00
migrate cover all the things (#1818) 2019-04-26 16:39:11 +03:00
post Add additional error handling to email message sending. (#1639) 2019-05-13 11:14:45 -04:00
processgroup updates copyright 2018 to 2019 (#1133) 2019-01-24 15:15:10 -05:00
readcloser remove utils.CombineErrors and utils.ErrorGroup (#1603) 2019-03-29 14:30:23 +02:00
s3client updates copyright 2018 to 2019 (#1133) 2019-01-24 15:15:10 -05:00
sync2 internal/sync2: Cycle minor impl & docs improvements (#1936) 2019-05-09 20:19:06 +02:00
testcontext internal/textcontext: Fail test on error & docs (#1835) 2019-04-26 12:21:32 +02:00
testidentity Identity versioning fix (#1721) 2019-04-09 13:01:45 -04:00
testpeertls Identity versioning (#1389) 2019-04-08 20:15:19 +02:00
testplanet filter duplicate node IPs (#1890) 2019-05-22 16:06:27 -04:00
teststorj Refactor pb.Node protobuf (#1785) 2019-04-22 12:07:50 +03:00
version Add Identity to Version Control Server (#1876) 2019-05-01 18:21:51 +02:00