Skip to content

Commit

Permalink
fix: intermittent test failure due to invalid cache (apache#8405)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdhabalia authored Oct 29, 2020
1 parent a9e2f7e commit 9d74007
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ public void updateBookieRackInfo(@PathParam("bookie") String bookieAddress, @Que

localZk().setData(ZkBookieRackAffinityMapping.BOOKIE_INFO_ROOT_PATH, jsonMapper().writeValueAsBytes(racks),
entry.get().getValue().getVersion());
localZkCache().invalidate(ZkBookieRackAffinityMapping.BOOKIE_INFO_ROOT_PATH);
log.info("Updated rack mapping info for {}", bookieAddress);
} else {
// Creates the z-node with racks info
Expand Down

0 comments on commit 9d74007

Please sign in to comment.