Skip to content
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

Readiness & liveness probes #563

Merged
merged 33 commits into from
May 11, 2024
Merged

Readiness & liveness probes #563

merged 33 commits into from
May 11, 2024

Conversation

novoj
Copy link
Collaborator

@novoj novoj commented May 11, 2024

No description provided.

novoj and others added 30 commits May 1, 2024 10:05
Readiness probe implemented and tested.
…ent-not-working' into 550-provide-health-check-for-docker-image

# Conflicts:
#	docker/Dockerfile
#	evita_external_api/evita_external_api_system/src/main/java/io/evitadb/externalApi/system/SystemProviderRegistrar.java
Liveness done, but not manually tested.
Full implementation manually tested.
…r-image

# Conflicts:
#	evita_engine/src/main/java/io/evitadb/core/SessionRegistry.java
…ocker-image

550 provide health check for docker image
Bumps [org.bouncycastle:bcprov-jdk18on](https://github.com/bcgit/bc-java) from 1.77 to 1.78.
- [Changelog](https://github.com/bcgit/bc-java/blob/main/docs/releasenotes.html)
- [Commits](https://github.com/bcgit/bc-java/commits)

---
updated-dependencies:
- dependency-name: org.bouncycastle:bcprov-jdk18on
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
…tle-bcprov-jdk18on-1.78

build(deps): bump org.bouncycastle:bcprov-jdk18on from 1.77 to 1.78
Added link between readiness and liveness probe. Allow to configure system API port and start delay in Dockerfile using environment variables.
Signed-off-by: Jan Novotný <novotnaci@gmail.com>
Signed-off-by: Jan Novotný <novotnaci@gmail.com>
Fixed work with service loader and probe instantiation.
According to heapdump - current way of switching catalog reference is not safe and there are references to old catalogs trapped in "catalogAccessor" lambda in entity collection. These changes aim to clarify the process of transitioning from one catalog version to another and avoiding the reference leak.
According to heapdump - current way of switching catalog reference is not safe and there are references to old catalogs trapped in "catalogAccessor" lambda in entity collection. These changes aim to clarify the process of transitioning from one catalog version to another and avoiding the reference leak.
…tion-handling

fix(#557): memory leak during transaction handling
When the entity is fetched from the data store, it's entity body storage part is always fetched twice. This becomes a problem when a large number of entities are fetched from the data store, and when the OS file cache is cold, it can mean twice the latency. This fetching is not entirely necessary if we refactor the `enrichEntity` method into two separate ones and call the second one only conditionally.
We need to write better fuzzy tests that would allow us to exterminate the edge cases in the ChainIndex. It seems that the real production systems may behave sometimes chaotically till they return back to consistent state.
…terexceptions-in-chainindex

fix(#531): Random errors and NullPointerExceptions in ChainIndex
…ange data type

If the client uses `attributeGreaterThan("validity", OffsetDateTime.now())`, the exception of a different type will be thrown. He/she needs to update the constraint to `attributeGreaterThan("validity", DateTimeRange.since(OffsetDateTime.now()))` or `attributeGreaterThan("validity", DateTimeRange.between(OffsetDateTime.now(), OffsetDateTime.now()))`, both of which work fine, but this approach is counterintuitive. We should handle the passing of OffsetDateTime and automatically convert it to a time (i.e. the `between` variant) internally to avoid confusion for developers.
…offsetdatetime-against-datetimerange-data-type

fix(#556): Add support for comparing OffsetDateTime against DateTimeR…
@novoj novoj self-assigned this May 11, 2024
novoj added 2 commits May 11, 2024 21:18
Fixes revealed by documentation tests. Entities used wrong predicates when prefetched.
@novoj novoj merged commit f00fa03 into master May 11, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant