Skip to content

Commit

Permalink
Merge branch 'master' into spring-boot-3.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kozjan authored Sep 17, 2024
2 parents 50a28ba + c708978 commit ce9aff7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
### Changed
- Spring Boot update to 3.3.2

## [0.21.1]
### Changed
- Added additional logs to SimpleCache

## [0.21.0]
### Changed
- Added `paths` field in API to support Glob Patterns
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,15 @@ public DeltaWatch createDeltaWatch(
String version) {
long watchId = watchCount.incrementAndGet();
status.setWatch(watchId, watch);
watch.setStop(() -> status.removeWatch(watchId));
watch.setStop(() -> {
LOGGER.debug("removing watch {}", watchId);
status.removeWatch(watchId);
});

if (LOGGER.isDebugEnabled()) {
LOGGER.debug("open watch {} for {}[{}] from node {} for version {}",
LOGGER.debug("open watch {} for {} from node {} for version {}",
watchId,
url,
String.join(", ", resources),
group,
version);
}
Expand Down Expand Up @@ -371,12 +374,6 @@ protected void respondWithSpecificOrder(T group,
String version = snapshot.version(watch.request().getResourceType(), watch.request().getResourceNamesList());

if (!watch.request().getVersionInfo().equals(version)) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("responding to open watch {}[{}] with new version {}",
id,
String.join(", ", watch.request().getResourceNamesList()),
version);
}

respond(watch, snapshot, group);

Expand Down Expand Up @@ -413,12 +410,6 @@ protected void respondWithSpecificOrder(T group,
String version = snapshot.version(watch.request().getResourceType(), Collections.emptyList());

if (!watch.version().equals(version)) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("responding to open watch {}[{}] with new version {}",
id,
String.join(", ", watch.trackedResources().keySet()),
version);
}

List<String> removedResources = snapshotRemovedResources.stream()
.filter(s -> watch.trackedResources().get(s) != null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ public void invalidNamesListShouldReturnWatcherWithNoResponseInAdsMode() {
false,
false
);

assertThatWatchIsOpenWithNoResponses(new WatchAndTracker(watch, responseTracker));
}

Expand Down

0 comments on commit ce9aff7

Please sign in to comment.