instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
Netflix__dyno__105
Netflix/dyno
105
defect
da41b8b1529591840b60240fd92e0b05fe155853
caa165280333e3b5d5366ebf36039b30f696fbf8
Bug Fix - host pool can run out of connections
**Detailed Description** The 1.4.0 release discards connections that encounter socket exceptions due to an insidious underlying buffer issue. If the dynomite connection is severed while all connections are in use all of them will be discarded and the pool will not replenish itself immediately. The result is that all re...
diff --git a/dyno-core/src/main/java/com/netflix/dyno/connectionpool/exception/PoolExhaustedException.java b/dyno-core/src/main/java/com/netflix/dyno/connectionpool/exception/PoolExhaustedException.java index 6c23190f..fbbacda2 100644 --- a/dyno-core/src/main/java/com/netflix/dyno/connectionpool/exception/PoolExhausted...
3
3
2
[{"id": "G0", "claim": "With PoolExhaustedException the fallback does not happen immediately but only after the (default 2s) borrow timeout expires, which degrades performance; the reviewer questions when the fallback would occur and asks about the RF=2 case where the pool can never have connections.", "category": "per...
null
Netflix__dyno__120
Netflix/dyno
120
defect
e23d261b80a89a12cd3c5ce21d778944353b5428
08f3e53ea40039c52b34e955ea429feb56f3d366
Cross-zone (rack) fallback implementation
Currently cross-zone fallback only occurs when dyno client recognizes that a dynomite server is down. With this change any time an error occurs either obtaining a connection from the pool or with the execution of an operation the connection for the retry will be borrowed from a remote zone rather than the same local ho...
diff --git a/dyno-contrib/src/main/java/com/netflix/dyno/contrib/ArchaiusConnectionPoolConfiguration.java b/dyno-contrib/src/main/java/com/netflix/dyno/contrib/ArchaiusConnectionPoolConfiguration.java index 98c64a11..76bae4cf 100644 --- a/dyno-contrib/src/main/java/com/netflix/dyno/contrib/ArchaiusConnectionPoolConfigu...
5
4
0
[{"id": "G0", "claim": "The constant DEFAULT_LOCAL_DC_AFFINITY that initializes localZoneAffinity should be renamed to match the new zone/rack terminology (e.g. DEFAULT_LOCAL_ZONE_AFFINITY).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new...
null
Netflix__dyno__122
Netflix/dyno
122
defect
00551e7c70598556b6466b9eaf175a8b8642de79
6612b9dc897c3299f4654fb361dabd06b908eaea
Dual-Write functionality
Also fixed a host status tracker bug that kept inactive hosts around indefinitely even though the HostSupplier has stopped reporting them.
diff --git a/dyno-core/src/main/java/com/netflix/dyno/connectionpool/ConnectionPool.java b/dyno-core/src/main/java/com/netflix/dyno/connectionpool/ConnectionPool.java index 32961f00..1d43dd2c 100644 --- a/dyno-core/src/main/java/com/netflix/dyno/connectionpool/ConnectionPool.java +++ b/dyno-core/src/main/java/com/netfl...
3
1
0
[{"id": "G0", "claim": "Rename the new ConnectionPool method isIdle() to isIdleShadow() if it is intended only for the shadow pool of the primary cluster, since it may not apply to both pools.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Explain, with a ...
null
Netflix__dyno__153
Netflix/dyno
153
defect
cb088729253a0a4cdae7e40503e3a3fa3fc1af46
781a84ac17fd89d63c53a0d2fa457784c215f44c
Regression Bug Fix: Host object equality contract changed
The `equals()` and `hashcode()` contract changed to include all fields of the object which broke the token aware load balancer initialization. Unfortunately the breakage is very subtle; no errors are reported however the resulting topology is completely broken. I did not revert the breaking change; this set of changes...
diff --git a/dyno-core/src/main/java/com/netflix/dyno/connectionpool/Host.java b/dyno-core/src/main/java/com/netflix/dyno/connectionpool/Host.java index b757d6b3..b3b55c04 100644 --- a/dyno-core/src/main/java/com/netflix/dyno/connectionpool/Host.java +++ b/dyno-core/src/main/java/com/netflix/dyno/connectionpool/Host.ja...
2
1
1
[{"id": "G0", "claim": "In testParseJson the hostList fixture gives host ec2-54-80-65-203 the rack us-east-1c when it should be us-east-1e, as the JSON token map and the validateHostToken assertion for hTokens.get(3) expect.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ...
null
Netflix__dyno__168
Netflix/dyno
168
defect
5f275b6c1f84ce2080b09be352b69d1f4996e0df
52195c87a1659b5ec640821cc52a1b24bc714a63
Implement mget
This patch adds support for mget in the client. It doesnt do the real "scatter gather" of mget yet.
diff --git a/dyno-core/src/test/java/com/netflix/dyno/connectionpool/impl/lb/TokenMapSupplierTest.java b/dyno-core/src/test/java/com/netflix/dyno/connectionpool/impl/lb/TokenMapSupplierTest.java index f6786c09..0c17a791 100644 --- a/dyno-core/src/test/java/com/netflix/dyno/connectionpool/impl/lb/TokenMapSupplierTest.ja...
5
4
2
[{"id": "G0", "claim": "mget was implemented without compression support, so with the compression feature enabled mget does not work and values written compressed cannot be read back through it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new...
null
Netflix__dyno__178
Netflix/dyno
178
defect
9a56ca416ee6f6f449db99d1929edf681f98eaf2
b29202ac2ef4deada6f34686f2fdf13413a94c1b
Feature/consul support test
Forked off of tiodollar:consul_support and added an integration test by instantiating an embedded Consul server. Netflix/dyno#162 Rebased against the latest on master (Netflix/dyno@9a56ca416ee6f6f449db99d1929edf681f98eaf2)
diff --git a/build.gradle b/build.gradle index 2c912b57..41da8a15 100644 --- a/build.gradle +++ b/build.gradle @@ -62,6 +62,11 @@ project(':dyno-contrib') { compileApi "com.netflix.archaius:archaius-core:0.7.5" compileApi "com.netflix.servo:servo-core:0.12.16" compileApi 'com.netflix.eureka:e...
2
1
0
[{"id": "G0", "claim": "The three-arg constructor AbstractTokenMapSupplier(int port,String localZone,String localDatacenter) added by this pull request is not used anywhere in it (the reviewer asks where it is used).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id...
null
Netflix__dyno__202
Netflix/dyno
202
defect
21fe6ed51958afb44c0686c8f83272bd560a402b
c4ed2e7242d28f926c9f953eeabe5a836bfb50a8
Support for configurable Dynomite port
Remove the Default port from host object and put it in connectionPoolConfiguration. The idea is to make the port configurable. All constructors of Host class take a port as parameter making it mandatory for the user to provide one. It is the responsibility of the HostSupplier and TokenMapSupplier to provide hosts wit...
diff --git a/dyno-contrib/src/main/java/com/netflix/dyno/contrib/ArchaiusConnectionPoolConfiguration.java b/dyno-contrib/src/main/java/com/netflix/dyno/contrib/ArchaiusConnectionPoolConfiguration.java index 91784b84..d8722210 100644 --- a/dyno-contrib/src/main/java/com/netflix/dyno/contrib/ArchaiusConnectionPoolConfigu...
3
2
0
[{"id": "G0", "claim": "Add a test that exercises a port other than the default, so the non-default port use case is covered.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The line `this.port = config.getPort();` uses tab indentation where the surround...
null
Netflix__dyno__205
Netflix/dyno
205
defect
555c1a92e62abbd5ee3a54f51c0b4e2ca8f25930
816aeca61f5b91c74a7031a8665d09416bb2657a
Use Hosts from Token Map Supplier
Previously we were taking the hosts from the HostSupplier and then using them to prime connections. The hosts from the tokenMapSupplier were only used later to initialize the selection strategy. However, the token map supplier is the real source of truth for all the information about hosts like its port, secure port...
diff --git a/dyno-core/src/main/java/com/netflix/dyno/connectionpool/Host.java b/dyno-core/src/main/java/com/netflix/dyno/connectionpool/Host.java index 36fd1201..9ecde973 100644 --- a/dyno-core/src/main/java/com/netflix/dyno/connectionpool/Host.java +++ b/dyno-core/src/main/java/com/netflix/dyno/connectionpool/Host.ja...
5
4
0
[{"id": "G0", "claim": "Update the HostSupplier Javadoc so it says the method returns a List, matching the changed List return type, instead of the now-inaccurate Collection wording.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The wildcard `imp...
null
Netflix__dyno__220
Netflix/dyno
220
defect
43080906123ce1e5f1975037386a8bd2a9310428
7c14649d8046ad8e8163cd0218878d20e745ebe6
Improve Scan operation reliability
Dyno does a scatter gather of scan operation on the shards in a given rack. However this failed if one of the node in the AZ went down and scan never recovered. Also If a node in the current AZ was down, scan would never finish since it would keep on hoping between the other two racks all the time. This fix does the fo...
diff --git a/dyno-core/src/main/java/com/netflix/dyno/connectionpool/ConnectionPool.java b/dyno-core/src/main/java/com/netflix/dyno/connectionpool/ConnectionPool.java index a0db7d12..de1f56fc 100644 --- a/dyno-core/src/main/java/com/netflix/dyno/connectionpool/ConnectionPool.java +++ b/dyno-core/src/main/java/com/netfl...
4
2
0
[{"id": "G0", "claim": "The reviewer asks when the new DynoException in scatterGatherScan can ever be thrown, i.e. whether there is any case where the cursor is not an instance of TokenRackMapper.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In th...
null
Netflix__dyno__244
Netflix/dyno
244
defect
7c5d22a8e1b47efbc0fcaca8cbd0d157c9661b70
b5adedbaeef1a57b59e0781d6c1c225fa523d0bb
Redis authentication support
Inspired by #187 I'm interested in deploying Conductor to an environment that mandates Redis authentication. I've followed a similar pattern as #187 for adding a `password` [field](https://github.com/Netflix/dyno/compare/master...davidwadden:redis-auth?expand=1#diff-8bf95e0cca7a2241e43ee9a278090157R50) to `Host.ja...
diff --git a/build.gradle b/build.gradle index 3673c6ac..8b4cb2b3 100644 --- a/build.gradle +++ b/build.gradle @@ -87,6 +87,7 @@ project(':dyno-jedis') { compile project(':dyno-core') compile project(':dyno-contrib') compile 'redis.clients:jedis:2.9.0' + testCompile 'com.netflix.spinna...
2
2
2
[{"id": "G0", "claim": "It would be useful to also add a test case showing failure to connect to a Redis server that requires auth when the client supplies no auth.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If embedded-redis doesn't work on Windows...
null
Netflix__dyno__248
Netflix/dyno
248
defect
58d88e2dd53ff430f200e096be86e5a1419ea3c8
2a1f7dc613f70c7b6cfb5a65f6d5b6e588121f8d
[WIP] Expire hash - Redis hash with ttl on fields.
[Sending this out for early feedback] With expire hash, timeouts can be set on the hash fields. Expire hash uses sorted sets to store timeouts on the hash fields and will purge the fields on expiry. ToDo: - Add testcases
diff --git a/build.gradle b/build.gradle index 8b4cb2b3..27576033 100644 --- a/build.gradle +++ b/build.gradle @@ -87,6 +87,7 @@ project(':dyno-jedis') { compile project(':dyno-core') compile project(':dyno-contrib') compile 'redis.clients:jedis:2.9.0' + compile 'org.projectlombok:lomb...
3
2
0
[{"id": "G0", "claim": "The local test settings (EC2_AVAILABILITY_ZONE, NETFLIX_ENVIRONMENT, dyno.demo.hashtag) should not be checked into the demo.properties file.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The repeated steps across the eh* fun...
null
Netflix__dyno__249
Netflix/dyno
249
defect
1135773e6fb0d77954514f356b024d785238e776
194d980a0386299e13468a5fdd101ca9fd0240e6
Recycle connections on JedisException and fix connection error tracking
- Recyle connection when a Jedis operation fails without closing the connection. Closing connections can result in pool exhaustion and higher borrow times. - If max connections per host was less than default threshold (10), then trackError() never reported error levels above threshold. So, changed S...
diff --git a/dyno-core/src/main/java/com/netflix/dyno/connectionpool/ConnectionPoolMonitor.java b/dyno-core/src/main/java/com/netflix/dyno/connectionpool/ConnectionPoolMonitor.java index 33ae1c8c..2e861ded 100644 --- a/dyno-core/src/main/java/com/netflix/dyno/connectionpool/ConnectionPoolMonitor.java +++ b/dyno-core/sr...
5
3
2
[{"id": "G0", "claim": "Recycling the connection inside the operation path may increase the operation's latency compared to failing and retrying the connection.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Removing the isDebugEnabled() guard aroun...
null
Netflix__dyno__267
Netflix/dyno
267
defect
158f807083ea8e9b09c8089cb07f98e954ad5b23
53eef8092e54df5aa9809723d12b6e60d44f8dd2
Update topology with remote rack info when LOCAL_RACK and EC2_AVAILABILITY_ZONE are not specified
When we do not set LOCAL_RACK and EC2_AVAILABILITY_ZONE we currently fall back to remote racks but do not update the topology to reflect the change.
diff --git a/dyno-core/src/main/java/com/netflix/dyno/connectionpool/impl/lb/HostSelectionWithFallback.java b/dyno-core/src/main/java/com/netflix/dyno/connectionpool/impl/lb/HostSelectionWithFallback.java index a62df901..50a580ad 100644 --- a/dyno-core/src/main/java/com/netflix/dyno/connectionpool/impl/lb/HostSelection...
3
3
1
[{"id": "G0", "claim": "The two-branch if added for remote racks should be simplified by removing the 'localRack != null' check so the same behavior is achieved in one if condition.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Adding the 'dataCenter ==...
null
Netflix__dynomite-manager__13
Netflix/dynomite-manager
13
defect
46e44c113daeeca1ea68214d3cb2c58e3d2b58eb
aae2b1f0a8d43a71d20a79d2fc06d56dbffaedeb
Added 32 Unit Tests for Dynomite Manager
@ipapapa @timiblossom - Added 32 Unit Tests for Dynomite Manager - Tests are run in Travis now - Remove not used imports and dependencies, code clean up Cheers, Diego Pacheco
diff --git a/build.gradle b/build.gradle index 82f5dc36..94d61e10 100644 --- a/build.gradle +++ b/build.gradle @@ -23,6 +23,17 @@ subprojects { apply plugin: 'nebula.provided-base' apply plugin: 'nebula.dependency-lock' + test { + testLogging { + events "passed", "skipped", "failed", "s...
4
1
0
[{"id": "G0", "claim": "The reviewer asks why validateCapacity(capacity) needs to be called in the FifoQueue constructor, questioning the purpose of the newly added capacity validation.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whe...
null
Netflix__dynomite-manager__21
Netflix/dynomite-manager
21
defect
188f45e0a5f39611eb78bad5f252bc74f15b5fca
786ee810a72b25e81afb9beb0d78f40f1c6d7177
Added more Unit Tests
@ipapapa - Added more Unit Tests - Removed imports which was not use - code clean up. Cheers, Diego Pacheco
diff --git a/build.gradle b/build.gradle index fda58489..5716e6b1 100644 --- a/build.gradle +++ b/build.gradle @@ -41,12 +41,14 @@ subprojects { } dependencies { + compile "org.yaml:snakeyaml:latest.release" + compile "com.google.inject:guice:3.0" compile "com.google.inj...
2
1
0
[{"id": "G0", "claim": "The reviewer questions whether wrapping the jersey dependency declarations in parentheses in build.gradle is needed, since it seems to divert from the standard formatting of the rest of the dependencies block.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "i...
null
Netflix__dynomite-manager__44
Netflix/dynomite-manager
44
defect
bc5556d4ae1268f35e2d641ee578918bbd4e454d
296d016d583b2c471451dcbf1492b4938740ec30
Add new configuration property for redis.conf.
1. Added a new property `DYNOMITEMANAGER_PRE + .redis.conf` to make the path to redis.conf configurable. 2. Other very minor formatting by applying the coding standard to a few files.
diff --git a/dynomitemanager/src/main/java/com/netflix/dynomitemanager/InjectedWebListener.java b/dynomitemanager/src/main/java/com/netflix/dynomitemanager/InjectedWebListener.java index de3d510f..9efcd638 100644 --- a/dynomitemanager/src/main/java/com/netflix/dynomitemanager/InjectedWebListener.java +++ b/dynomitemana...
2
1
1
[{"id": "G0", "claim": "Redis configuration constants should live in the storage engine implementation (RedisStorageProxy) rather than in DynomitemanagerConfiguration, so that adding storage engines does not require modifying everything across the board.", "category": "design", "verdict": "supported", "priority": "P1",...
null
Netflix__dynomite-manager__61
Netflix/dynomite-manager
61
defect
4d6e72acee70214512d38e690a4486fca6573682
5e3b7f1dccbe21159072a8b3fff78942bd78573d
Next round of Archaius updates
- additional properties now support Archaius - added test for each property - added env var for each property to override FP PR submitted for review. Please don't merge PR yet...I plan to add a few more commits to this PR in the morning.
diff --git a/dynomitemanager/src/main/java/com/netflix/dynomitemanager/defaultimpl/DynomiteManagerConfiguration.java b/dynomitemanager/src/main/java/com/netflix/dynomitemanager/defaultimpl/DynomiteManagerConfiguration.java index 965ae028..5dc11e6c 100644 --- a/dynomitemanager/src/main/java/com/netflix/dynomitemanager/d...
1
1
1
[{"id": "G0", "claim": "Renaming the FP (flat property) names, as this pull request does, may result in issues, so such renames need to be handled carefully for users.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Netflix__dynomite__301
Netflix/dynomite
301
defect
774ad9344fb9ba8ec5f4dd54f3cdde4d4f030ed9
d5aa235682d1e57a27e4a4f7784d406c3ec69bac
anti-entropy core code
This is the second part of the anti-entropy code. The main utility of the anti-entropy - Anti-entropy encryption is based on key and iv provided in .pem files. - epoll, kqueue, evport event loops for anti-entropy
diff --git a/conf/recon_iv.pem b/conf/recon_iv.pem new file mode 100644 index 000000000..ecbb0e635 --- /dev/null +++ b/conf/recon_iv.pem @@ -0,0 +1 @@ +01234567890123456 diff --git a/conf/recon_key.pem b/conf/recon_key.pem new file mode 100644 index 000000000..ecbb0e635 --- /dev/null +++ b/conf/recon_key.pem @@ -0,0 +1...
6
3
0
[{"id": "G0", "claim": "The added recon_iv_file field line in struct conf_pool is indented with a tab (extra/incorrect spacing) and should be aligned with the surrounding fields.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "conf_pool_transform...
null
Netflix__dynomite__370
Netflix/dynomite
370
defect
350268f34cdc656d83a71ef261e3c96af1759a33
12e54ab955afd131e1bcaa79761bbb70e35e35e2
Moving stats to YAML
This PR moves the information about the statistics from a command line argument to a single line YAML configuration.
diff --git a/conf/dynomite.yml.orig b/conf/dynomite.yml.orig deleted file mode 100644 index 33ab08668..000000000 --- a/conf/dynomite.yml.orig +++ /dev/null @@ -1,7 +0,0 @@ -dyn_o_mite: - listen: 127.0.0.1:8102 - dyn_listen: 127.0.0.1:8101 - tokens: '101134286' - servers: - - 127.0.0.1:22122:1 - data_store: 0 diff...
6
3
0
[{"id": "G0", "claim": "Move the CONF_STR_STATS_ADDR macro out of dyn_conf.h and into dyn_conf.c.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use a time type such as sec_t, msec_t or usec_t for the stats_interval field of struct conf_pool - o...
null
Netflix__dynomite__380
Netflix/dynomite
380
defect
d16b40c8bc9b1d9bfeed9184b4d6298f5eeb38f2
c7a0b1e248055cdf3d682513ac4a8d76b81861c5
Add new get state api, fix kqueue build error on Mac
Added a new API to get the current state of Dynomite. ```bash curl http://localhost:22222/state/get_state ``` Also, fixed the kqueue build error on Mac. And lastly, updated `build.sh` to find the ssl libs on a Mac.
diff --git a/build.sh b/build.sh index 9c6afbacf..3d6915fb8 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,29 @@ #!/bin/bash -sudo autoreconf -fvi; +# +# Dear Mac user, remember to setup your development environment. Install XCode +# then run the following commands: +# +# xcode-select --install +# brew install cmak...
1
1
0
[{"id": "G0", "claim": "The new /state get_state command should also be added to the help output (curl -s http://localhost:22222/help).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__dynomite__393
Netflix/dynomite
393
defect
74d1173e249f0ad16d1b432df36742b69b41bc79
f1ba9a59365cbc4d1294287bfa8ae2075f2aa164
Single connection to datastore and peer
* Having multiple connections to server and spraying messages will corrupt data, unless there is a good mapping of client connections to datastore connections etc * Get ride of server_connections option in YAML (deprecated) * rename dyn_state to dyn_parse_state where appropriate
diff --git a/README.md b/README.md index 3a309043c..03a7e719f 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,6 @@ Dynomite can be configured through a YAML file specified by the -c or --conf-fil + **timeout**: The timeout value in msec that we wait for to establish a connection to the server or receive a response...
3
3
1
[{"id": "G0", "claim": "The new single-connection peer code (the ASSERT in dnode_peer_ref) should be tested by running Dynomite in debug mode.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The logging calls should be made consistent through wrapper fun...
null
Netflix__dynomite__402
Netflix/dynomite
402
defect
40bc4f4ed679224e70b5eb8da1f50e735726d0ea
6a40b7fc793f54b7f7019991881e4da56138c5fb
Better Error handling during request forwarding
This is an important patch that sort of redesigns some of the APIs used by the coordinator. The general idea is to propagate errors back so that the higher layers can act accordingly. The errors are of two types: rstatus which talks about overall operation failure and dyn_error_code which is a more precise error code...
diff --git a/src/dyn_client.c b/src/dyn_client.c index 104364ff4..8f7c090cd 100644 --- a/src/dyn_client.c +++ b/src/dyn_client.c @@ -651,9 +651,10 @@ admin_local_req_forward(struct context *ctx, struct conn *c_conn, struct msg *re local_req_forward(ctx, c_conn, req, key, keylen); } -void +rstatus_t remote_req_...
2
2
0
[{"id": "G0", "claim": "There is no reason for remote_req_forward to return rstatus_t while the higher level function is void — the callers ignore the returned status.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The return value of local_req_forward i...
null
Netflix__dynomite__440
Netflix/dynomite
440
defect
60fafdb26d15381878844a86271ae03f659a43d2
6192f82c180a6282fbd9146067f94cf649c48153
Connection cleanup
* Move static internal functions to dyn_connection_internal.c * Make object printing more generic * reduce 4 conn_get_* apis into one conn_get * Move cleanup_charptr to a .c and reduce warnings by 50
diff --git a/src/Makefile.am b/src/Makefile.am index 249de3d04..3a047a21c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -38,6 +38,7 @@ dynomite_SOURCES = \ dyn_client.c dyn_client.h \ dyn_conf.c dyn_conf.h \...
3
1
0
[{"id": "G0", "claim": "The new file src/dyn_connection_internal.c carries a Twemproxy copyright/license block that is not needed because the code is new and not from Twemproxy, so it should be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
Netflix__dynomite__490
Netflix/dynomite
490
defect
fdf19a5124f15a74f346cc2c5f93e23f02f399e0
57312197eab81d0bec471c3130d1a940eea26c1f
reduce compiler warnings
no major changes just added some typecasts etc wherever necessary tried to change some variable types where appropriate reduced some logging levels that I accidentally bumped up Simplified some logic in receiving encrypted data Took care of some shadow declarations. Overall the new code is fairly warning free. T...
diff --git a/src/dyn_client.c b/src/dyn_client.c index e7d41f011..fb9af64e6 100644 --- a/src/dyn_client.c +++ b/src/dyn_client.c @@ -383,6 +383,7 @@ req_filter(struct context *ctx, struct conn *conn, struct msg *req) return false; } +/* static void send_rsp_integer(struct context *ctx, struct conn *c_conn, st...
3
2
0
[{"id": "G0", "claim": "core_print_peer_status should not reschedule itself every 30 seconds as a periodic task, because it produces excessive logging (why don't we need this task anymore?).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Narrowing...
null
Netflix__dynomite__536
Netflix/dynomite
536
defect
91f30f858fef6db1e5cc80acf59d29e4ff1936a8
bd22096ecf6d2ba09cf60f28741cafe758da1266
Treat generated AES key as an array
Due to a possibility of '\0' inside generated AES key we can't use "str-family" functions on key processing (e.g. strlen, strncpy etc.) and should treat key as an array. Otherwise, in some cases we get an error in dyn_aes_decrypt() routine ("Bad data in EVP_DecryptFinal_ex, crypto data with XX bytes of data").
diff --git a/src/dyn_connection_internal.c b/src/dyn_connection_internal.c index ba26c0d94..ebf4d9404 100644 --- a/src/dyn_connection_internal.c +++ b/src/dyn_connection_internal.c @@ -143,8 +143,12 @@ _conn_get(void) conn_set_write_consistency(conn, g_write_consistency); conn->type = CONN_UNSPECIFIED; + ...
2
2
1
[{"id": "G0", "claim": "In _conn_get(), the connection leaks when generate_aes_key() returns NULL: the early return added by this pull request should free conn before returning.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Perhaps the AES key shou...
null
Netflix__eureka__1237
Netflix/eureka
1,237
defect
9d07ac4aaba90876d89a691521c128c9c59bcce8
ce287788cafcb7eaf54fa2aedd920b7231bf809b
Optimized CircularQueue by using ArrayBlockingQueue with constant time size implementation
Since `AbstractInstanceRegistry` already have synchronization on `recentRegisteredQueue` and `recentCanceledQueue` it's safe to change `CircularQueue` implementation to extend `LinkedList` with constant time `size()`. Benchmark: ``` import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations....
diff --git a/eureka-core/src/main/java/com/netflix/eureka/registry/AbstractInstanceRegistry.java b/eureka-core/src/main/java/com/netflix/eureka/registry/AbstractInstanceRegistry.java index 203e2bd06b..7eea93240a 100644 --- a/eureka-core/src/main/java/com/netflix/eureka/registry/AbstractInstanceRegistry.java +++ b/eurek...
3
3
2
[{"id": "G0", "claim": "Removing the `offer` override leaves the base unbounded insert methods exposed, breaking the invariant that every write operation on CircularQueue is size-bounded; the reviewer wants the override kept because otherwise one can use the base method, creating an opportunity for a bug.", "category":...
null
Netflix__eureka__1251
Netflix/eureka
1,251
defect
743af8be0fa37118a3a9ee0d39f3ba8a89621119
13d0ca66d0d3d59f810dc36a73a91e2cafe78fee
Cleanup resources on web-app shutdown (#1207)
In order to allow a clean shutdown, I canceled various timers and unregistered a number of Servo monitors. The `CurrentRequestVersion` got a `remove` method so that the `ThreadLocal` can be cleared after use. The (in my opinion) only ugly solution is `ServoControl` which stops the executor of Servo since the library...
diff --git a/eureka-client/src/main/java/com/netflix/discovery/DiscoveryClient.java b/eureka-client/src/main/java/com/netflix/discovery/DiscoveryClient.java index f7c61a3546..9f562a261c 100644 --- a/eureka-client/src/main/java/com/netflix/discovery/DiscoveryClient.java +++ b/eureka-client/src/main/java/com/netflix/disc...
2
1
0
[{"id": "G0", "claim": "The test helper containsJerseyThread is worth renaming now that the pull request makes it check Apache-HttpClient cleaner threads too.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The CurrentRequestVersion.remove() call...
null
Netflix__eureka__1275
Netflix/eureka
1,275
defect
cefadab13ef8ddfa2d702cd07ad9a4a393ff94f4
3c992ccd8677358bdafaba3dde4f9487f0573431
Broadcast public ipv4 addresses on override
This is a quick and dirty PR to get Eureka to return public ipv4 addresses when overriden by a new config flag `broadcastPublicIpv4`. However, it doesn't fundamentally alter the behavior of `resolveDefaultAddress` as part of this change. /cc @drobertduke
diff --git a/eureka-client/src/main/java/com/netflix/appinfo/AbstractInstanceConfig.java b/eureka-client/src/main/java/com/netflix/appinfo/AbstractInstanceConfig.java index e723a321e7..ccf5ee1ea4 100644 --- a/eureka-client/src/main/java/com/netflix/appinfo/AbstractInstanceConfig.java +++ b/eureka-client/src/main/java/c...
3
3
1
[{"id": "G0", "claim": "shouldBroadcastPublicIpv4Addr() does not need to go into the public EurekaInstanceConfig API; it could live in PropertiesInstanceConfig and be used by CloudInstanceConfig without being added to the interface.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
Netflix__eureka__1282
Netflix/eureka
1,282
defect
615448d12f21f219ee4e52f640159c45c8b587fe
b64430a19a24d28f0bcbb035e9c1d52507592ed1
Add stats for DiscoveryClient
We introduce a nested class for `DiscoveryClient` to make it easier for users to read helpful attributes that can assist in log analysis and debugging. Most of these attributes are captured by existing metrics: * `initTimestampMs`: timestamp when the client was initialized * `localRegistrySize`: number of instances...
diff --git a/eureka-client/src/main/java/com/netflix/discovery/DiscoveryClient.java b/eureka-client/src/main/java/com/netflix/discovery/DiscoveryClient.java index 9f562a261c..a24ac14c8d 100644 --- a/eureka-client/src/main/java/com/netflix/discovery/DiscoveryClient.java +++ b/eureka-client/src/main/java/com/netflix/disc...
1
1
0
[{"id": "G0", "claim": "The Stats getter names should include the unit (initTimestampMs) and drop the redundant is prefix (initSucceeded) so the stat API is unambiguous and consistent.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__eureka__1307
Netflix/eureka
1,307
defect
6d7a1e126a9a4e329584235a56be8b2246e07e36
2b64ca6a54f997361c70e278f4ee3d115b0bea05
Add shouldEnforceFetchRegistryAtInit config
We add a `shouldEnforceFetchRegistryAtInit` configuration to support users that want the Eureka client to fail fast during initialization. If `shouldEnforceFetchRegistryAtInit` is set to `true` then the client will throw an `IllegalStateException` during instance construction if its initial attempt to fetch of informat...
diff --git a/eureka-client-archaius2/src/main/java/com/netflix/discovery/EurekaArchaius2ClientConfig.java b/eureka-client-archaius2/src/main/java/com/netflix/discovery/EurekaArchaius2ClientConfig.java index 79251b8fce..8b54cbb5d0 100644 --- a/eureka-client-archaius2/src/main/java/com/netflix/discovery/EurekaArchaius2Cl...
1
1
1
[{"id": "G0", "claim": "The initialization logic in DiscoveryClient's constructor is inverted: it fetches from the backup registry even when the primary fetch succeeds, and the reviewer asks for the nested flow of fetch, then on failure log at info, fetch from backup, and on continued failure log a detailed message and...
null
Netflix__eureka__1569
Netflix/eureka
1,569
defect
f4c8ed1d3f1f24d6a3aac653af489e1c2984a659
1b0d75d559227b47d2686d2fea434416e551cbe9
Check current instance status before update.
This is related to https://github.com/spring-cloud/spring-cloud-netflix/issues/4094 as an attempted fix.
diff --git a/eureka-client/src/main/java/com/netflix/appinfo/ApplicationInfoManager.java b/eureka-client/src/main/java/com/netflix/appinfo/ApplicationInfoManager.java index f3d72fba94..71a7c70887 100644 --- a/eureka-client/src/main/java/com/netflix/appinfo/ApplicationInfoManager.java +++ b/eureka-client/src/main/java/c...
2
1
1
[{"id": "G0", "claim": "The new setStatus(expected, status) should skip the update and return null on a status mismatch (e.g. a race condition), like the pre-existing method, instead of throwing IllegalArgumentException, since crashing the app whenever a race condition is detected while updating the instance status is ...
null
Netflix__eureka__1613
Netflix/eureka
1,613
defect
cfe16ad24d5201adbff256483fe336dd685b1be0
a09491125b47da3b91bdc74b05a671c2981d8360
perf: Optimize Applications refresh internals
A few changes bundled here since they overlap in `Applications.java`. (1) In 3d27645 the parsing of comma-delimited VIP is optimized to bypass the single-vip case, which is >90% of vips, and for multi-vip case we avoid allocation of an extra String[] array. (2) In cd4c409 we special-case to avoid allocations for ...
diff --git a/eureka-client/build.gradle b/eureka-client/build.gradle index d540112857..514d9e6267 100644 --- a/eureka-client/build.gradle +++ b/eureka-client/build.gradle @@ -15,6 +15,7 @@ dependencies { api "com.netflix.spectator:spectator-api:${spectatorVersion}" api "org.slf4j:slf4j-api:${slf4jVersion}" ...
4
4
1
[{"id": "G0", "claim": "Avoid adding the new guava dependency to eureka-client (the linked blog post shows the map-initialization idiom can be done without it).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add tests covering the addInstanceToMap vipAdd...
null
Netflix__eureka__1616
Netflix/eureka
1,616
defect
e17779d4bf8bdc7d939a7a26c272a5161f21b99c
83ac92bdf74329ec57d8d29d5f4914e92a5d5ba9
backport - feat: Add metrics to count VIP address lookups in DiscoveryClient
This adds simple counter metrics for the numerous discovery lookup calls a client may issue. backport of #1621
diff --git a/eureka-client/src/main/java/com/netflix/discovery/DefaultEurekaClientConfig.java b/eureka-client/src/main/java/com/netflix/discovery/DefaultEurekaClientConfig.java index 10f92dcbd..f54644b1c 100644 --- a/eureka-client/src/main/java/com/netflix/discovery/DefaultEurekaClientConfig.java +++ b/eureka-client/sr...
2
2
1
[{"id": "G0", "claim": "Why add a new SpectatorUtil.counter(name, String... tags) overload instead of using the existing counter method?", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instrumenting only getInstancesByVipAddress may be too narrow because ...
null
Netflix__eureka__683
Netflix/eureka
683
defect
78879febc37c38e33958c35f3a66c6ae2e9bdec0
19d9197feb6a3134e29282b1ed6e0f97cc54a618
Various updates for refactorings/transport
- update staleness monitor levels if registry fetch never worked - Provide a mechanism to use new transport with bootstrap servers for query - Tune down some logging
diff --git a/eureka-client/src/main/java/com/netflix/discovery/DiscoveryClient.java b/eureka-client/src/main/java/com/netflix/discovery/DiscoveryClient.java index d7aed1d8e9..5a8e73aaf2 100644 --- a/eureka-client/src/main/java/com/netflix/discovery/DiscoveryClient.java +++ b/eureka-client/src/main/java/com/netflix/disc...
1
1
0
[{"id": "G0", "claim": "The getGauges() method added to ThresholdLevelsMetric has no usage anywhere in this PR and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__eureka__716
Netflix/eureka
716
defect
a71859fd01ead12b7cfc9f3876989e7409796797
7de43a8c650308a43982231869f78992644424f2
1.x Client InstanceInfo default address resolution
Adding ability to define resolution order of the local InstanceInfo's "default" network address based on data available in AmazonInfo.
diff --git a/eureka-client-archaius2/src/main/java/com/netflix/discovery/Ec2EurekaArchaius2InstanceConfig.java b/eureka-client-archaius2/src/main/java/com/netflix/discovery/Ec2EurekaArchaius2InstanceConfig.java index 0c4c5b7118..506acde2e6 100644 --- a/eureka-client-archaius2/src/main/java/com/netflix/discovery/Ec2Eure...
1
1
1
[{"id": "G0", "claim": "The PR should justify or drop the new InstanceInfo.getDefaultAddress() accessor, since as written it just returns hostName like the existing getter.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Netflix__eureka__749
Netflix/eureka
749
defect
e49d9236be6a1595fb60767252a185259012eb1b
9f6b89c56e092864124a44668e2357430bdc1002
New EurekaEventListener API
Introduce a new EurekaEventListener API for getting EurekaClient state change notification. This API is cleaner than forcing the Netflix EventBus on users of EurekaClient.
diff --git a/eureka-client/src/main/java/com/netflix/discovery/AbstractEurekaEvent.java b/eureka-client/src/main/java/com/netflix/discovery/AbstractEurekaEvent.java new file mode 100644 index 0000000000..74abc8ead7 --- /dev/null +++ b/eureka-client/src/main/java/com/netflix/discovery/AbstractEurekaEvent.java @@ -0,0 +1...
4
4
3
[{"id": "G0", "claim": "CacheRefreshedEvent's toString should print the timestamp attribute the event already carries instead of the empty \"CacheRefreshedEvent[]\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If the registerEventListener met...
null
Netflix__eureka__784
Netflix/eureka
784
defect
1e1e1c83941f4e9ee68d273fdb6fd0ff4af5e45f
bf6aa56945abbb3c067f6c4ae492fbe5f95bf489
Support healthy status on server StatusInfo
When one of the replicas is down the eureka server status should reflect that in the healthy flag on `StatusInfo` and `/eureka/v2/status` endpoint.
diff --git a/eureka-core/src/main/java/com/netflix/eureka/DefaultEurekaServerConfig.java b/eureka-core/src/main/java/com/netflix/eureka/DefaultEurekaServerConfig.java index 281f1966bd..b625f81164 100644 --- a/eureka-core/src/main/java/com/netflix/eureka/DefaultEurekaServerConfig.java +++ b/eureka-core/src/main/java/com...
4
4
3
[{"id": "G0", "claim": "Marking the server unhealthy whenever a peer replica is down reports incorrect information, because eureka is designed to keep operating with down replicas, so isHealthy should reflect the local server rather than peer state.", "category": "correctness", "verdict": "supported", "priority": "P1",...
null
Netflix__falcor__611
Netflix/falcor
611
defect
cb30d2f5a2abb779e366e6f13005aa5f56ee697a
ae4d760acb15ead649705ca3e203f24ddc7f0b33
Fixes errorSelector bugs.
a. errorSelector was not being invoked for branches/replaced nodes during merges. It was only invoked on new leaf insertion. b. errorSelector was being called with truncated paths. This impacted both sets, and merges from the datasource response. _NOTE_. This should not be merged yet. Unit tests coming. Wanted ...
diff --git a/lib/support/mergeJSONGraphNode.js b/lib/support/mergeJSONGraphNode.js index 230e4f76..36bffb24 100644 --- a/lib/support/mergeJSONGraphNode.js +++ b/lib/support/mergeJSONGraphNode.js @@ -15,6 +15,7 @@ var insertNode = require("./../support/insertNode"); var expireNode = require("./../support/expireNode"); ...
1
1
0
[{"id": "G0", "claim": "set relies on mutating the input with `index`, which will have to change at some point, though it can be relied on for now.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__falcor__897
Netflix/falcor
897
defect
84ddff7cae833735307ddeba61152367b9455b31
28edebf2a236dabbc8b34beda49d91247db4978f
partial request deduping
update: pull request is ready for review and merging! all edge cases covered. update: pull request is up for review now. all edge case bugs fixed. adding some tests now. dedupes 2 major cases: paths followed via refs in cache, and paths with ranges in the end pull request is still in progress, but still want t...
diff --git a/.eslintrc b/.eslintrc index 206c7105..d7ed3688 100644 --- a/.eslintrc +++ b/.eslintrc @@ -78,7 +78,7 @@ "no-throw-literal": [ 2 ], "no-unused-expressions": [ 2 ], - "no-warning-comments": [ 1 ], + "no-warning-comments": [ 0 ], "no-with": [ 2 ], "radix": [...
1
1
0
[{"id": "G0", "claim": "In the test helper LocalDataSource, missing/undefined wait should indicate no wait (making the member optional) rather than using false as the no-wait sentinel with 0 meaning setTimeout(0).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__genie__1245
Netflix/genie
1,245
defect
cb6dc39bfa3a01cbf036ed5268fc02b8101c503c
8938c32726a379fefef4e124ece047d50549f568
Genie Web SBN3 Minor Fixes
This PR is created to -- 1. handle IllegalStateException of S3AttachmentServiceImpl. The issue is that for large attachment files, `inputStream.available()` can be smaller than the content length of the file to upload and accordingly causes IllegalStateException. This PR is to replace `inputStream.available()` with ...
diff --git a/genie-web/src/main/java/com/netflix/genie/web/apis/rest/v3/controllers/JobRestController.java b/genie-web/src/main/java/com/netflix/genie/web/apis/rest/v3/controllers/JobRestController.java index 189b751fc5..cd6649d643 100644 --- a/genie-web/src/main/java/com/netflix/genie/web/apis/rest/v3/controllers/JobR...
2
1
0
[{"id": "G0", "claim": "Questions whether the non-idiomatic /*package-private*/ pseudo-comment added before copyResponseHeaders is needed, implying it should be dropped or replaced with something cleaner.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
Netflix__genie__738
Netflix/genie
738
defect
62a15a09703f7434661433e009c105380164955c
12cdb52c019a1986134a198ac8808dcb288d3cfe
Exponential backoff for for job completion check (#733 cherry pick)
This is a cherry-pick of https://github.com/Netflix/genie/pull/733
diff --git a/genie-docs/src/docs/asciidoc/_properties.adoc b/genie-docs/src/docs/asciidoc/_properties.adoc index 9002b9f7811..f7dc989ebed 100644 --- a/genie-docs/src/docs/asciidoc/_properties.adoc +++ b/genie-docs/src/docs/asciidoc/_properties.adoc @@ -143,6 +143,18 @@ to work. |The maximum number of active jobs a use...
1
1
1
[{"id": "G0", "claim": "The newly documented property names (genie.jobs.completionCheckBackOff.minInterval / maxInterval / factor) should be changed to kebab-case, since Genie 4 builds on Boot 2 whose relaxed binding no longer allows camelCase in non-leaf nodes of the property path.", "category": "design", "verdict": "...
null
Netflix__genie__772
Netflix/genie
772
defect
99a11d0a562bb73da39900ae7c94c3d19e8a9f9d
2b4c55aa313a606c21a8161b94f2c7f9ee3c3b1a
Handle v4 job kill request forwarding
First draft for forwarding v4 job kill request to the right genie box. No tests added yet. Trying to get an early feedback on design.
diff --git a/genie-web/src/main/java/com/netflix/genie/web/controllers/JobRestController.java b/genie-web/src/main/java/com/netflix/genie/web/controllers/JobRestController.java index 160105c6bfc..3627eb68bec 100644 --- a/genie-web/src/main/java/com/netflix/genie/web/controllers/JobRestController.java +++ b/genie-web/sr...
10
9
1
[{"id": "G0", "claim": "It would be nice if the new owner service could also be reused to route requests for logs, and if the design covers that the author should flesh it out.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The semantics of a JobOwnerServi...
null
Netflix__genie__805
Netflix/genie
805
defect
5111f3137bb6d78bfda9d1ca5ef81c8cf8281fbd
22de80322f27956caa4108f5684fbfa7a47c34ab
Remove EC2 local hostname as option for hostname resolution
In discussions with people it is preferred to just use the internal EC2 IP address to avoid other potential issues. Now we'll just use the IPV4 address and fallback to whatever can be found from InetAddress.getHostname otherwise. This will behave similar to Genie 3.x now.
diff --git a/genie-web/src/main/java/com/netflix/genie/web/configs/aws/GenieAwsApiAutoConfiguration.java b/genie-web/src/main/java/com/netflix/genie/web/configs/aws/GenieAwsApiAutoConfiguration.java index bb2a051ebde..fac98c7f139 100644 --- a/genie-web/src/main/java/com/netflix/genie/web/configs/aws/GenieAwsApiAutoConf...
2
1
1
[{"id": "G0", "claim": "The reviewer asks whether the hostname resolution still works on non-EC2 hosts such as Jenkins after removing the EC2 local hostname option.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer requests a unit test tha...
null
Netflix__genie__895
Netflix/genie
895
defect
1a022f8bc7b72d18c22a9b223590a71d6e84c5eb
45e5c04d8e47e4363401fc72c24f9900b10d8f0a
More work towards local job runs via agent
Much of this PR is work towards being able to launch a job locally on Genie hardware using the agent instead of the old V3 logic. It's still groundwork and isn't hooked up to the actual API yet. The primary change here, and why this is a PR now, is changing how arguments are parsed on a V3 job submission. The agent ...
diff --git a/genie-web/src/integTest/java/com/netflix/genie/web/data/services/jpa/JpaJobSearchServiceImplIntegrationTest.java b/genie-web/src/integTest/java/com/netflix/genie/web/data/services/jpa/JpaJobSearchServiceImplIntegrationTest.java index 1b6b74eaf1f..dc31c96f0a9 100644 --- a/genie-web/src/integTest/java/com/ne...
1
1
1
[{"id": "G0", "claim": "getUsedMemoryOnHost should count memory for jobs in states active after CLAIMED (e.g. CLAIMED and INIT), not only RUNNING, when totalling used memory on a host.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Netflix__genie__912
Netflix/genie
912
defect
80e3cd91402835bfc25f0428ddcb755aa1805d2b
283373f015923042ffd44d19d40062239417fc0f
Accept Command 'executable' field as tokenized array
- Update V3 API so that 'executable' can be sent as array of strings (while retaining backward compatibility with existing clients and agent) - Update gRPC protocol between server and agent protocol to send executable and its arguments separately from user-provided, job-specific arguments
diff --git a/genie-common/src/main/java/com/netflix/genie/common/dto/Command.java b/genie-common/src/main/java/com/netflix/genie/common/dto/Command.java index 3ffec31bac5..e1794457e19 100644 --- a/genie-common/src/main/java/com/netflix/genie/common/dto/Command.java +++ b/genie-common/src/main/java/com/netflix/genie/com...
3
3
1
[{"id": "G0", "claim": "Each element of the new executableAndArguments list should carry @Size(max = 1024) since arguments can be up to 1024 characters in the database, and the member should follow the ImmutableList-with-List-getter convention used in the other DTOs.", "category": "correctness", "verdict": "supported",...
null
Netflix__genie__980
Netflix/genie
980
defect
0ff1a3a6260621c5061955752f7007cbabf4880a
0b6448c6e7783a26d1e4513e462a5845319a38b6
Track agent connections using Curator's Service Discovery
* Generalize Zookeeper Leader properties for other uses of Zookeeper * Split out Zookeeper components into a new AutoConfiguration * Implement AgentRoutingService on top of Curator's Service Discovery * Remove AgentMetricsService N.B.: this PR does not remove the database-based routing service (and related p...
diff --git a/genie-docs/src/docs/asciidoc/_properties.adoc b/genie-docs/src/docs/asciidoc/_properties.adoc index 33651f957d5..123a9a550ad 100644 --- a/genie-docs/src/docs/asciidoc/_properties.adoc +++ b/genie-docs/src/docs/asciidoc/_properties.adoc @@ -567,7 +567,7 @@ to the number of CPU cores x 2 + 1 |30000 |no -...
3
1
0
[{"id": "G0", "claim": "The whole ZookeeperAutoConfiguration should perhaps be conditional on the presence of a CuratorFramework bean.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test methods' javadoc comments in ZookeeperAutoConfigurationTest are...
null
Netflix__genie__986
Netflix/genie
986
defect
115f55a3954e73ac54cd98451d52ae863eacaf7e
ee409e95e14d4e9623d60778e79433fba3717fdc
Separate timeouts for starting vs. disconnected agent jobs
Separate the two cases of * Agent not yet started (job in unclaimed state) * Agent started then disconnected (job in active/claimed state) and allow setting different timeout values for the two.
diff --git a/genie-docs/src/docs/asciidoc/_properties.adoc b/genie-docs/src/docs/asciidoc/_properties.adoc index de93156c91e..4edaccf38f1 100644 --- a/genie-docs/src/docs/asciidoc/_properties.adoc +++ b/genie-docs/src/docs/asciidoc/_properties.adoc @@ -425,13 +425,18 @@ of 2.0 |true |no +|genie.tasks.agent-cleanup....
3
3
0
[{"id": "G0", "claim": "The new canGetUnclaimedAgentJobs test should use its own scoped DatabaseSetup file instead of sharing search.xml, so adding it does not force updating the record counts asserted by the other test methods.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introd...
null
Netflix__go-expect__2
Netflix/go-expect
2
defect
f880c1cb49b8e8184f04a9af6046276ef0cedf2a
63d8fbe83e1d876a83cc74d87f3d01c0fa62d506
Add ability to observe expect/send errors. Useful for testing.
We need a way to observe the success/failures of Expect/Send operations for testing. I think the observer pattern will work well for this. I added two more With ConsoleOpts to allow users to register callbacks on Expect results and Send results. I have also modified all the tests to assert that there are no failure...
diff --git a/console.go b/console.go index 81cf73a..a9c758f 100644 --- a/console.go +++ b/console.go @@ -43,11 +43,27 @@ type ConsoleOpt func(*ConsoleOpts) error // ConsoleOpts provides additional options on creating a Console. type ConsoleOpts struct { - Logger *log.Logger - Stdins []io.Reader - Stdouts []io.Wri...
2
1
0
[{"id": "G0", "claim": "golint reports that expect.ExpectObserver stutters with the package name and suggests considering a name like Observer, and the author asks whether there are other naming suggestions.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
Netflix__go-expect__9
Netflix/go-expect
9
defect
f21e40e367fa7869d153778d7ba0e55fda862b9a
8881e7a57788daace47a7af9cd4a729c6ebfd33b
send all missed expect matchers to the observers when there is an error.
When there is an error currently the observers will not get the matchers that were attempting to match when we get an error. The scenario is that we have a mismatch and get an EOF error, at that point we lose the context for what we were attempting to match when we got the EOF. This change modifies the observer int...
diff --git a/console.go b/console.go index deb9ffd..35c97dc 100644 --- a/console.go +++ b/console.go @@ -56,10 +56,11 @@ type ConsoleOpts struct { // ExpectObserver provides an interface for a function callback that will // be called after each Expect operation. -// matcher will be the Matcher that matched the buff...
3
3
1
[{"id": "G0", "claim": "When matcher is nil (e.g. a ReadDeadline timeout), the observer should still be passed options.Matchers and the remaining buffer so it can see what was being attempted to match at the time of the error.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
Netflix__governator__110
Netflix/governator
110
defect
c7d42fcefddfaca3f5946812501a543f31b0244b
875f27040334be3e43669abb6ca2f55be232940f
Add object configuration injection to governator.
This works by adding a getObjectSupplier() to ConfigurationProvider method that deserializes a String property into an object. This should resolve issue #74
diff --git a/src/main/java/com/netflix/governator/configuration/AbstractObjectConfigurationProvider.java b/src/main/java/com/netflix/governator/configuration/AbstractObjectConfigurationProvider.java new file mode 100644 index 00000000..b7f5971c --- /dev/null +++ b/src/main/java/com/netflix/governator/configuration/Abst...
3
2
0
[{"id": "G0", "claim": "The logger field in AbstractObjectConfigurationProvider should be declared private static final instead of a private final instance field.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The redundant 'implements ConfigurationProvi...
null
Netflix__governator__124
Netflix/governator
124
defect
43acbec3813151505494c0e4d523a7c292dd004b
8bd0b44c98be03082bbbe37511a019d12a530634
Implementation for #123 - LifecycleInjectorBuilder hooks
Also provided some filters/actions based on the guice wiki. Moved the DEVELOPMENT mode singleton creation to the post injector actions.
diff --git a/governator-core/src/main/java/com/netflix/governator/guice/LifecycleInjector.java b/governator-core/src/main/java/com/netflix/governator/guice/LifecycleInjector.java index 5ea0c678..4be542b3 100644 --- a/governator-core/src/main/java/com/netflix/governator/guice/LifecycleInjector.java +++ b/governator-core...
1
1
0
[{"id": "G0", "claim": "Rename the `filter` argument of the withModuleFilter/withModuleFilters interface declarations (the collection overload in particular) to `filters`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__governator__132
Netflix/governator
132
defect
d653c3733fa4341430f6e03c467ec24a919c2f4c
45aa4a8ee530052ac5a6836dd20cac32225d6b25
Bootstrap annotations + More detail to BindingReport
Bootstrap annotations allow for a single class to be annotated with several annotations that translate into LifecycleInjectorBuilderSuite's that are used to configure the LifecycleInjector. Using annotations makes it far less verbose to configure the LifecycleInjector. For example, a top level application class may b...
diff --git a/governator-core/src/main/java/com/netflix/governator/guice/Grapher.java b/governator-core/src/main/java/com/netflix/governator/guice/Grapher.java index ffff8bcf..e8880e8d 100644 --- a/governator-core/src/main/java/com/netflix/governator/guice/Grapher.java +++ b/governator-core/src/main/java/com/netflix/gov...
1
1
0
[{"id": "G0", "claim": "Grapher.toFile should not let the close in the finally block mask a graph-generation failure — swallow the close exception (Closeables.close(out, true) instead of close(out, false)).", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__governator__137
Netflix/governator
137
defect
c980293c3209d4184651ce820ffe516fbfc58864
714a72f6cb1f298ba4f121f9c08909d01027852a
Concurrent injection provider
Guice constructs dependencies serially which can cause the injectee to take a very long time to initialize. For top level applications this process can be sped up substantially by parallelizing creating the dependencies. The following approach provides a custom Provider that will construct dependencies in parallel an...
diff --git a/governator-core/src/main/java/com/netflix/governator/annotations/NonConcurrent.java b/governator-core/src/main/java/com/netflix/governator/annotations/NonConcurrent.java new file mode 100644 index 00000000..d76c2540 --- /dev/null +++ b/governator-core/src/main/java/com/netflix/governator/annotations/NonCon...
1
1
0
[{"id": "G0", "claim": "The NonConcurrentSingleton test class's constructor logs \"Child1 start\"/\"Child1 end\" — a trivial copy-and-paste typo carried over from SlowChild1.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__governator__229
Netflix/governator
229
defect
76f0d9520148229c261f5e1187ac9e9fe59aae37
d4d2f304b50342a6cf197834ff9700259876c246
Remove dependency on xbean-finder
Perform annotation classpath scanning with a vanilla ASM ClassVisitor. Further work could be done in the future that reads class bytecodes directly, with a potential performance improvement. See similar attempts at https://github.com/lukehutch/fast-classpath-scanner and https://github.com/rmuller/infomas-asl/tree/mas...
diff --git a/build.gradle b/build.gradle index 9c85cf07..e51264d8 100644 --- a/build.gradle +++ b/build.gradle @@ -38,15 +38,13 @@ subprojects { } dependencies { - compile 'javax.inject:javax.inject:1' - compile 'com.google.code.findbugs:jsr305:3.0.0' + compile 'javax.inject:jav...
6
5
3
[{"id": "G0", "claim": "elandau asks for thoughts on using Guava's classpath scanner instead of ASM.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The second parameter of Class.forName in classFromInternalName should be false so classes are not force-init...
null
Netflix__governator__277
Netflix/governator
277
defect
9170d348257abb3d14420b788d0b8d2c611ef757
6346a2aaea38976ee9661771b7e12507154cb33e
Enhancements to Jersey-Guice integration
- Configure Jersey via property bindings (instead of statically in JerseyServletModule) - Auto create all singleton resources To enable just add the following binding ``` java bind(GuiceContainer.class).to(GovernatorServletContainer.class).asEagerSingleton(); ``` To set up a Jersey endpoint, ``` java serve("/*")....
diff --git a/governator-jersey/build.gradle b/governator-jersey/build.gradle new file mode 100644 index 00000000..8e90f054 --- /dev/null +++ b/governator-jersey/build.gradle @@ -0,0 +1,16 @@ +apply plugin: 'java' + +dependencies { + compile project(':governator-core') + + compile 'javax.servlet:servlet-api:2.5' +...
7
6
4
[{"id": "G0", "claim": "Consider making the servlet mapping prefix (\"/*\" hardcoded in GovernatorJerseyServletModule) configurable.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "servlet-api should not be a compile dependency but 'provided', and a more ...
null
Netflix__governator__278
Netflix/governator
278
defect
b9515cad8c8eaf3e2d5b48234a52508400bb964d
ccc1862b5625591bd6121454486c42258a6c1987
Fix Servlet Context Listener shutdown bug.
The GovernatorServletContextListener never set its internal injector instance so at shutdown it never sent a signal to the lifecycle listener to call all the @PreDestroy methods (among things) when the application shuts down and before the JVM does.
diff --git a/governator-servlet/build.gradle b/governator-servlet/build.gradle index e60fafb8..c226343c 100644 --- a/governator-servlet/build.gradle +++ b/governator-servlet/build.gradle @@ -5,4 +5,7 @@ dependencies { compile 'com.google.inject.extensions:guice-servlet:4.0' provided 'javax.servlet:ja...
1
1
1
[{"id": "G0", "claim": "getInjector() should throw an exception when injector != null instead of silently returning the cached injector (the injector must only be created once).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Netflix__governator__297
Netflix/governator
297
defect
b931ca58cdc44e79453808afbc7e8de36fd19259
a5b7e3fcaeec7bd90afa93675ce8630e2c3cebe3
first pass at AutoCloseable support and enhancements for PostConstruc…
- add AutoCloseable support to PreDestroyLifecycleActions - improve JSR-250 compliance for PostConstruct and PreDestroy processing - implement AutoCloseable in LifecycleInjector (enable try / resource construct with LifecycleInjector) - add LifecycleInjectorBuilder.fromInstance() to reduce boilerplate code with Abstrac...
diff --git a/governator-core/src/main/java/com/netflix/governator/InjectorBuilder.java b/governator-core/src/main/java/com/netflix/governator/InjectorBuilder.java index 2f5e729e..9a0c956a 100644 --- a/governator-core/src/main/java/com/netflix/governator/InjectorBuilder.java +++ b/governator-core/src/main/java/com/netfl...
9
5
2
[{"id": "G0", "claim": "The new fromInstance/fromInstances convenience methods should be renamed to something like 'bindInstances'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The instance-binding convenience methods should be kept out of Inj...
null
Netflix__governator__299
Netflix/governator
299
defect
b931ca58cdc44e79453808afbc7e8de36fd19259
e74ae6d7b160296c4705062f881879efe329a178
ordering for lifecycle listeners, fix equality in SafeLifecycleListener
LifecycleManager uses a HashSet for discovered LifecycleListeners, providing unpredictable invocation order for callback methods. Changed over to LinkedHashset so that LifecycleListener callbacks are called in same order as the listeners were added. Added reverse-ordering for calling LifecycleListener.onStopped(), to...
diff --git a/governator-core/src/main/java/com/netflix/governator/LifecycleListenerModule.java b/governator-core/src/main/java/com/netflix/governator/LifecycleListenerModule.java index a9c909cc..ffc69378 100644 --- a/governator-core/src/main/java/com/netflix/governator/LifecycleListenerModule.java +++ b/governator-core...
1
1
0
[{"id": "G0", "claim": "The code would read better if it used an iterator (e.g. a LinkedList descendingIterator) instead of dealing with raw arrays when notifying listeners in reverse.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__governator__320
Netflix/governator
320
defect
cf72b43170d4f5ca31003015ccf32940a02ccd36
dd6dfdb74d039aa817b43a824285f679c149f08b
Add support for AutoBindSingleton
Added a general ScanningModuleBuilder with support for class annotations on top of which AutoBindSingleton auto binding is implemented. The resulting module can be installed directly on an injector. ``` java Guice.createInjector(new ScanningModuleBuilder() .forPackages("org.example") .addScanner(new Au...
diff --git a/governator-core/build.gradle b/governator-core/build.gradle index 6684ec15..2590e137 100644 --- a/governator-core/build.gradle +++ b/governator-core/build.gradle @@ -7,6 +7,7 @@ dependencies { compile "com.google.inject:guice:${guice_version}" compile "com.google.inject.extensions:guice-m...
11
6
1
[{"id": "G0", "claim": "asm is fragile since so many things use it; use a shaded version available in guice or elsewhere in our dependencies instead of adding a direct org.ow2.asm:asm compile dependency.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
Netflix__governator__323
Netflix/governator
323
defect
cf72b43170d4f5ca31003015ccf32940a02ccd36
89e5bfbf96bbd799c8f3865a3f9865bd166d9da3
ProvidesWithAdvice feature
Modification of Tom's ProvidesBuilder to use @Named and maintain access to the InjectionPoint so we can implement advanced features such as conditionals in the future.
diff --git a/governator-providers/build.gradle b/governator-providers/build.gradle new file mode 100644 index 00000000..01ee70f9 --- /dev/null +++ b/governator-providers/build.gradle @@ -0,0 +1,15 @@ +apply plugin: 'java' + +dependencies { + compile project(':governator-core') + + compile "com.google.inject.exten...
3
1
0
[{"id": "G0", "claim": "The jersey dependencies in governator-providers/build.gradle are not needed and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whether the module is now entirely on Java 8, questioning...
null
Netflix__governator__324
Netflix/governator
324
defect
5e3aea44b29c1793e364e0995e9f53b52d423f99
0dcb5f5837d6df97722bad556d7d2fdc35ae52ff
Governator Jersey-Guice integration
Fork the jersey-guice integration to gain more control over Jersey's ResourceConfig and NOT auto-register bound classes with @Path annotations to the Jersey context. Usage, ``` java LifecycleInjector injector = InjectorBuilder.fromModules( new JerseyServletModule() { @Override protected void confi...
diff --git a/governator-jersey/build.gradle b/governator-jersey/build.gradle index 01ee70f9..68f63fcc 100644 --- a/governator-jersey/build.gradle +++ b/governator-jersey/build.gradle @@ -1,7 +1,11 @@ apply plugin: 'java' +sourceCompatibility = 1.8 +targetCompatibility = 1.8 + dependencies { compile project(':g...
5
2
0
[{"id": "G0", "claim": "The newly added 'governator-providers' dependency could be confused with Jersey- or Guice-provider projects and its purpose should be clarified.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The module javadoc should doc...
null
Netflix__governator__336
Netflix/governator
336
defect
fa6c6bcb6a5b82f5a5b13841f2ac853729c03b01
fe7cf547834073e91b48e07a635b2f79967a0625
Provision metrics
- Include @PostConstruct duration in provision metrics by adding the ProvisionMetricsListener prior to LifecycleProvisionListener in LifecycleInjectorCreator. - Fix memory leak by no longer using thread locals in SimpleProvisionMetrics - Stop collecting metrics once the injector has been created.
diff --git a/governator-core/src/main/java/com/netflix/governator/LifecycleInjectorCreator.java b/governator-core/src/main/java/com/netflix/governator/LifecycleInjectorCreator.java index 1f6f7e4a..adddb1b6 100644 --- a/governator-core/src/main/java/com/netflix/governator/LifecycleInjectorCreator.java +++ b/governator-c...
4
1
0
[{"id": "G0", "claim": "The threads ConcurrentHashMap should be sized so that multi-threaded access does not become a bottleneck.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The names Data / SimpleProvisionMetrics' Data inner class are too generi...
null
Netflix__governator__338
Netflix/governator
338
defect
5e3aea44b29c1793e364e0995e9f53b52d423f99
824985d096b87629cd96151df6f5621bbd44dbd0
ElementVisitor to output a warning about toInstance bindings
toInstance() bindings risk forcing static initialization of code from the configure() method of a Guice module, which can have undersireable side effects for static bridges. Adding `.infoEachElement(new WarnOfToInstanceInjectionVisitor())` to the InjectorBuilder can be used to identify toInstance() bindings. ``` java...
diff --git a/governator-core/src/main/java/com/netflix/governator/InjectorBuilder.java b/governator-core/src/main/java/com/netflix/governator/InjectorBuilder.java index 2f5e729e..5d2a084b 100644 --- a/governator-core/src/main/java/com/netflix/governator/InjectorBuilder.java +++ b/governator-core/src/main/java/com/netfl...
1
1
0
[{"id": "G0", "claim": "WarnOfToInstanceInjectionVisitor doesn't actually warn (it returns a String), so its name seems a bit off.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__governator__393
Netflix/governator
393
defect
910faa9e536e22228cb2a87b82e33bbc3fc52a1b
152365da96563f238e29817bbdee713d6c695e76
Pre destroy no scope bug
what is the problem: fix a long-standing memory leak caused by unscoped instances injected via Provider. The situation commonly occurs when a provider is declared for a type that implements AutoCloseable or is annotated with '@PreDestroy'. At runtime, the injected instances are bound with 'no scope' by Guice, leading ...
diff --git a/governator-core/src/main/java/com/netflix/governator/internal/PreDestroyMonitor.java b/governator-core/src/main/java/com/netflix/governator/internal/PreDestroyMonitor.java index 2ab8a0c5..8c648bcb 100644 --- a/governator-core/src/main/java/com/netflix/governator/internal/PreDestroyMonitor.java +++ b/govern...
10
6
1
[{"id": "G0", "claim": "The inline visitor work done on every register() call may be expensive enough that it should be moved into a cache.", "category": "performance", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Extract the anonymous DefaultBindingTargetVisitor inside registe...
null
Netflix__hollow__266
Netflix/hollow
266
defect
328e0656af03f49db8d56f896e885845492e624b
678d513c09bff82034b9a9d62e2b946911749a8a
Expose a consumer's initial load as a future
Allow calling code to safely interact with a consumer after the initial data load has completed. By exposing a `CompletableFuture` callers can decide to block or receive a callback. Example of blocking until the initial load completes: ```java HollowConsumer consumer = consumerBuilder. .forNamespace("tick....
diff --git a/hollow/src/main/java/com/netflix/hollow/api/client/HollowClient.java b/hollow/src/main/java/com/netflix/hollow/api/client/HollowClient.java index 66bab73455..e3bef080b4 100644 --- a/hollow/src/main/java/com/netflix/hollow/api/client/HollowClient.java +++ b/hollow/src/main/java/com/netflix/hollow/api/client...
2
2
1
[{"id": "G0", "claim": "Completing the initial-load future exceptionally on a failed refresh may prevent calling code from ever observing that the consumer eventually had a successful initial load, so the author leans toward removing it in favor of recovery where producers write often.", "category": "correctness", "ver...
null
Netflix__hollow__375
Netflix/hollow
375
defect
1f402fab3333d3fa22eac1c054c607ad17ad3820
2b1bde2434fa15789c460a91994e5414f47e3a44
Flat Records
FlatRecords provide the ability to serialize records for addition to a remote state engine. This is experimental functionality for now -- the API and serialized representations are both subject to backwards incompatible changes without notice.
diff --git a/hollow/src/main/java/com/netflix/hollow/api/producer/HollowIncrementalCyclePopulator.java b/hollow/src/main/java/com/netflix/hollow/api/producer/HollowIncrementalCyclePopulator.java index 6d501bebb1..9a4dec8f4e 100644 --- a/hollow/src/main/java/com/netflix/hollow/api/producer/HollowIncrementalCyclePopulato...
8
3
1
[{"id": "G0", "claim": "The new package could be renamed away from com.netflix.hollow.core.write.objectmapper.flatrecords to carry an incubating/experimental marker, e.g. ...flatrecords.incubating or com.netflix.hollow.incubating...", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"...
null
Netflix__hollow__402
Netflix/hollow
402
defect
c387b95f54165656e7c6057c6068616b55f73f09
98fc62eb8a802b0ed20309e1f6157033024c7158
Name all threads started by Hollow
* [x] audit thread creation; ensure all threads: * [x] are daemon threads * [x] have a name * [x] name follows the same convention * [x] fix UISession cleanup thread ending after one sweep
diff --git a/hollow-ui-tools/src/main/java/com/netflix/hollow/ui/HollowUISession.java b/hollow-ui-tools/src/main/java/com/netflix/hollow/ui/HollowUISession.java index 21e6d537a3..a9f327fa48 100644 --- a/hollow-ui-tools/src/main/java/com/netflix/hollow/ui/HollowUISession.java +++ b/hollow-ui-tools/src/main/java/com/netf...
4
3
0
[{"id": "G0", "claim": "Thread naming/creation should be refactored into a reusable static helper (a method accepting a runnable, a context class and a description, returning a new daemon thread) so thread names stay consistent across Hollow.", "category": "maintainability", "verdict": "supported", "priority": "P2", "s...
null
Netflix__hollow__624
Netflix/hollow
624
defect
c8a735c48029835782dcbde61d74930cae6dfdbb
a564b70711e057e95ce7cc7e8c99dffb711f8640
Enhanced HollowHistoryTypeKeyIndex with Optimized Mappings and Memoization
This PR introduces a major optimization to the HollowHistoryTypeKeyIndex to significantly reduce unnecessary state update round trips. Consequently, performance and memory management are substantially enhanced. **Architectural Overview:** Leveraging the **`HollowOrdinalMapper`**, the architecture now utilizes ope...
diff --git a/hollow/src/main/java/com/netflix/hollow/tools/history/keyindex/HollowHistoryKeyIndex.java b/hollow/src/main/java/com/netflix/hollow/tools/history/keyindex/HollowHistoryKeyIndex.java index 24cdf68365..1f163308ab 100644 --- a/hollow/src/main/java/com/netflix/hollow/tools/history/keyindex/HollowHistoryKeyInde...
10
6
5
[{"id": "G0", "claim": "Synchronization on the intern pool's map may be negating the performance benefit, and could be optimized (e.g. optimistic get, lock stripping, or ConcurrentHashMap).", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Primary key ...
null
Netflix__hollow__644
Netflix/hollow
644
defect
f72303eb8b6e950c9ed6b96610ea1b3403aded6d
dfc4f794a7e5f4f3293195c6b582f93817e0ef7b
Consumer delta application supports re-sharding for Object type
This is 2 of 4 planned PRs for supporting dynamic type re-sharding: - [X] [PR#642](https://github.com/Netflix/hollow/pull/642) <s>utilities for splitting/joining Object types; limited to Object types in this step, extend to Map/Set/List in last step</s> - [X] consumer delta application reshards with O(shard size) ...
diff --git a/hollow-perf/src/jmh/java/com/netflix/hollow/core/read/engine/object/HollowObjectTypeReadStateDeltaTransitionBenchmark.java b/hollow-perf/src/jmh/java/com/netflix/hollow/core/read/engine/object/HollowObjectTypeReadStateDeltaTransitionBenchmark.java new file mode 100644 index 0000000000..67a9e844f7 --- /dev/...
3
2
0
[{"id": "G0", "claim": "The reviewer asks whether the shard ordinal shift can actually differ between shards and, if not, why `shardOrdinalShift` is a property of the shard rather than of the holder.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The strea...
null
Netflix__hollow__727
Netflix/hollow
727
defect
b6652cd1820c214443ba23d1e3f7e8898cad7d0e
4dc1a24115fc8b0293ff47237fe1df674865f151
fix: consumer init to an announced version should only retrieve snapshots corresponding to announced versions
### The bug ``` 1. A producer announces V0, 2. Then starts failing validations, so it publishes a snapshot for V1 which is not announced due to validation failure, 3. Then later on announces V2 but with no corresponding snapshot because numStatesBetweenSnapshot is not met, 4. And later on announces Vn with a corr...
diff --git a/hollow/src/main/java/com/netflix/hollow/api/client/HollowClientUpdater.java b/hollow/src/main/java/com/netflix/hollow/api/client/HollowClientUpdater.java index 1003b17900..dee93d6a04 100644 --- a/hollow/src/main/java/com/netflix/hollow/api/client/HollowClientUpdater.java +++ b/hollow/src/main/java/com/netf...
2
1
0
[{"id": "G0", "claim": "The new HollowClientUpdater constructor takes an announcementWatcher parameter that is not used.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "All the public methods that take a `long` instead of `HollowConsumer.VersionInfo` (e.g...
null
Netflix__hollow__739
Netflix/hollow
739
defect
1fd1a84322c497648b2c7c8a9193142e24cc9556
da7b9013d9229090a07f6b606775dd881e640e8b
sort stringified set elements with one field
Stringified set elements are now outputted in sorted order when each element has exactly one field. Previously the output order was determined by the element ordinals. This change only affects the Hollow Explorer UI.
diff --git a/hollow-explorer-ui/src/main/java/com/netflix/hollow/explorer/ui/pages/BrowseSelectedTypePage.java b/hollow-explorer-ui/src/main/java/com/netflix/hollow/explorer/ui/pages/BrowseSelectedTypePage.java index 589e3d8194..03850e5a2c 100644 --- a/hollow-explorer-ui/src/main/java/com/netflix/hollow/explorer/ui/pag...
1
1
1
[{"id": "G0", "claim": "The pull request must keep the old public constructors (HollowRecordJsonStringifier(boolean, boolean) and HollowRecordStringifier(boolean, boolean, boolean)) instead of replacing them, so external callers are not broken.", "category": "design", "verdict": "supported", "priority": "P1", "scope": ...
null
Netflix__hollow__743
Netflix/hollow
743
defect
da9ef6cf2bb6c2b87902028767d689455f21924b
2a1c640cc606d6be6415e8851444dd8487774b10
add top level schema page in explorer ui
Clicking on `Browse Top Level Schemas` will return a schema page with all of the top level schemas. A top level schema is not referenced by any other schema. As part of this change, the `BrowseSchemaPage` was updated to support displaying multiple types.
diff --git a/hollow-explorer-ui/src/main/java/com/netflix/hollow/explorer/ui/pages/BrowseSchemaPage.java b/hollow-explorer-ui/src/main/java/com/netflix/hollow/explorer/ui/pages/BrowseSchemaPage.java index 3c95cefa5e..f26a59c656 100644 --- a/hollow-explorer-ui/src/main/java/com/netflix/hollow/explorer/ui/pages/BrowseSch...
4
4
1
[{"id": "G0", "claim": "The topLevelTypes() logic should be moved out of HollowReadStateEngine into a HollowSchemaUtil class in com.netflix.hollow.core.schema.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added import java.util.stream.Collect...
null
Netflix__hollow__744
Netflix/hollow
744
defect
da9ef6cf2bb6c2b87902028767d689455f21924b
3dde8ba82d5d9866a18d28d9c4cc0890f4505276
add null primary key validator
Null primary keys are not supported. Add a validator which can be used to detect when a record with a null primary key field is produced.
diff --git a/hollow/src/main/java/com/netflix/hollow/api/producer/validation/NullPrimaryKeyValidator.java b/hollow/src/main/java/com/netflix/hollow/api/producer/validation/NullPrimaryKeyValidator.java new file mode 100644 index 0000000000..2bbcf31bb5 --- /dev/null +++ b/hollow/src/main/java/com/netflix/hollow/api/produ...
4
4
3
[{"id": "G0", "claim": "The null-handling for resolving a primary key value should not be added as branching inside HollowPrimaryKeyValueDeriver.readValue, which is also used for indexing; for the validator it would be better to iterate over the primary key fields and ordinals in the validator itself instead of branchi...
null
Netflix__hollow__748
Netflix/hollow
748
defect
da9ef6cf2bb6c2b87902028767d689455f21924b
bae3d435601d4aa5b5960426e1a46af33598be2e
add max blob age to local filesystem blob retriever
Add `existingBlobMaxAge` to the local filesystem blob retriever, used in local development. When `existingBlobMaxAge` is configured, local blobs older than the conigured duration will be deleted and not used when retrieivng snapshot/header/delta blobs.
diff --git a/hollow/src/main/java/com/netflix/hollow/api/consumer/HollowConsumer.java b/hollow/src/main/java/com/netflix/hollow/api/consumer/HollowConsumer.java index 380934cf90..715eb35e59 100644 --- a/hollow/src/main/java/com/netflix/hollow/api/consumer/HollowConsumer.java +++ b/hollow/src/main/java/com/netflix/hollo...
5
5
0
[{"id": "G0", "claim": "The catch-all exception message is too specific since the IOException could also originate in Files.delete, and the deletion log should also include the configured max age for deletion.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
Netflix__hollow__768
Netflix/hollow
768
defect
0e8fb59a31c6330aea6044e699bad7eb689c164c
000ae6712f0fda5025b7c7f345f8cceeec9fad31
Throw NPE when a field is null during unique index construction
This PR handles null field values during UniqueKey index creation, by throwing `NullPointerException`. It also handles the null fields in the nested field paths in both PrimaryKey and UniqueKey indexes.
diff --git a/hollow/src/main/java/com/netflix/hollow/core/index/HollowPrimaryKeyIndex.java b/hollow/src/main/java/com/netflix/hollow/core/index/HollowPrimaryKeyIndex.java index 3a58e8dbb9..5767716e5e 100644 --- a/hollow/src/main/java/com/netflix/hollow/core/index/HollowPrimaryKeyIndex.java +++ b/hollow/src/main/java/co...
2
2
1
[{"id": "G0", "claim": "The NPE error message uses `fieldIdx`, an index into the `fields` array, to look up the field name from the schema, so it will likely report the wrong field name; the name should come from the `HollowHashIndexField`/field path instead.", "category": "correctness", "verdict": "supported", "priori...
null
Netflix__hollow__769
Netflix/hollow
769
defect
0e8fb59a31c6330aea6044e699bad7eb689c164c
df2fdd97ac4e8994d59d0c466be021abfa176062
[Improve]: Hollow API Generation Handling Missing Types;
In some use cases, HollowProducer would be producing header blob for a dataset, which does not contain data for one or more types yet. Currently, 1. the code can run into `NullPointerException` when generating the API. 2. the user can later encounter `Cannot Find Symbol` compilation errors when using the generated API....
diff --git a/hollow/src/main/java/com/netflix/hollow/api/codegen/HollowAPIGenerator.java b/hollow/src/main/java/com/netflix/hollow/api/codegen/HollowAPIGenerator.java index 3fecea3424..91f541c0cf 100644 --- a/hollow/src/main/java/com/netflix/hollow/api/codegen/HollowAPIGenerator.java +++ b/hollow/src/main/java/com/netf...
6
4
0
[{"id": "G0", "claim": "The IllegalStateException thrown when a primary key references a missing type has an incomplete message ('Primary key ') and should describe the issue, e.g. 'Primary key references a type that does not exist in the dataset: ' followed by the schema name.", "category": "correctness", "verdict": "...
null
Netflix__hollow__787
Netflix/hollow
787
defect
4d0de9a5ba4565bd8b0ec86f89aeec2be3082b9d
f2dc7d5fab17c599b5274000c88c346dcdc925c4
[Improv]: enable max ordinal check after write state engine prepare write;
Summary: This change adds configurable soft limit validation to ByteArrayOrdinalMap and exposes ordinal map statistics to PublishListeners for monitoring. Changes: 1. Soft Limit Enforcement - Adds soft limit threshold at 268,435,456 (2^28) - half of the hard limit - Throws exception when sof...
diff --git a/hollow/src/main/java/com/netflix/hollow/api/producer/AbstractHollowProducer.java b/hollow/src/main/java/com/netflix/hollow/api/producer/AbstractHollowProducer.java index 4a3125c10f..ec33ffe97f 100644 --- a/hollow/src/main/java/com/netflix/hollow/api/producer/AbstractHollowProducer.java +++ b/hollow/src/mai...
7
6
1
[{"id": "G0", "claim": "Don't leak 256, ByteArrayOrdinalMap's internal hard-coded default capacity, into HollowTypeWriteState.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Check that the ignore-ordinal-threshold supplier is always properly passed/propa...
null
Netflix__hollow__798
Netflix/hollow
798
defect
16a1e242fb3b0bb4598af434250f19424e4fbdd3
137bdbbd6dec7fd31e42db3e5f04e99f23af5b49
[Improv]: Enable using 4 ByteArrayOrdinalMap per HollowTypeWriteState;
Summary: Partitioned Ordinal Map Feature (4x Ordinal Limit) This change introduces the ability to partition a HollowTypeWriteState's ByteArrayOrdinalMap into 4 separate maps instead of 1, effectively quadrupling the ordinal limit (record cardinality limit) per type. Key changes: 1. New builder option (...
diff --git a/.gitignore b/.gitignore index 5a42926171..66b8d3606a 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ **.iws .idea venv +.cursor # publishing secrets secrets/signing-key diff --git a/hollow/src/main/java/com/netflix/hollow/api/producer/AbstractHollowProducer.java b/hollow/src/main/java/com...
5
2
0
[{"id": "G0", "claim": "The multi-ByteArrayOrdinalMap (4x) feature is currently not allowed to be enabled together with focusHoleFillInFewestShards, and the author notes this can be improved later since focusHoleFillInFewestShards sees little use.", "category": "design", "verdict": "supported", "priority": "P2", "scope...
null
Netflix__hollow__801
Netflix/hollow
801
defect
3abf6c139d4873bd8569015ab151ca9fce49c26c
d0bf152970b814f94163c163acc34a508b00c436
[fix] holes cost estimation;
## Summary - Fix incorrect hole cost estimation in `getApproximateHoleCostInBytes` for all type shards (list, map, set, object) ## Details When `numShards > 1`, ordinals are distributed across shards via `ordinal % numShards`, and each shard stores records at shard-local ordinal `ordinal / numShards` (equivalen...
diff --git a/.claude/settings.local.json b/.claude/settings.local.json deleted file mode 100644 index 8a250ff4c4..0000000000 --- a/.claude/settings.local.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "permissions": { - "allow": [ - "Bash(./gradlew :hollow-protoadapter:test:*)", - "Bash(./gradlew:*)" - ] - }...
3
3
0
[{"id": "G0", "claim": "In testApproximateHoleCountWithShards the HollowObjectWriteRecord import and the local variable rec are both unused, which the reviewer says will fail Checkstyle's UnusedImports rule; remove the unused import and the unused local variable.", "category": "maintainability", "verdict": "supported",...
null
Netflix__hollow__802
Netflix/hollow
802
defect
3abf6c139d4873bd8569015ab151ca9fce49c26c
c73b5d720e3258ac1d1c85bdc794aa74c8fa6cb1
Speed up duplicate data validator
Adds an opt-in incremental (delta-aware) mode to DuplicateDataDetectionValidator that validates only new ordinals each cycle against a retained primary-key index, trading steady-state memory for cycle-time savings on large datasets. Opt-in via a new constructor that takes a Supplier<Boolean>, which doubles as a runtime...
diff --git a/hollow-perf/build.gradle b/hollow-perf/build.gradle index 4000799121..f6bbc438c5 100644 --- a/hollow-perf/build.gradle +++ b/hollow-perf/build.gradle @@ -6,6 +6,7 @@ apply plugin: 'java' dependencies { implementation project(':hollow') + implementation project(':hollow-test') implementation 'or...
3
3
2
[{"id": "G0", "claim": "The `implementation project(':hollow-test')` dependency the PR adds to hollow-perf/build.gradle looks unused and should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The duplicate data detector should support...
null
Netflix__hollow__810
Netflix/hollow
810
defect
9ef3e4e4b8002394088a4212b7959533189a6afa
5b99c058f8de05797a294cf55af0ceda90b76840
Resolve missing type dependencies from snapshot during producer restore
## Summary Fixes a failure during `HollowProducer.restore()` when the snapshot contains types not registered via `initializeDataModel()`. The restore would throw `IllegalStateException: Missing schema(s) in dependency ordered list`. This happens when using `HollowMessageMapper` (proto adapter) which lazily creates sc...
diff --git a/hollow/src/main/java/com/netflix/hollow/api/producer/AbstractHollowProducer.java b/hollow/src/main/java/com/netflix/hollow/api/producer/AbstractHollowProducer.java index 7b6f014964..b9bb66230c 100644 --- a/hollow/src/main/java/com/netflix/hollow/api/producer/AbstractHollowProducer.java +++ b/hollow/src/mai...
1
1
0
[{"id": "G0", "claim": "The `getReferencedTypeNames` helper added to AbstractHollowProducer could instead live in `HollowSchemaUtil`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Netflix__hollow__811
Netflix/hollow
811
defect
9aacbdb2afc4b49fab758edbcc7a41ffe9a1e55c
eae3b7f8636e6fd9483cd8f52a34d8e21ff81db0
Fix Struct/Value fields not written to Hollow, breaking delta detection
## Summary Two bugs caused `google.protobuf.Struct` field changes to be invisible to Hollow's delta detection. The producer would report "no delta in output state" on every cycle even when Struct data changed, breaking the Cinder delta chain. ### Bug 1: Value schema field name mismatch The hand-coded Value schema in...
diff --git a/hollow-protoadapter/src/main/java/com/netflix/hollow/protoadapter/HollowMessageMapper.java b/hollow-protoadapter/src/main/java/com/netflix/hollow/protoadapter/HollowMessageMapper.java index 880365301f..589e46cbf7 100644 --- a/hollow-protoadapter/src/main/java/com/netflix/hollow/protoadapter/HollowMessageMa...
2
2
0
[{"id": "G0", "claim": "Move the fully-qualified com.google.protobuf.Descriptors.Descriptor / FieldDescriptor names used inside parseCollection to imports.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new delta-detection test should also c...
null
Netflix__iceberg__60
Netflix/iceberg
60
defect
68b5204368505537087fc289a094cea5215bd058
8dbd4ea5b16a029b7c1602f181996c71d549b6ea
Hive table and table operation implementation so users can directly u…
…se hive metastore with iceberg. The test case is more involved given I have to spin up an in process hive metastore server and it requires creation of some tables that don't go though data nucleaus' jdo APIS so I had to copy a script runner from [IBatis.](https://github.com/mybatis/ibatis-2/blob/master/src/main/jav...
diff --git a/build.gradle b/build.gradle index bbd4e8531..e193d1e12 100644 --- a/build.gradle +++ b/build.gradle @@ -121,6 +121,21 @@ project(':iceberg-data') { } } +project(':iceberg-hive') { + dependencies { + compile project(':iceberg-core') + + compile "org.apache.hive:hive-metastore:3.1.0" +...
15
15
2
[{"id": "G0", "claim": "The new iceberg-hive block in build.gradle should use 2-space indentation like the rest of the file.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Because the configuration is passed through the constructor, BaseMetastor...
null
Netflix__karyon__190
Netflix/karyon
190
defect
0470ad5404aaa90bcf42d38419eeb35a6d59ae9a
d1775c4c4430fc603e805ee779ae7212e9749119
redirect filter rules abstraction
A few major updates 1. Redirect filter rules are abstracted from RedirectFilter. It allows applications to plug in their own redirect url mappings 2. Admin plugin registration supports isVisible flag to control rendering of the corresponding tab. Some plugins may choose to only include jersey resources with no renderin...
diff --git a/karyon-admin-web/src/main/java/netflix/adminresources/pages/AdminPageResource.java b/karyon-admin-web/src/main/java/netflix/adminresources/pages/AdminPageResource.java index 693ac595..8d713a3d 100644 --- a/karyon-admin-web/src/main/java/netflix/adminresources/pages/AdminPageResource.java +++ b/karyon-admin...
1
1
1
[{"id": "G0", "claim": "A pluggable healthcheck mechanism is needed, and the reviewer asks why the pull request removed the HealthCheckInvocationStrategy-based pluggability from HealthCheckServlet.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Netflix__karyon__191
Netflix/karyon
191
defect
03e3a6ed24a5264876d53548ab81d34020f8fe88
399920fe106fad384c2927e16f88a8aa58d600f7
Healthcheck plugin
1. Creates karyon2-admin-healthcheck-plugin package to handle health check strategy as configured in a karyon2 app. 2. It also makes karyon-admin container independent on any compile time karyon-core API - with a goal to support both karyon 1.x and karyon 2.x apps with a single admin container framework with potential...
diff --git a/karyon2-admin-plugins/karyon2-admin-healthcheck-plugin/build.gradle b/karyon2-admin-plugins/karyon2-admin-healthcheck-plugin/build.gradle new file mode 100644 index 00000000..0af5ca63 --- /dev/null +++ b/karyon2-admin-plugins/karyon2-admin-healthcheck-plugin/build.gradle @@ -0,0 +1,55 @@ +/* + * Copyright ...
2
2
2
[{"id": "G0", "claim": "Remove the HealthCheckInvocationStrategy from HealthCheckResource and invoke the health check handler directly, since the strategy isn't generally useful and has been removed from 2.x.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":...
null
Netflix__karyon__298
Netflix/karyon
298
defect
912143b6d4c930866a56117c5d366cd0bfa3e4d9
01e8de0c90a23903bb216f18db1847e8522571d0
Additional filters in karyon2-admin container
config param to introduce additional filters to admin resources. While it defaults to no different behavior than current state, it provides an extension point to provide extra tomcat filter behavior that is pluggable in karyon2-admin container
diff --git a/karyon2-admin/src/main/java/netflix/admin/AdminConfigImpl.java b/karyon2-admin/src/main/java/netflix/admin/AdminConfigImpl.java index 1624e790..29909497 100644 --- a/karyon2-admin/src/main/java/netflix/admin/AdminConfigImpl.java +++ b/karyon2-admin/src/main/java/netflix/admin/AdminConfigImpl.java @@ -1,11 ...
4
4
1
[{"id": "G0", "claim": "The logger field should be static.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "additionalFilters() should return Collections.emptyList() instead of creating a new ArrayList.", "category": "design", "verdict": "supporte...
null
Netflix__lemur__3174
Netflix/lemur
3,174
defect
72d28d0af93307b3a94aaa16909a61ba0a1b85dc
c72661a87fb8e3e892f2244a0c9478123598b3c5
Authority create: Email added to subject DN
Added Email to distinguished name options during CA creation. The owner email will be copied over to Email filed by default. It can be modified to be empty before submitting the form.
diff --git a/lemur/authorities/schemas.py b/lemur/authorities/schemas.py index ef6263a8dc..bead94bafb 100644 --- a/lemur/authorities/schemas.py +++ b/lemur/authorities/schemas.py @@ -50,6 +50,8 @@ class AuthorityInputSchema(LemurInputSchema): missing=lambda: current_app.config.get("LEMUR_DEFAULT_COUNTRY") ...
1
1
0
[{"id": "G0", "claim": "Location should also be made optional within this PR; currently creating an authority complains with 'You must enter a location'.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
Netflix__lemur__3439
Netflix/lemur
3,439
defect
de06f13bb15f0f9eb34cdc5d04531410e45ae62d
d278c6e13204500c328f2b52ebce016ffab97e9d
Include notification interval (converted to days) in SNS notifications
Updates the SNS notification format to include a new field `notification_interval_days` to specify the interval that triggered the notification.
diff --git a/lemur/notifications/messaging.py b/lemur/notifications/messaging.py index 4b33656d96..2e2f37ad1f 100644 --- a/lemur/notifications/messaging.py +++ b/lemur/notifications/messaging.py @@ -201,6 +201,7 @@ def send_plugin_notification(event_type, data, recipients, notification): "notification_plugin":...
1
1
0
[{"id": "G0", "claim": "The plugin base class's existing get_option helper should be reused instead of the pull request's newly duplicated module-level get_option in lemur/plugins/lemur_aws/sns.py.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__lemur__3492
Netflix/lemur
3,492
defect
da75d31fac63256fa8f01680b626d5278dd9d93b
48a758c76dee4be1ab9740d773a00f4969eb18cd
Add config option DISABLE_NOTIFICATION_PLUGINS to disable specific notification plugins
Provides a new config option `DISABLE_NOTIFICATION_PLUGINS` that disables *sending* notifications via the specified plugins. This does not prevent notifications from being *configured* with those plugins, but any configured ones will not be sent.
diff --git a/docs/administration.rst b/docs/administration.rst index bad9502612..1c3150d350 100644 --- a/docs/administration.rst +++ b/docs/administration.rst @@ -390,6 +390,36 @@ This notification type also supports the same ``--exclude`` and ``EXCLUDE_CN_FRO NOTE: At present, this summary email essentially duplicate...
1
1
0
[{"id": "G0", "claim": "Add a note to the DISABLE_NOTIFICATION_PLUGINS docs that the option can be useful in a test environment, where you would want to trigger and test the notification job without actually sending out the notification.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": ...
null
Netflix__lemur__3536
Netflix/lemur
3,536
defect
54d6145f1c6ff529de5ba81068c898a65c388a1c
9024ab21307acbfd7df660e62199e20ddbf39a6d
Add notification emails for expiring deployed certificates
Adds a new notification type (for Lemur security team only) that notifies when an expiring certificate is still detected at any of its associated domains. I also considered adding this logic to the regular expiration notification and notification summary emails; it's possible to do this, but I'm a little hesitant ab...
diff --git a/docs/administration.rst b/docs/administration.rst index 896dfe2b21..30b5ff0fc0 100644 --- a/docs/administration.rst +++ b/docs/administration.rst @@ -442,7 +442,7 @@ The following configuration options are supported: If using SMTP as your provider you will need to define additional configuration o...
9
7
2
[{"id": "G0", "claim": "The query should drop the `.filter(not_(Certificate.replaced.any()))` condition so that certificates with auto-rotation enabled that actually require manual rotation still get the expiring-deployed notification.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "int...
null
Netflix__lemur__3581
Netflix/lemur
3,581
defect
1899f538b708345c03afd9429e47066186fe8850
dcc2581760418adce9187234eb03ba5ef664c442
Add notifications when reissue fails or a cert is reissued with no endpoints
Adds two new notification types: * When a certificate fails to be re-issued * When a certificate is successfully re-issued, but has no associated endpoints Both types are (currently) sent exclusively to the certificate owner and security team.
diff --git a/docs/administration.rst b/docs/administration.rst index 5d319a7ddf..f576cd8153 100644 --- a/docs/administration.rst +++ b/docs/administration.rst @@ -329,6 +329,8 @@ Supported types: * CA certificate expiration * Pending ACME certificate failure * Certificate rotation +* Certificate reissued with no end...
2
1
1
[{"id": "G0", "claim": "In request_reissue the `notify` parameter is immediately overwritten by `certificate.notify`, so the CLI --notify flag has no effect; the reviewer asks whether the intent was `notify = certificate.notify and notify` or control solely via the input parameter.", "category": "design", "verdict": "s...
null
Netflix__lemur__3597
Netflix/lemur
3,597
defect
8ebfb9dd6b8a341436198d8b846124a5b9773454
5eb048b6bc3c484f37fbd295b641885199f2d106
Improving robustness of Check revoke
- adding timeouts to prevent the OCSP and curl lookups from hanging - adding pagination for the query, to improve DB query performance - adding metric to monitor OCSP failures (`unauthorized`) - adding better logging about the progress of job - adding a final report on OCSP/CRL failures
diff --git a/lemur/certificates/cli.py b/lemur/certificates/cli.py index f19ee443e2..382698b2ae 100644 --- a/lemur/certificates/cli.py +++ b/lemur/certificates/cli.py @@ -687,37 +687,74 @@ def check_revoked(): "function": f"{__name__}.{sys._getframe().f_code.co_name}", "message": "Checking for revoked...
4
4
3
[{"id": "G0", "claim": "The `certificate_revoked_checked` gauge is computed as `page * count + len(certs)`, which over-counts because the last page contributes only `len(certs)` certificates; it should be `(page - 1) * count + len(certs)`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ...
null
Netflix__lemur__3612
Netflix/lemur
3,612
defect
264ab09c19cc66f4c9395a6054579d1c3336697e
b302b16b2b1a9b04a9523e3c6fb15745f81d90dc
Fix immediate (synchronous) acme creation
A seldom-used, but useful feature is the ability to create certificates immediately with `ACMEIssuerPlugin` (specifically for `AcmeDnsChallenge`), rather than [passing the work asynchronously](https://github.com/Netflix/lemur/blob/master/lemur/certificates/service.py#L476) to celery. I noticed that this feature exists ...
diff --git a/lemur/plugins/lemur_acme/challenge_types.py b/lemur/plugins/lemur_acme/challenge_types.py index 3561dfcd6f..d8be7c3feb 100644 --- a/lemur/plugins/lemur_acme/challenge_types.py +++ b/lemur/plugins/lemur_acme/challenge_types.py @@ -15,11 +15,14 @@ from flask import current_app from lemur.authorizations i...
4
1
1
[{"id": "G0", "claim": "The new synchronous create-immediately path should capture exceptions and send metrics on failed attempts, similar to the async get_ordered_certificate() code.", "category": "observability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ACME DNS syn...
null
Netflix__lemur__3666
Netflix/lemur
3,666
defect
12dc0c3a7356ded7464dc29fc7b551d9254dd7f0
35efbbc767838a05d85c57ecfec064c4a71f88e2
ACME plugin improvement
Lemur's ACME DNS plugin was not considering already valid hostnames, and repeating the expensive DNS domain ownership validation. This improvement would allow the ACME DNS to benefit from still valid hostnames.
diff --git a/lemur/plugins/lemur_acme/acme_handlers.py b/lemur/plugins/lemur_acme/acme_handlers.py index 46f075d8dd..4ca474c886 100644 --- a/lemur/plugins/lemur_acme/acme_handlers.py +++ b/lemur/plugins/lemur_acme/acme_handlers.py @@ -22,7 +22,7 @@ from acme import challenges, errors, messages from acme.client import...
2
2
1
[{"id": "G0", "claim": "The new variable `hostname_still_validatd` in start_dns_challenge should be spelled `hostname_still_validated`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tests need to be updated to cover the changed get_dns_chal...
null
Netflix__lemur__3708
Netflix/lemur
3,708
defect
26601920820e6138fe78b7d5fc9af18019af5e2b
0c84c1bc44d634364b4fa0d056adaf876437f65b
server options only for sub-plugin options, not for option of type plugin
Creating a destination with Export Plugin is resulting in below error. ``` KeyError: 'plugin_object' at lemur.destinations.service.create(lemur/destinations/service.py:32) ``` I believe the changes #3570 are relevant to options of type other than plugin, otherwise later in the code it errors on missing plugin de...
diff --git a/lemur/schemas.py b/lemur/schemas.py index e3a286d1bf..d050293047 100644 --- a/lemur/schemas.py +++ b/lemur/schemas.py @@ -214,25 +214,26 @@ def get_object(self, data, many=False): f"Unable to load plugin options. Slug: {data['slug']} Option {option_name}" ) ...
1
1
0
[{"id": "G0", "claim": "The sub-plugin-option validation block nested under the unconditional else should instead be an else-if (elif) case for data[\"plugin_object\"].", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__lemur__3759
Netflix/lemur
3,759
defect
c6a13bf25f4edd11f67f8beb54313b75287c8bd4
02d7021783bd1534eb35c478fe3089e66f3b1e88
Adding Endpoint type
Lemur endpoints can be of different types, and the certificates attached to them, can be stored in different certificate registries such as AWS IAM or AWS ACM, with a unique path. This changes modifies the endpoint table to contain two new columns and populates them during the endpoint sync job: - registry_type: ...
diff --git a/lemur/endpoints/models.py b/lemur/endpoints/models.py index 6e44fe71c2..79ba455b79 100644 --- a/lemur/endpoints/models.py +++ b/lemur/endpoints/models.py @@ -56,6 +56,8 @@ class Endpoint(db.Model): policy_id = Column(Integer, ForeignKey("policy.id")) policy = relationship("Policy", backref="endpo...
2
2
0
[{"id": "G0", "claim": "The migration file should have a real docstring description instead of \"empty message\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docstring examples in the ARN-parsing methods should also show each method's outpu...
null
Netflix__lemur__3845
Netflix/lemur
3,845
defect
612a9cd1925cb10115a828f235d61cd2385bafb1
689cf1f12ea2128160e96b927a6208ccd621a01d
Make CN Optional
As we are [moving away from use of CN](https://unmitigatedrisk.com/?p=381) and using only SAN for certificates, this PR updates lemur to treat CN as optional field, if SAN is provided 1. In Lemur UI, adding SAN removes validation on CN field making it optional 2. On the backend, CN is treated as optional field if aut...
diff --git a/docs/administration.rst b/docs/administration.rst index 467f6e50fd..d85aafb9af 100644 --- a/docs/administration.rst +++ b/docs/administration.rst @@ -203,6 +203,16 @@ Basic Configuration DEFAULT_VALIDITY_DAYS = 1095 +.. data:: OPTIONAL_COMMON_NAME_AUTHORITIES + :noindex: + + Use this...
5
4
0
[{"id": "G0", "claim": "The optional-CN flag should live in the options of an Authority instead of a new global config parameter (OPTIONAL_COMMON_NAME_AUTHORITIES).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The exception-logging code in service.crea...
null
Netflix__lemur__3867
Netflix/lemur
3,867
defect
4a993aff026c6dd18b9feccb454044a248cfc002
ae0f948024c555260d1bff6ab1da3317fd36c707
Ignore ELBs by account or tag
* If config option 'AWS_ELB_IGNORE_TAG' is set, ignore any ELB or ELBv2 reporting a tag with this name. Lemur will not show such ELBs in the UI or attempt to rotate certificates on them. * Add endpointType option 'none' for a source, to disable ELB discovery for an entire account, while leaving certificate discov...
diff --git a/lemur/plugins/lemur_aws/elb.py b/lemur/plugins/lemur_aws/elb.py index ad5d6dd210..f41d3459a7 100644 --- a/lemur/plugins/lemur_aws/elb.py +++ b/lemur/plugins/lemur_aws/elb.py @@ -63,6 +63,7 @@ def is_valid(listener_tuple): return listener_tuple +@sts_client("elb") def get_all_elbs(**kwargs): ...
1
1
0
[{"id": "G0", "claim": "The new filtering code is hard to follow because the formats of `tags` and `elb` are not shown, and an example formatting of them should be added to make it easier to follow.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__lemur__4682
Netflix/lemur
4,682
defect
c90d6b2a6ac787fb88136d7b45dd2c84401ae36c
a9854f515af67015254b756e9cbb6ec223db7418
allow custom entrust eku and digicert use_csr_fields
Currently, it's not possible to create a lemur or digicert cis cert with custom ekus. This change adds the ability to specify entrust EKU settings via configuration and to defer to the csr ekus for digicert cis
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 21f0156742..22ae823fe4 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,10 @@ Unreleased To avoid confusion, the debug app configuration property has been replaced with the standard DEBUG flask app config. Added ability for new versions of LEMUR_TOKEN_SECRET v...
1
1
0
[{"id": "G0", "claim": "The new DIGICERT_CIS_USE_CSR_FIELDS configuration option should also be documented in docs/administration.rst, as the PR documents its new Entrust options there but not this Digicert option.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Netflix__lemur__4704
Netflix/lemur
4,704
defect
2ecfeb27db03bc87cd38204f8785120b7bfd4f37
d7886e7a8170f2c1bf27a4f57fdae48c2d05fe12
Add source/destination aws ACM plugin
Added: - AWS ACM (AWS certificate manager) source plugin - AWS ACM (AWS certificate manager) destination plugin
diff --git a/lemur/plugins/lemur_aws/acm.py b/lemur/plugins/lemur_aws/acm.py new file mode 100644 index 0000000000..ace4174278 --- /dev/null +++ b/lemur/plugins/lemur_aws/acm.py @@ -0,0 +1,178 @@ +""" +.. module: lemur.plugins.lemur_aws.acm + :platform: Unix + :synopsis: Contains helper functions for interactive ...
6
6
2
[{"id": "G0", "claim": "The new acm.py module header should be updated (suggested replacement: an empty moduleauthor line) instead of carrying the copied Kevin Glisson moduleauthor attribution.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Docu...
null