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

Changing oracle backend from using varray to json array #9943

Merged
merged 4 commits into from
Jun 14, 2021

Conversation

danielporterda
Copy link
Contributor

@danielporterda danielporterda commented Jun 9, 2021

Pull Request Checklist

  • Read and understand the contribution guidelines
  • Include appropriate tests
  • Set a descriptive title and thorough description
  • Add a reference to the issue this PR will solve, if appropriate
  • Include changelog additions in one or more commit message bodies between the CHANGELOG_BEGIN and CHANGELOG_END tags
  • Normal production system change, include purpose of change in description

NOTE: CI is not automatically run on non-members pull-requests for security
reasons. The reviewer will have to comment with /AzurePipelines run to
trigger the build.

This change modifies how we store several fields in oracle from using varrays to JSON arrays. It changes the database and makes concomitant changes to the DAO. No interface changes. Should be low regression risk, minimal overlap with postgres or h2 backend.

@danielporterda
Copy link
Contributor Author

was intending just to put this up for Brian to do a first pass over

CHANGELOG_BEGIN
CHANGELOG_END
@danielporterda danielporterda force-pushed the i6196_varray_to_json_array branch from 27e5828 to f5e50ba Compare June 9, 2021 18:07
@cocreature
Copy link
Contributor

was intending just to put this up for Brian to do a first pass over

You can turn it into a draft to make it clear that it’s not quite ready for the general public.

@dasormeter
Copy link
Collaborator

@danielporterda as discussed on slack also make sure you rerun ./fmt.sh - there is one bazel formatting and a few scalafmt thing it is moaning about

	modified:   ledger/participant-integration-api/src/main/scala/platform/store/Conversions.scala
	modified:   ledger/participant-integration-api/src/main/scala/platform/store/dao/JdbcLedgerDao.scala
	modified:   ledger/participant-integration-api/src/main/scala/platform/store/dao/events/EventsTable.scala
	modified:   ledger/participant-integration-api/src/main/scala/platform/store/dao/events/EventsTableFlatEventsRangeQueries.scala
	modified:   ledger/participant-integration-api/src/main/scala/platform/store/dao/events/SqlFunctions.scala```

@danielporterda danielporterda marked this pull request as draft June 9, 2021 19:23
@dasormeter
Copy link
Collaborator

hiya @danielporterda you can also cleanup the VARRAY handling code now as part of this PR

  1. Remove definition of the various VARRAY types in the Oracle V1__init.sql

    create type VARCHAR_ARRAY as VARRAY (32767) OF VARCHAR2(4000);
    /
    create type SMALLINT_ARRAY as VARRAY (32767) of SMALLINT;
    /
    create type BYTE_ARRAY_ARRAY as VARRAY (32767) of RAW(2000);
    /
    create type TIMESTAMP_ARRAY as VARRAY (32767) of TIMESTAMP;
    /
    create type BOOLEAN_ARRAY as VARRAY (32767) of NUMBER(1, 0);
    /

  2. Remove oracle specific import and createArray conversion code in Conversions.scala

@SuppressWarnings(Array("org.wartremover.warts.ArrayEquals"))
abstract sealed class ArrayToStatement[T](oracleTypeName: String)
extends ToStatement[Array[T]]
with NotNullGuard {
override def set(s: PreparedStatement, index: Int, v: Array[T]): Unit = {
if (v == (null: AnyRef)) {
s.setNull(index, JDBCType.ARRAY.getVendorTypeNumber, oracleTypeName)
} else {
s.setObject(
index,
unwrapConnection(s).createARRAY(oracleTypeName, v.asInstanceOf[Array[AnyRef]]),
JDBCType.ARRAY.getVendorTypeNumber,
)
}
}
}
implicit object ByteArrayArrayToStatement
extends ArrayToStatement[Array[Byte]]("BYTE_ARRAY_ARRAY")
implicit object TimestampArrayToStatement extends ArrayToStatement[Timestamp]("TIMESTAMP_ARRAY")
implicit object RefPartyArrayToStatement extends ArrayToStatement[Ref.Party]("VARCHAR_ARRAY")
implicit object CharArrayToStatement extends ArrayToStatement[String]("VARCHAR_ARRAY")
implicit object IntegerArrayToStatement extends ArrayToStatement[Integer]("SMALLINT_ARRAY")
implicit object BooleanArrayToStatement
extends ArrayToStatement[java.lang.Boolean]("BOOLEAN_ARRAY")
implicit object InstantArrayToStatement extends ToStatement[Array[Instant]] {
override def set(s: PreparedStatement, index: Int, v: Array[Instant]): Unit = {
s.setObject(
index,
unwrapConnection(s).createARRAY("TIMESTAMP_ARRAY", v.map(java.sql.Timestamp.from)),
JDBCType.ARRAY.getVendorTypeNumber,
)
}
}
@SuppressWarnings(Array("org.wartremover.warts.ArrayEquals"))
implicit object StringOptionArrayArrayToStatement extends ToStatement[Option[Array[String]]] {
override def set(s: PreparedStatement, index: Int, stringOpts: Option[Array[String]]): Unit = {
stringOpts match {
case None => s.setNull(index, JDBCType.ARRAY.getVendorTypeNumber, "VARCHAR_ARRAY")
case Some(arr) =>
s.setObject(
index,
unwrapConnection(s)
.createARRAY("VARCHAR_ARRAY", arr.asInstanceOf[Array[AnyRef]]),
JDBCType.ARRAY.getVendorTypeNumber,
)
}
}
}
object IntToSmallIntConversions {
implicit object IntOptionArrayArrayToStatement extends ToStatement[Array[Option[Int]]] {
override def set(s: PreparedStatement, index: Int, intOpts: Array[Option[Int]]): Unit = {
val intOrNullsArray = intOpts.map(_.map(new Integer(_)).orNull)
s.setObject(
index,
unwrapConnection(s)
.createARRAY("SMALLINT_ARRAY", intOrNullsArray.asInstanceOf[Array[AnyRef]]),
JDBCType.ARRAY.getVendorTypeNumber,
)
}
}
}
private def unwrapConnection[T](s: PreparedStatement): OracleConnection = {
s.getConnection match {
case hikari: HikariProxyConnection =>
hikari.unwrap(classOf[OracleConnection])
case oracle: OracleConnection =>
oracle
case c: Connection =>
sys.error(
s"Unsupported connection type for creating Oracle integer array: ${c.getClass.getSimpleName}"
)
}
}
}

@@ -1392,8 +1393,8 @@ private[platform] object JdbcLedgerDao {
reason: RejectionReason,
): SimpleSql[Row] = {
import com.daml.platform.store.OracleArrayConversions._
SQL"insert into participant_command_completions(completion_offset, record_time, application_id, submitters, command_id, status_code, status_message) values ($offset, $recordTime, ${submitterInfo.applicationId}, ${submitterInfo.actAs
.toArray[String]}, ${submitterInfo.commandId}, ${reason.code.value()}, ${reason.description})"
SQL"insert into participant_command_completions(completion_offset, record_time, application_id, submitters, command_id, status_code, status_message) values ($offset, $recordTime, ${submitterInfo.applicationId}, ${submitterInfo.actAs.toJson.compactPrint}, ${submitterInfo.commandId}, ${reason.code
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dasormeter note for going forward with append-only these parse to json and then render string should go to the batching phase, and the DTO for injection should have already the string so we avoid blocking ingestion threads with dataconversion

@danielporterda danielporterda marked this pull request as ready for review June 11, 2021 15:44
Copy link
Collaborator

@dasormeter dasormeter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved, with small suggestion to avoid whitespace-only changes to EventsTableFlatEventsRangeQueries.scala

participant-integration-api bazel.build cleanup for ojdbc8.jar will be left to a follow-on PR tracked under issue #9976

ensuring indices are hit for json array fields in follow-on ticket #9975 pending discovery of that as a bottleneck

Copy link
Contributor

@nmarton-da nmarton-da left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice bunch of code removed 👍

@danielporterda danielporterda merged commit b6faace into main Jun 14, 2021
@danielporterda danielporterda deleted the i6196_varray_to_json_array branch June 14, 2021 13:34
azure-pipelines bot pushed a commit that referenced this pull request Jun 16, 2021
This PR has been created by a script, which is not very smart
and does not have all the context. Please do double-check that
the version prefix is correct before merging.

@stefanobaghino-da is in charge of this release.

Commit log:
```
adeba20 DPP-403 log flyway progress (#9964)
401069e prepare for upgrade to Scalaz 7.3.3 (#9997)
3ad9cd5 [JSON-API] Log templateId & choice name (if present) on command submissions in the json API (#10005)
af144e8 LF: Structure package loading errors (#9980)
3583fd1 [JSON-API] Log source and path of incoming http requests & the response with info level (#10007)
e49c7c8 [In-memory fan-out] BufferedTransactionsReader implementation [DPP-413] [DPP-414] (#9882)
acb7733 Release 1.14 RC 2 (#10006)
3d2d4b9 Don't duplicate log failed futures in the http json api (commandservice specific ones) (#9990)
0c32cf2 Clarify the semantics of DIV_INT64 in LF spec. (#10003)
b79e739 Fix Type (#10004)
998f106 Drop pkgIds argument from Engine.validatePackages (#9986)
ae5010f [Mutable state cache] Start cache from latest ledger head (#9998)
dd42a5a update maven_install_2.12.json (#9999)
66d38cd Storage query abstraction first sketch (#9959)
c750136 Just print out the operator name for the operation logging in CommandService.scala (#9989)
b6faace Changing oracle backend from using varray to json array (#9943)
603a4a4 Add date to log statements in the HTTP JSON service (#9988)
836a82a Add proper error handling for missing contract keys (#9972)
85667af Address npm vulnerabilities (#9978)
d7d6e37 LF: Structure Engine Errors. (#9971)
0adbbdc update Daml Hub auth in create-daml-app (#9973)
997a7d4 Use symlinks on Windows (#9969)
e4258e6 docs: tweak Exception intro (#9967)
b2c4ef8 rotate release duty after 1.14.0-snapshot.20210608.7123.0.3cb8d5c2 (#9933)
de7a462 Log call to submitAndWaitRequest with the command id provided in the log ctx (#9940)
630d021 Collect build-event-stream (#9831)
26e199a Rerelease 1.11.2 snapshot (#9965)
8399039 Remove broken dep from release job (#9963)
e1db529 DPP-390 configurable event decoding parallelism (#9931)
cc7af93 [docs] Remove link to the #daml-contributors (#9928)
f7ac3ba Release 1.11.2 snapshot attempt 2 (#9962)
4634147 Adds Indexer state to GRPC health checks [DPP-434] (#9951)
28c567b Release SDK 1.11.2 (#9957)
5f0f575 Define IncompleteTransaction for use by scenario-service (#9952)
b7fd833 Increase `eventually` timeout when waiting for queue to be killed (#9955)
ca0fb16 Fix collect_build_data job (#9956)
42030b2 Skip Scala_2_12 job on releases (#9954)
5e1ddfb LF: Fix specification of ArithmeticError (#9949)
3093a98 Forward port additional contract keys validation tests (#9944)
e541558 update NOTICES file (#9946)
db792a9 Proxy ledger API health endpoint in JSON API health endpoint (#9945)
13767b5 Load the correct logback file for the http json service respecting the deployment situation (#9938)
4e49cf6 `ledger-api-bench-tool` - Active contracts stream, completions stream [DPP-398, DPP-399] (#9857)
fce8e54 release 1.14.0-snapshot.20210608.7123.0.3cb8d5c2 (#9932)
ab55fb2 Handle module-prefixes in Java codegen (#9929)
7375e28 Force resolution for css what to 5.0.1 (#9925)
```
Changelog:
```
- [JSON API] The template id & choice name (if present) are now logged on command submissions in the Json API (at trace level)

- [JSON-API] The source and the path for incoming http requests are now logged
- [JSON-API] The http response for a request is now logged

- [JSON API] Errors which arise from the CommandService are not logged twice anymore (thus reducing noise)

- [JSON API] log statements now include the date next to the time
- [HTTP-JSON] Calls which trigger a submitAndWaitRequest are logged with the command id provided in the log ctx
[Integration Kit] The state of the participant indexer can now be checked via the GRPC health endpoint
- [JSON API] The healthcheck endpoint on the JSON API now proxies the
  health check endpoint on the underlying ledger. Previously it only
  queried for ledger end to determine ledger health.
[HTTP-JSON]
- fixed that json log output could not be enabled via cli options except via usage of env vars
- [Integration Kit] - ledger-api-bench-tool - reading active contract streams
- [Integration Kit] - ledger-api-bench-tool - Reading completions stream
- [Java Codegen] The Java codegen will now pick up the
  `module-prefixes` field from `daml.yaml` which can be used to handle
  module name collisions between different DALFs.
```

CHANGELOG_BEGIN
CHANGELOG_END
stefanobaghino-da pushed a commit that referenced this pull request Jun 16, 2021
This PR has been created by a script, which is not very smart
and does not have all the context. Please do double-check that
the version prefix is correct before merging.

@stefanobaghino-da is in charge of this release.

Commit log:
```
adeba20 DPP-403 log flyway progress (#9964)
401069e prepare for upgrade to Scalaz 7.3.3 (#9997)
3ad9cd5 [JSON-API] Log templateId & choice name (if present) on command submissions in the json API (#10005)
af144e8 LF: Structure package loading errors (#9980)
3583fd1 [JSON-API] Log source and path of incoming http requests & the response with info level (#10007)
e49c7c8 [In-memory fan-out] BufferedTransactionsReader implementation [DPP-413] [DPP-414] (#9882)
acb7733 Release 1.14 RC 2 (#10006)
3d2d4b9 Don't duplicate log failed futures in the http json api (commandservice specific ones) (#9990)
0c32cf2 Clarify the semantics of DIV_INT64 in LF spec. (#10003)
b79e739 Fix Type (#10004)
998f106 Drop pkgIds argument from Engine.validatePackages (#9986)
ae5010f [Mutable state cache] Start cache from latest ledger head (#9998)
dd42a5a update maven_install_2.12.json (#9999)
66d38cd Storage query abstraction first sketch (#9959)
c750136 Just print out the operator name for the operation logging in CommandService.scala (#9989)
b6faace Changing oracle backend from using varray to json array (#9943)
603a4a4 Add date to log statements in the HTTP JSON service (#9988)
836a82a Add proper error handling for missing contract keys (#9972)
85667af Address npm vulnerabilities (#9978)
d7d6e37 LF: Structure Engine Errors. (#9971)
0adbbdc update Daml Hub auth in create-daml-app (#9973)
997a7d4 Use symlinks on Windows (#9969)
e4258e6 docs: tweak Exception intro (#9967)
b2c4ef8 rotate release duty after 1.14.0-snapshot.20210608.7123.0.3cb8d5c2 (#9933)
de7a462 Log call to submitAndWaitRequest with the command id provided in the log ctx (#9940)
630d021 Collect build-event-stream (#9831)
26e199a Rerelease 1.11.2 snapshot (#9965)
8399039 Remove broken dep from release job (#9963)
e1db529 DPP-390 configurable event decoding parallelism (#9931)
cc7af93 [docs] Remove link to the #daml-contributors (#9928)
f7ac3ba Release 1.11.2 snapshot attempt 2 (#9962)
4634147 Adds Indexer state to GRPC health checks [DPP-434] (#9951)
28c567b Release SDK 1.11.2 (#9957)
5f0f575 Define IncompleteTransaction for use by scenario-service (#9952)
b7fd833 Increase `eventually` timeout when waiting for queue to be killed (#9955)
ca0fb16 Fix collect_build_data job (#9956)
42030b2 Skip Scala_2_12 job on releases (#9954)
5e1ddfb LF: Fix specification of ArithmeticError (#9949)
3093a98 Forward port additional contract keys validation tests (#9944)
e541558 update NOTICES file (#9946)
db792a9 Proxy ledger API health endpoint in JSON API health endpoint (#9945)
13767b5 Load the correct logback file for the http json service respecting the deployment situation (#9938)
4e49cf6 `ledger-api-bench-tool` - Active contracts stream, completions stream [DPP-398, DPP-399] (#9857)
fce8e54 release 1.14.0-snapshot.20210608.7123.0.3cb8d5c2 (#9932)
ab55fb2 Handle module-prefixes in Java codegen (#9929)
7375e28 Force resolution for css what to 5.0.1 (#9925)
```
Changelog:
```
- [JSON API] The template id & choice name (if present) are now logged on command submissions in the Json API (at trace level)

- [JSON-API] The source and the path for incoming http requests are now logged
- [JSON-API] The http response for a request is now logged

- [JSON API] Errors which arise from the CommandService are not logged twice anymore (thus reducing noise)

- [JSON API] log statements now include the date next to the time
- [HTTP-JSON] Calls which trigger a submitAndWaitRequest are logged with the command id provided in the log ctx
[Integration Kit] The state of the participant indexer can now be checked via the GRPC health endpoint
- [JSON API] The healthcheck endpoint on the JSON API now proxies the
  health check endpoint on the underlying ledger. Previously it only
  queried for ledger end to determine ledger health.
[HTTP-JSON]
- fixed that json log output could not be enabled via cli options except via usage of env vars
- [Integration Kit] - ledger-api-bench-tool - reading active contract streams
- [Integration Kit] - ledger-api-bench-tool - Reading completions stream
- [Java Codegen] The Java codegen will now pick up the
  `module-prefixes` field from `daml.yaml` which can be used to handle
  module name collisions between different DALFs.
```

CHANGELOG_BEGIN
CHANGELOG_END

Co-authored-by: Azure Pipelines DAML Build <[email protected]>
stefanobaghino-da added a commit that referenced this pull request Jun 16, 2021
    This PR has been created by a script, which is not very smart
    and does not have all the context. Please do double-check that
    the version prefix is correct before merging.

    @stefanobaghino-da is in charge of this release.

    Commit log:
    ```
    adeba20 DPP-403 log flyway progress (#9964)
    401069e prepare for upgrade to Scalaz 7.3.3 (#9997)
    3ad9cd5 [JSON-API] Log templateId & choice name (if present) on command submissions in the json API (#10005)
    af144e8 LF: Structure package loading errors (#9980)
    3583fd1 [JSON-API] Log source and path of incoming http requests & the response with info level (#10007)
    e49c7c8 [In-memory fan-out] BufferedTransactionsReader implementation [DPP-413] [DPP-414] (#9882)
    acb7733 Release 1.14 RC 2 (#10006)
    3d2d4b9 Don't duplicate log failed futures in the http json api (commandservice specific ones) (#9990)
    0c32cf2 Clarify the semantics of DIV_INT64 in LF spec. (#10003)
    b79e739 Fix Type (#10004)
    998f106 Drop pkgIds argument from Engine.validatePackages (#9986)
    ae5010f [Mutable state cache] Start cache from latest ledger head (#9998)
    dd42a5a update maven_install_2.12.json (#9999)
    66d38cd Storage query abstraction first sketch (#9959)
    c750136 Just print out the operator name for the operation logging in CommandService.scala (#9989)
    b6faace Changing oracle backend from using varray to json array (#9943)
    603a4a4 Add date to log statements in the HTTP JSON service (#9988)
    836a82a Add proper error handling for missing contract keys (#9972)
    85667af Address npm vulnerabilities (#9978)
    d7d6e37 LF: Structure Engine Errors. (#9971)
    0adbbdc update Daml Hub auth in create-daml-app (#9973)
    997a7d4 Use symlinks on Windows (#9969)
    e4258e6 docs: tweak Exception intro (#9967)
    b2c4ef8 rotate release duty after 1.14.0-snapshot.20210608.7123.0.3cb8d5c2 (#9933)
    de7a462 Log call to submitAndWaitRequest with the command id provided in the log ctx (#9940)
    630d021 Collect build-event-stream (#9831)
    26e199a Rerelease 1.11.2 snapshot (#9965)
    8399039 Remove broken dep from release job (#9963)
    e1db529 DPP-390 configurable event decoding parallelism (#9931)
    cc7af93 [docs] Remove link to the #daml-contributors (#9928)
    f7ac3ba Release 1.11.2 snapshot attempt 2 (#9962)
    4634147 Adds Indexer state to GRPC health checks [DPP-434] (#9951)
    28c567b Release SDK 1.11.2 (#9957)
    5f0f575 Define IncompleteTransaction for use by scenario-service (#9952)
    b7fd833 Increase `eventually` timeout when waiting for queue to be killed (#9955)
    ca0fb16 Fix collect_build_data job (#9956)
    42030b2 Skip Scala_2_12 job on releases (#9954)
    5e1ddfb LF: Fix specification of ArithmeticError (#9949)
    3093a98 Forward port additional contract keys validation tests (#9944)
    e541558 update NOTICES file (#9946)
    db792a9 Proxy ledger API health endpoint in JSON API health endpoint (#9945)
    13767b5 Load the correct logback file for the http json service respecting the deployment situation (#9938)
    4e49cf6 `ledger-api-bench-tool` - Active contracts stream, completions stream [DPP-398, DPP-399] (#9857)
    fce8e54 release 1.14.0-snapshot.20210608.7123.0.3cb8d5c2 (#9932)
    ab55fb2 Handle module-prefixes in Java codegen (#9929)
    7375e28 Force resolution for css what to 5.0.1 (#9925)
    ```
    Changelog:
    ```
    - [JSON API] The template id & choice name (if present) are now logged on command submissions in the Json API (at trace level)

    - [JSON-API] The source and the path for incoming http requests are now logged
    - [JSON-API] The http response for a request is now logged

    - [JSON API] Errors which arise from the CommandService are not logged twice anymore (thus reducing noise)

    - [JSON API] log statements now include the date next to the time
    - [HTTP-JSON] Calls which trigger a submitAndWaitRequest are logged with the command id provided in the log ctx
    [Integration Kit] The state of the participant indexer can now be checked via the GRPC health endpoint
    - [JSON API] The healthcheck endpoint on the JSON API now proxies the
      health check endpoint on the underlying ledger. Previously it only
      queried for ledger end to determine ledger health.
    [HTTP-JSON]
    - fixed that json log output could not be enabled via cli options except via usage of env vars
    - [Integration Kit] - ledger-api-bench-tool - reading active contract streams
    - [Integration Kit] - ledger-api-bench-tool - Reading completions stream
    - [Java Codegen] The Java codegen will now pick up the
      `module-prefixes` field from `daml.yaml` which can be used to handle
      module name collisions between different DALFs.
    ```

    CHANGELOG_BEGIN
    CHANGELOG_END
stefanobaghino-da added a commit that referenced this pull request Jun 16, 2021
Commit log:
```
adeba20 DPP-403 log flyway progress (#9964)
401069e prepare for upgrade to Scalaz 7.3.3 (#9997)
3ad9cd5 [JSON-API] Log templateId & choice name (if present) on command submissions in the json API (#10005)
af144e8 LF: Structure package loading errors (#9980)
3583fd1 [JSON-API] Log source and path of incoming http requests & the response with info level (#10007)
e49c7c8 [In-memory fan-out] BufferedTransactionsReader implementation [DPP-413] [DPP-414] (#9882)
acb7733 Release 1.14 RC 2 (#10006)
3d2d4b9 Don't duplicate log failed futures in the http json api (commandservice specific ones) (#9990)
0c32cf2 Clarify the semantics of DIV_INT64 in LF spec. (#10003)
b79e739 Fix Type (#10004)
998f106 Drop pkgIds argument from Engine.validatePackages (#9986)
ae5010f [Mutable state cache] Start cache from latest ledger head (#9998)
dd42a5a update maven_install_2.12.json (#9999)
66d38cd Storage query abstraction first sketch (#9959)
c750136 Just print out the operator name for the operation logging in CommandService.scala (#9989)
b6faace Changing oracle backend from using varray to json array (#9943)
603a4a4 Add date to log statements in the HTTP JSON service (#9988)
836a82a Add proper error handling for missing contract keys (#9972)
85667af Address npm vulnerabilities (#9978)
d7d6e37 LF: Structure Engine Errors. (#9971)
0adbbdc update Daml Hub auth in create-daml-app (#9973)
997a7d4 Use symlinks on Windows (#9969)
e4258e6 docs: tweak Exception intro (#9967)
b2c4ef8 rotate release duty after 1.14.0-snapshot.20210608.7123.0.3cb8d5c2 (#9933)
de7a462 Log call to submitAndWaitRequest with the command id provided in the log ctx (#9940)
630d021 Collect build-event-stream (#9831)
26e199a Rerelease 1.11.2 snapshot (#9965)
8399039 Remove broken dep from release job (#9963)
e1db529 DPP-390 configurable event decoding parallelism (#9931)
cc7af93 [docs] Remove link to the #daml-contributors (#9928)
f7ac3ba Release 1.11.2 snapshot attempt 2 (#9962)
4634147 Adds Indexer state to GRPC health checks [DPP-434] (#9951)
28c567b Release SDK 1.11.2 (#9957)
5f0f575 Define IncompleteTransaction for use by scenario-service (#9952)
b7fd833 Increase `eventually` timeout when waiting for queue to be killed (#9955)
ca0fb16 Fix collect_build_data job (#9956)
42030b2 Skip Scala_2_12 job on releases (#9954)
5e1ddfb LF: Fix specification of ArithmeticError (#9949)
3093a98 Forward port additional contract keys validation tests (#9944)
e541558 update NOTICES file (#9946)
db792a9 Proxy ledger API health endpoint in JSON API health endpoint (#9945)
13767b5 Load the correct logback file for the http json service respecting the deployment situation (#9938)
4e49cf6 `ledger-api-bench-tool` - Active contracts stream, completions stream [DPP-398, DPP-399] (#9857)
fce8e54 release 1.14.0-snapshot.20210608.7123.0.3cb8d5c2 (#9932)
ab55fb2 Handle module-prefixes in Java codegen (#9929)
7375e28 Force resolution for css what to 5.0.1 (#9925)
```
Changelog:
```
- [JSON API] The template id & choice name (if present) are now logged on command submissions in the Json API (at trace level)

- [JSON-API] The source and the path for incoming http requests are now logged
- [JSON-API] The http response for a request is now logged

- [JSON API] Errors which arise from the CommandService are not logged twice anymore (thus reducing noise)

- [JSON API] log statements now include the date next to the time
- [HTTP-JSON] Calls which trigger a submitAndWaitRequest are logged with the command id provided in the log ctx
[Integration Kit] The state of the participant indexer can now be checked via the GRPC health endpoint
- [JSON API] The healthcheck endpoint on the JSON API now proxies the
  health check endpoint on the underlying ledger. Previously it only
  queried for ledger end to determine ledger health.
[HTTP-JSON]
- fixed that json log output could not be enabled via cli options except via usage of env vars
- [Integration Kit] - ledger-api-bench-tool - reading active contract streams
- [Integration Kit] - ledger-api-bench-tool - Reading completions stream
- [Java Codegen] The Java codegen will now pick up the
  `module-prefixes` field from `daml.yaml` which can be used to handle
  module name collisions between different DALFs.
```

CHANGELOG_BEGIN
CHANGELOG_END
stefanobaghino-da added a commit that referenced this pull request Jun 16, 2021
Commit log:
```
adeba20 DPP-403 log flyway progress (#9964)
401069e prepare for upgrade to Scalaz 7.3.3 (#9997)
3ad9cd5 [JSON-API] Log templateId & choice name (if present) on command submissions in the json API (#10005)
af144e8 LF: Structure package loading errors (#9980)
3583fd1 [JSON-API] Log source and path of incoming http requests & the response with info level (#10007)
e49c7c8 [In-memory fan-out] BufferedTransactionsReader implementation [DPP-413] [DPP-414] (#9882)
acb7733 Release 1.14 RC 2 (#10006)
3d2d4b9 Don't duplicate log failed futures in the http json api (commandservice specific ones) (#9990)
0c32cf2 Clarify the semantics of DIV_INT64 in LF spec. (#10003)
b79e739 Fix Type (#10004)
998f106 Drop pkgIds argument from Engine.validatePackages (#9986)
ae5010f [Mutable state cache] Start cache from latest ledger head (#9998)
dd42a5a update maven_install_2.12.json (#9999)
66d38cd Storage query abstraction first sketch (#9959)
c750136 Just print out the operator name for the operation logging in CommandService.scala (#9989)
b6faace Changing oracle backend from using varray to json array (#9943)
603a4a4 Add date to log statements in the HTTP JSON service (#9988)
836a82a Add proper error handling for missing contract keys (#9972)
85667af Address npm vulnerabilities (#9978)
d7d6e37 LF: Structure Engine Errors. (#9971)
0adbbdc update Daml Hub auth in create-daml-app (#9973)
997a7d4 Use symlinks on Windows (#9969)
e4258e6 docs: tweak Exception intro (#9967)
b2c4ef8 rotate release duty after 1.14.0-snapshot.20210608.7123.0.3cb8d5c2 (#9933)
de7a462 Log call to submitAndWaitRequest with the command id provided in the log ctx (#9940)
630d021 Collect build-event-stream (#9831)
26e199a Rerelease 1.11.2 snapshot (#9965)
8399039 Remove broken dep from release job (#9963)
e1db529 DPP-390 configurable event decoding parallelism (#9931)
cc7af93 [docs] Remove link to the #daml-contributors (#9928)
f7ac3ba Release 1.11.2 snapshot attempt 2 (#9962)
4634147 Adds Indexer state to GRPC health checks [DPP-434] (#9951)
28c567b Release SDK 1.11.2 (#9957)
5f0f575 Define IncompleteTransaction for use by scenario-service (#9952)
b7fd833 Increase `eventually` timeout when waiting for queue to be killed (#9955)
ca0fb16 Fix collect_build_data job (#9956)
42030b2 Skip Scala_2_12 job on releases (#9954)
5e1ddfb LF: Fix specification of ArithmeticError (#9949)
3093a98 Forward port additional contract keys validation tests (#9944)
e541558 update NOTICES file (#9946)
db792a9 Proxy ledger API health endpoint in JSON API health endpoint (#9945)
13767b5 Load the correct logback file for the http json service respecting the deployment situation (#9938)
4e49cf6 `ledger-api-bench-tool` - Active contracts stream, completions stream [DPP-398, DPP-399] (#9857)
fce8e54 release 1.14.0-snapshot.20210608.7123.0.3cb8d5c2 (#9932)
ab55fb2 Handle module-prefixes in Java codegen (#9929)
7375e28 Force resolution for css what to 5.0.1 (#9925)
```
Changelog:
```
- [JSON API] The template id & choice name (if present) are now logged on command submissions in the Json API (at trace level)

- [JSON-API] The source and the path for incoming http requests are now logged
- [JSON-API] The http response for a request is now logged

- [JSON API] Errors which arise from the CommandService are not logged twice anymore (thus reducing noise)

- [JSON API] log statements now include the date next to the time
- [HTTP-JSON] Calls which trigger a submitAndWaitRequest are logged with the command id provided in the log ctx
[Integration Kit] The state of the participant indexer can now be checked via the GRPC health endpoint
- [JSON API] The healthcheck endpoint on the JSON API now proxies the
  health check endpoint on the underlying ledger. Previously it only
  queried for ledger end to determine ledger health.
[HTTP-JSON]
- fixed that json log output could not be enabled via cli options except via usage of env vars
- [Integration Kit] - ledger-api-bench-tool - reading active contract streams
- [Integration Kit] - ledger-api-bench-tool - Reading completions stream
- [Java Codegen] The Java codegen will now pick up the
  `module-prefixes` field from `daml.yaml` which can be used to handle
  module name collisions between different DALFs.
```

CHANGELOG_BEGIN
CHANGELOG_END
stefanobaghino-da added a commit that referenced this pull request Jun 16, 2021
Commit log:
```
adeba20 DPP-403 log flyway progress (#9964)
401069e prepare for upgrade to Scalaz 7.3.3 (#9997)
3ad9cd5 [JSON-API] Log templateId & choice name (if present) on command submissions in the json API (#10005)
af144e8 LF: Structure package loading errors (#9980)
3583fd1 [JSON-API] Log source and path of incoming http requests & the response with info level (#10007)
e49c7c8 [In-memory fan-out] BufferedTransactionsReader implementation [DPP-413] [DPP-414] (#9882)
acb7733 Release 1.14 RC 2 (#10006)
3d2d4b9 Don't duplicate log failed futures in the http json api (commandservice specific ones) (#9990)
0c32cf2 Clarify the semantics of DIV_INT64 in LF spec. (#10003)
b79e739 Fix Type (#10004)
998f106 Drop pkgIds argument from Engine.validatePackages (#9986)
ae5010f [Mutable state cache] Start cache from latest ledger head (#9998)
dd42a5a update maven_install_2.12.json (#9999)
66d38cd Storage query abstraction first sketch (#9959)
c750136 Just print out the operator name for the operation logging in CommandService.scala (#9989)
b6faace Changing oracle backend from using varray to json array (#9943)
603a4a4 Add date to log statements in the HTTP JSON service (#9988)
836a82a Add proper error handling for missing contract keys (#9972)
85667af Address npm vulnerabilities (#9978)
d7d6e37 LF: Structure Engine Errors. (#9971)
0adbbdc update Daml Hub auth in create-daml-app (#9973)
997a7d4 Use symlinks on Windows (#9969)
e4258e6 docs: tweak Exception intro (#9967)
b2c4ef8 rotate release duty after 1.14.0-snapshot.20210608.7123.0.3cb8d5c2 (#9933)
de7a462 Log call to submitAndWaitRequest with the command id provided in the log ctx (#9940)
630d021 Collect build-event-stream (#9831)
26e199a Rerelease 1.11.2 snapshot (#9965)
8399039 Remove broken dep from release job (#9963)
e1db529 DPP-390 configurable event decoding parallelism (#9931)
cc7af93 [docs] Remove link to the #daml-contributors (#9928)
f7ac3ba Release 1.11.2 snapshot attempt 2 (#9962)
4634147 Adds Indexer state to GRPC health checks [DPP-434] (#9951)
28c567b Release SDK 1.11.2 (#9957)
5f0f575 Define IncompleteTransaction for use by scenario-service (#9952)
b7fd833 Increase `eventually` timeout when waiting for queue to be killed (#9955)
ca0fb16 Fix collect_build_data job (#9956)
42030b2 Skip Scala_2_12 job on releases (#9954)
5e1ddfb LF: Fix specification of ArithmeticError (#9949)
3093a98 Forward port additional contract keys validation tests (#9944)
e541558 update NOTICES file (#9946)
db792a9 Proxy ledger API health endpoint in JSON API health endpoint (#9945)
13767b5 Load the correct logback file for the http json service respecting the deployment situation (#9938)
4e49cf6 `ledger-api-bench-tool` - Active contracts stream, completions stream [DPP-398, DPP-399] (#9857)
fce8e54 release 1.14.0-snapshot.20210608.7123.0.3cb8d5c2 (#9932)
ab55fb2 Handle module-prefixes in Java codegen (#9929)
7375e28 Force resolution for css what to 5.0.1 (#9925)
```
Changelog:
```
- [JSON API] The template id & choice name (if present) are now logged on command submissions in the Json API (at trace level)

- [JSON-API] The source and the path for incoming http requests are now logged
- [JSON-API] The http response for a request is now logged

- [JSON API] Errors which arise from the CommandService are not logged twice anymore (thus reducing noise)

- [JSON API] log statements now include the date next to the time
- [HTTP-JSON] Calls which trigger a submitAndWaitRequest are logged with the command id provided in the log ctx
[Integration Kit] The state of the participant indexer can now be checked via the GRPC health endpoint
- [JSON API] The healthcheck endpoint on the JSON API now proxies the
  health check endpoint on the underlying ledger. Previously it only
  queried for ledger end to determine ledger health.
[HTTP-JSON]
- fixed that json log output could not be enabled via cli options except via usage of env vars
- [Integration Kit] - ledger-api-bench-tool - reading active contract streams
- [Integration Kit] - ledger-api-bench-tool - Reading completions stream
- [Java Codegen] The Java codegen will now pick up the
  `module-prefixes` field from `daml.yaml` which can be used to handle
  module name collisions between different DALFs.
```

CHANGELOG_BEGIN
CHANGELOG_END
dasormeter pushed a commit that referenced this pull request Jun 16, 2021
Commit log:
```
adeba20 DPP-403 log flyway progress (#9964)
401069e prepare for upgrade to Scalaz 7.3.3 (#9997)
3ad9cd5 [JSON-API] Log templateId & choice name (if present) on command submissions in the json API (#10005)
af144e8 LF: Structure package loading errors (#9980)
3583fd1 [JSON-API] Log source and path of incoming http requests & the response with info level (#10007)
e49c7c8 [In-memory fan-out] BufferedTransactionsReader implementation [DPP-413] [DPP-414] (#9882)
acb7733 Release 1.14 RC 2 (#10006)
3d2d4b9 Don't duplicate log failed futures in the http json api (commandservice specific ones) (#9990)
0c32cf2 Clarify the semantics of DIV_INT64 in LF spec. (#10003)
b79e739 Fix Type (#10004)
998f106 Drop pkgIds argument from Engine.validatePackages (#9986)
ae5010f [Mutable state cache] Start cache from latest ledger head (#9998)
dd42a5a update maven_install_2.12.json (#9999)
66d38cd Storage query abstraction first sketch (#9959)
c750136 Just print out the operator name for the operation logging in CommandService.scala (#9989)
b6faace Changing oracle backend from using varray to json array (#9943)
603a4a4 Add date to log statements in the HTTP JSON service (#9988)
836a82a Add proper error handling for missing contract keys (#9972)
85667af Address npm vulnerabilities (#9978)
d7d6e37 LF: Structure Engine Errors. (#9971)
0adbbdc update Daml Hub auth in create-daml-app (#9973)
997a7d4 Use symlinks on Windows (#9969)
e4258e6 docs: tweak Exception intro (#9967)
b2c4ef8 rotate release duty after 1.14.0-snapshot.20210608.7123.0.3cb8d5c2 (#9933)
de7a462 Log call to submitAndWaitRequest with the command id provided in the log ctx (#9940)
630d021 Collect build-event-stream (#9831)
26e199a Rerelease 1.11.2 snapshot (#9965)
8399039 Remove broken dep from release job (#9963)
e1db529 DPP-390 configurable event decoding parallelism (#9931)
cc7af93 [docs] Remove link to the #daml-contributors (#9928)
f7ac3ba Release 1.11.2 snapshot attempt 2 (#9962)
4634147 Adds Indexer state to GRPC health checks [DPP-434] (#9951)
28c567b Release SDK 1.11.2 (#9957)
5f0f575 Define IncompleteTransaction for use by scenario-service (#9952)
b7fd833 Increase `eventually` timeout when waiting for queue to be killed (#9955)
ca0fb16 Fix collect_build_data job (#9956)
42030b2 Skip Scala_2_12 job on releases (#9954)
5e1ddfb LF: Fix specification of ArithmeticError (#9949)
3093a98 Forward port additional contract keys validation tests (#9944)
e541558 update NOTICES file (#9946)
db792a9 Proxy ledger API health endpoint in JSON API health endpoint (#9945)
13767b5 Load the correct logback file for the http json service respecting the deployment situation (#9938)
4e49cf6 `ledger-api-bench-tool` - Active contracts stream, completions stream [DPP-398, DPP-399] (#9857)
fce8e54 release 1.14.0-snapshot.20210608.7123.0.3cb8d5c2 (#9932)
ab55fb2 Handle module-prefixes in Java codegen (#9929)
7375e28 Force resolution for css what to 5.0.1 (#9925)
```
Changelog:
```
- [JSON API] The template id & choice name (if present) are now logged on command submissions in the Json API (at trace level)

- [JSON-API] The source and the path for incoming http requests are now logged
- [JSON-API] The http response for a request is now logged

- [JSON API] Errors which arise from the CommandService are not logged twice anymore (thus reducing noise)

- [JSON API] log statements now include the date next to the time
- [HTTP-JSON] Calls which trigger a submitAndWaitRequest are logged with the command id provided in the log ctx
[Integration Kit] The state of the participant indexer can now be checked via the GRPC health endpoint
- [JSON API] The healthcheck endpoint on the JSON API now proxies the
  health check endpoint on the underlying ledger. Previously it only
  queried for ledger end to determine ledger health.
[HTTP-JSON]
- fixed that json log output could not be enabled via cli options except via usage of env vars
- [Integration Kit] - ledger-api-bench-tool - reading active contract streams
- [Integration Kit] - ledger-api-bench-tool - Reading completions stream
- [Java Codegen] The Java codegen will now pick up the
  `module-prefixes` field from `daml.yaml` which can be used to handle
  module name collisions between different DALFs.
```

CHANGELOG_BEGIN
CHANGELOG_END
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.

4 participants