-
Notifications
You must be signed in to change notification settings - Fork 835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Java dependencies #903
Update Java dependencies #903
Conversation
Looks good IMO, all changes seem to be non-breaking, and major ones are only on tracing. Would be good to get signoff from @cliveseldon |
/uncc @arnaudvl |
/cc @cliveseldon |
@adriangonz is this PR still WIP? |
Thanks for your feedback @axsaucedo ! I still haven’t got through the full set of dependencies, that’s why I consider it as WIP. However, to keep it small, perhaps it would make sense to split it into smaller chunks? I’m confident about all the changes prior to the tracing updates. Sent with GitHawk |
engine/src/main/java/io/seldon/engine/api/rest/RestClientController.java
Outdated
Show resolved
Hide resolved
@adriangonz Just a few questions. Apart from that seem good. Might want to run the new e2e tests in Kind to check they all pass and then we can approve. |
….util.concurrent.ConcurrentHashMap
@axsaucedo @cliveseldon I just finished updating all the first-level Java dependencies. All the relevant changes are listed on this PR and you can find a brief discussion on changes for each package in #902. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cliveseldon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
failed to trigger Pull Request pipeline
|
This PR addresses issue #902.
Changelog
We will split the changelog by the update increments shown in issue #902. Changes are only shown for version updates which required changes on the source code other than just a version change in
pom.xml
.Update
spring
andspring-boot
Update to
[email protected]
spring-boot-properties-migrator
to help migrating application properties. This is recommended on the upgrade guide.RestTemplate
has changed. As a consequence, on the tests, we now need to mock therestTemplate.getRequestFactory()
method as well.org.springframework.boot.context.embedded
imports now point toorg.springframework.boot.web.servlet
andorg.springframework.boot.web.embedded
. This is more detailed in this section of the upgrade guide.*Customizer
classes have also changed slightly in its structure. More info can be found here.micrometer-spring-legacy
is no longer required, since it's already included into[email protected]
. All theio.micrometer.spring
imports now point toorg.springframework.boot.actuate.metrics
.spring-boot-actuator
endpoints:endpoints.prometheus.sensitive
attribute, since that's now handled explicitly byspring-security
. Since we don't usespring-security
, we can remove that line. Likewise, there is no longer aendpoints.prometheus.id
attribute, since theid
is now considered immutable./prometheus
endpoint, we enabled it by adding it to themanagement.endpoints.web.exposure.include
list and changed the base path of the actuator endpoints to/
withmanagement.endpoints.web.base-path
./health
,/info
and/prometheus
, every otherspring-boot-actuator
endpoint will now return a404
. Before, this used to be a401
. To bring back the401
s, we would need to introducespring-security
, enable these endpoints and configure the401
there.@Scheduled
tasks were enabled indirectly by some other piece of config. However, after the update, we are required to enable them explicitly adding the@EnableScheduling
annotation. This affects theSeldonGraphReadyChecker
, since it checks periodically if the inference graph is ready. https://github.com/SeldonIO/seldon-core-mirror1/blob/ca4ae76a9379cdb47eaa1ecc211eb43e34f874dd/engine/src/main/java/io/seldon/engine/api/rest/SeldonGraphReadyChecker.java#L111-L118Update
com.google.protobuf
packages${grpc.version}
variable topom.xml
and set tov3.9.2
.Update
opentracing-grpc
,opentracing-rest
andopentracing-api
packagesTracingClientInterceptor
andTracingServerInterceptor
as per Rename to TracingClientInterceptor and TracingServerInterceptor opentracing-contrib/java-grpc#45.newBuilder
to construct new interceptor instances as per Making TracingClientInterceptor.Builder constructor private opentracing-contrib/java-grpc#47.Span
is created as some methods have been deprecated.Update
org.apache.curator
packages${curator.version}
variable topom.xml
and set tov4.2.0
.org.jboss.netty.util.internal.ConcurrentHashMap
forjava.util.concurrent.ConcurrentHashMap
.