mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
5dd38d54e8
* ledger-api-test-tool: Increase the duration when watching health. This should hopefully stop CI from flaking out. * reference-v2/sandbox: Avoid unnecessary companion object constructors. I like indirection… when it does something. * ledger: Propagate empty health checks throughout the services. * reference: Remove duplication from the ReferenceServer object. * ledger-api-common: Actually query a "reporter" in the health service. * ledger-api-common: Report health per-component when required. * ledger-api-health: Use a Map to represent components for health checks. * sandbox: Fix warnings in SqlLedgerSpec. * ledger-api-common: Throw GrpcHealthService errors inside the Future. * ledger: Implement health checks against the PostgreSQL connection. Without proper testing, because I am not great at this. * sandbox: Remove duplication and fix warnings in PostgresAround. * sandbox: Test the SQL Ledger's health reporting on failure. * sandbox: Don't report as unhealthy until 3 connections fail. * ledger-api-health: Remove unused parts of the API. Bit of premature design there. * sandbox: Rename the "ledger" health check to "write". * participant-state: Add the ReportsHealth trait to ReadService. * ledger-api-common: `Future.fromTry(Try(…))` -> `Future(…)`. * ledger-api-common: Make it clearer that StubReporter closes over health. * ledger-api-common: Explain the HealthService watch tests with comments. * sandbox: Clean up SqlLedger a bit. * sandbox: Don't try and stop PostgreSQL twice in PostgresAround. * bazel_tools: Windows rlocation lookups need to be with forward slashes. * release: Fix case of "true". * ledger-api-common: Make `GrpcHealthService::matchResponse` return a Try. * ledger-api-common: Make `GrpcHealthServiceSpec` async. * sandbox: Make a couple of DB classes final. * sandbox: Avoid importing `X._` in PostgresAround. * sandbox: Add clues to the SqlLedgerSpec's multiple assertions. * sandbox: If PostgreSQL doesn't come back up, keep retrying. * sandbox: Remove duplication in SqlLedgerSpec. * sandbox: In SqlLedgerSpec, actually wait for the health to change. * sandbox: In PostgresAround, make stopping PostgreSQL idempotent. * sandbox: Simplify the SqlLedgerSpec to make it work on CI. It's worth a shot. * ledger-api-common: Simplify the GrpcHealthServiceSpec a little. And add a changelog. CHANGELOG_BEGIN - [Ledger API Server] Add a health check endpoint conforming to the `GRPC Health Checking Protocol <https://github.com/grpc/grpc/blob/master/doc/health-checking.md>`_. - [Ledger API Server] Add health checks for index database connectivity. - [Participant State API] Add a mandatory ``currentHealth()`` method to ``IndexService``, ``ReadService`` and ``WriteService``. CHANGELOG_END * sandbox: Improve the Javadoc layout for DbDispatcher. * sandbox: Capitalize constants in SqlExecutor. * ledger-api-health: Convert HealthStatus to an abstract class.
36 lines
1.1 KiB
Python
36 lines
1.1 KiB
Python
# Copyright (c) 2019 The DAML Authors. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
load(
|
|
"//bazel_tools:scala.bzl",
|
|
"da_scala_library",
|
|
"da_scala_test_suite",
|
|
)
|
|
|
|
compileDependencies = [
|
|
"@maven//:com_typesafe_akka_akka_stream_2_12",
|
|
"//daml-lf/archive:daml_lf_dev_archive_java_proto",
|
|
"//daml-lf/data",
|
|
"//daml-lf/language",
|
|
"//daml-lf/transaction",
|
|
"//ledger/ledger-api-domain",
|
|
"//ledger/ledger-api-health",
|
|
]
|
|
|
|
da_scala_library(
|
|
name = "participant-state-index",
|
|
srcs = glob(["src/main/scala/com/daml/ledger/participant/state/index/v2/*.scala"]),
|
|
resources = glob(["src/main/resources/**/*"]),
|
|
tags = ["maven_coordinates=com.daml.ledger:participant-state-index:__VERSION__"],
|
|
visibility = [
|
|
"//visibility:public",
|
|
],
|
|
runtime_deps = [],
|
|
deps = compileDependencies + [
|
|
"@maven//:com_typesafe_akka_akka_actor_2_12",
|
|
"@maven//:com_google_protobuf_protobuf_java",
|
|
"@maven//:org_scalaz_scalaz_core_2_12",
|
|
"//ledger/participant-state:participant-state",
|
|
],
|
|
)
|