Skip to content

Commit

Permalink
GH-1333: don't delete the expiration index, just avoid the NPE
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Vermillard <julien@vermillard.com>
  • Loading branch information
jvermillard authored and sbernard31 committed Oct 21, 2022
1 parent bc07e46 commit c96ae82
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -829,11 +829,7 @@ public void run() {

for (byte[] endpoint : endpointsExpired) {
byte[] regBytes = j.get(toEndpointKey(endpoint));
if (regBytes == null) {
LOG.warn("An expiration index points to an unknown registration: '{}'",
new String(endpoint, UTF_8));
j.zrem(EXP_EP, endpoint);
} else {
if (regBytes != null) {
Registration r = deserializeReg(regBytes);
if (!r.isAlive(gracePeriod)) {
Deregistration dereg = removeRegistration(j, r.getId(), true);
Expand Down

0 comments on commit c96ae82

Please sign in to comment.