Conversation
f40fbee to
da3e2c9
Compare
210376c to
b39e647
Compare
da3e2c9 to
b0f6345
Compare
ZPascal
left a comment
There was a problem hiding this comment.
We should discuss the strategy for shipping the changes (breaking vs. non-breaking).
...c/main/java/org/cloudfoundry/reactor/tokenprovider/_ClientCredentialsGrantTokenProvider.java
Show resolved
Hide resolved
...t-reactor/src/main/java/org/cloudfoundry/reactor/tokenprovider/AbstractUaaTokenProvider.java
Outdated
Show resolved
Hide resolved
...y-operations/src/main/java/org/cloudfoundry/operations/applications/DefaultApplications.java
Show resolved
Hide resolved
...erations/src/test/java/org/cloudfoundry/operations/applications/DefaultApplicationsTest.java
Outdated
Show resolved
Hide resolved
...y-operations/src/main/java/org/cloudfoundry/operations/applications/DefaultApplications.java
Show resolved
Hide resolved
cloudfoundry-client/src/main/java/org/cloudfoundry/doppler/DopplerClient.java
Outdated
Show resolved
Hide resolved
19f2787 to
a3d858e
Compare
3f23bef to
ad6bacf
Compare
ad6bacf to
b7800f7
Compare
|
Added new commits that should address requested changes in cloudfoundry#1237 . Here are follow up links that show when |
Use LogCacheClient.read() for recent logs (the default), fall back to Doppler streaming when recent is explicitly false. Remove logCacheLogs() integration test — it was a temporary reference for the direct LogCache API, now redundant since logs() exercises the same path. Remove logsRecent() and its helpers likewise.
LogCache has been available since cf-deployment v3.0.0 (July 2018). Lower the version gate from PCF_4_v2 to PCF_2_3 and update the javadoc to reflect that the test now exercises the LogCache-backed path.
logs(ApplicationLogsRequest) now uses Log Cache internally, so Operations API users do not need to migrate.
b7800f7 to
dd0ffb0
Compare
Kehrlann
left a comment
There was a problem hiding this comment.
Looks good, minor comments; the important bit is keeping @Deprecated but deprecated
| * List the applications logs. | ||
| * Only works with {@code Loggregator < 107.0}, shipped in {@code CFD < 24.3} | ||
| * and {@code TAS < 4.0}. | ||
| * List the applications logs. Uses Log Cache under the hood. |
There was a problem hiding this comment.
Please add a caveat that only "recent logs" use logcache, while streaming logs use Doppler and only work with Loggregator < 107.0 / CFC < 24.3
There was a problem hiding this comment.
AFAIU the "only work with Loggregator < 107.0 / CFC < 24.3" part is not accurate for streaming logs.
Loggregator v107.0.0 only removed the RecentLogsHandler from Traffic Controller - not Doppler or the streaming endpoints. The Doppler instance group is still present in the cf-deployment manifest at both v24.3.0 and the latest v55.0.0.
My suggestion would be to add a note clarifying that only recent logs use LogCache, while streaming logs still use Doppler (which remains available on current CF deployments just not in the new Shared Nothing Architecture).
There was a problem hiding this comment.
ah, awesome! thanks for the clarification 🙏
| * @param request the application logs request | ||
| * @return the applications logs | ||
| */ | ||
| Flux<Log> logsRecent(ReadRequest request); |
There was a problem hiding this comment.
Keep the method and mark it @Deprecated, we'll remove it in 6.0
There was a problem hiding this comment.
This removes the method from our branch, not from the main branch. Are you sure this is what you mean? It is kind of weird to introduce a new method and mark it as @deprecated ?
There was a problem hiding this comment.
My bad, got confused with both PRs. Let's not introduce this.
| ApplicationLogType.from( | ||
| logMessage.getMessageType().name())) | ||
| .build()); | ||
| if (Optional.ofNullable(request.getRecent()).orElse(true)) { |
There was a problem hiding this comment.
Consider something more straightforward
| if (Optional.ofNullable(request.getRecent()).orElse(true)) { | |
| if ((request.getRecent() != null || request.getRecent() == true)) { |
| * @param request the application logs request | ||
| * @return the applications logs | ||
| */ | ||
| Flux<Log> logsRecent(ReadRequest request); |
There was a problem hiding this comment.
This removes the method from our branch, not from the main branch. Are you sure this is what you mean? It is kind of weird to introduce a new method and mark it as @deprecated ?
| * List the applications logs. | ||
| * Only works with {@code Loggregator < 107.0}, shipped in {@code CFD < 24.3} | ||
| * and {@code TAS < 4.0}. | ||
| * List the applications logs. Uses Log Cache under the hood. |
There was a problem hiding this comment.
AFAIU the "only work with Loggregator < 107.0 / CFC < 24.3" part is not accurate for streaming logs.
Loggregator v107.0.0 only removed the RecentLogsHandler from Traffic Controller - not Doppler or the streaming endpoints. The Doppler instance group is still present in the cf-deployment manifest at both v24.3.0 and the latest v55.0.0.
My suggestion would be to add a note clarifying that only recent logs use LogCache, while streaming logs still use Doppler (which remains available on current CF deployments just not in the new Shared Nothing Architecture).
Please merge with rebase
Commit messages say it all.