question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Archived contracts showing up on JSON-API query from a ledger migrated from pre-1.0.0

See original GitHub issue

Scenario:

Ledger was running on sandbox classic with postgres, upgraded from 0.13.55 to 1.0.0 on sandbox classic. /v1/query returning contract that has been archived before the upgrade. Using navigator these contract are shown inside include archived.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
leo-dacommented, Apr 24, 2020

after migraiton

select * from flyway_schema_history

installed_rank version description type script checksum installed_by installed_on execution_time success
1 1 Init SQL V1__Init.sql -72965523 postgres 2020-04-22 20:53:16.479029 297 true
2 2.0 Contract divulgence SQL V2_0__Contract_divulgence.sql 1461208192 postgres 2020-04-22 20:53:16.82314 49 true
3 2.1 Rebuild Acs JDBC db.migration.postgres.V2_1__Rebuild_Acs <null> postgres 2020-04-22 20:53:16.912273 52 true
4 3 Recompute Key Hash JDBC db.migration.postgres.V3__Recompute_Key_Hash <null> postgres 2020-04-22 20:53:16.993835 25 true
5 4.0 Add parties SQL V4_0__Add_parties.sql 2091746815 postgres 2020-04-22 20:53:17.043624 44 true
6 4.1 Collect Parties JDBC db.migration.postgres.V4_1__Collect_Parties <null> postgres 2020-04-22 20:53:17.110682 18 true
7 5 Add packages SQL V5__Add_packages.sql 1089030748 postgres 2020-04-22 20:53:17.165935 32 true
8 6 External Ledger Offset SQL V6__External_Ledger_Offset.sql 1642074148 postgres 2020-04-22 20:53:17.221672 7 true
9 7 Command deduplication SQL V7__Command_deduplication.sql 478192496 postgres 2020-04-22 20:53:17.251705 45 true
10 8 Contract Divulgence SQL V8__Contract_Divulgence.sql -1984400579 postgres 2020-04-22 20:53:17.329792 47 true
11 9 Contract Divulgence SQL V9__Contract_Divulgence.sql -39708021 postgres 2020-04-22 20:53:17.399061 46 true
12 10.0 Extract Event Data SQL V10_0__Extract_Event_Data.sql 1741793687 postgres 2020-04-22 20:53:17.493105 72 true
13 10.1 Populate Event Data JDBC db.migration.postgres.V10_1__Populate_Event_Data <null> postgres 2020-04-22 20:53:17.597843 22 true
14 10.2 Extract Event Data SQL V10_2__Extract_Event_Data.sql -1727099174 postgres 2020-04-22 20:53:17.643328 10 true
15 11 Disclosures index SQL V11__Disclosures_index.sql 2049922513 postgres 2020-04-22 20:53:17.694984 20 true
16 12 Add configuration SQL V12__Add_configuration.sql 1064393329 postgres 2020-04-22 20:53:17.738093 61 true
17 13 Party entries SQL V13__Party_entries.sql 1719257450 postgres 2020-04-22 20:53:17.821485 41 true
18 14 Package entries SQL V14__Package_entries.sql 2024306888 postgres 2020-04-22 20:53:17.907928 61 true
19 15 Loosen transaction check SQL V15__Loosen_transaction_check.sql -955389528 postgres 2020-04-22 20:53:18.015604 32 true
20 16 Create command completions table SQL V16__Create_command_completions_table.sql 1970730105 postgres 2020-04-22 20:53:18.090811 45 true
21 17 Command deduplication SQL V17__Command_deduplication.sql 1107112150 postgres 2020-04-22 20:53:18.172541 51 true
22 18 Backfill completions SQL V18__Backfill_completions.sql -1664109353 postgres 2020-04-22 20:53:18.273411 48 true
23 19 Fix Completions SQL V19__Fix_Completions.sql 904991759 postgres 2020-04-23 12:58:15.943361 4 true
24 20 Events new schema SQL V20__Events_new_schema.sql 1928761158 postgres 2020-04-23 12:58:15.967546 72 true
25 21 Stable offsets SQL V21__Stable_offsets.sql 1237032852 postgres 2020-04-23 12:58:16.075983 266 true
26 22 Remove maximum record time SQL V22__Remove_maximum_record_time.sql 915980718 postgres 2020-04-23 12:58:16.372577 5 true
27 23 Delete checkpoints SQL V23__Delete_checkpoints.sql 1235716342 postgres 2020-04-23 12:58:16.396607 9 true
28 24 Stable offsets archival SQL V24__Stable_offsets_archival.sql -1078040150 postgres 2020-04-23 12:58:16.412403 34 true
29 25 Backfill Participant Events JDBC db.migration.postgres.V25__Backfill_Participant_Events <null> postgres 2020-04-23 12:58:16.464352 568 true
30 26.0 Contracts new schema SQL V26_0__Contracts_new_schema.sql -1230616752 postgres 2020-04-23 12:58:17.041823 28 true
31 26.1 Fill create argument JDBC db.migration.postgres.V26_1__Fill_create_argument <null> postgres 2020-04-23 12:58:17.074826 31 true
32 26.2 Contract create arg not null SQL V26_2__Contract_create_arg_not_null.sql -1144271682 postgres 2020-04-23 12:58:17.112385 1 true
33 27 Events table fixes SQL V27__Events_table_fixes.sql 1347117250 postgres 2020-04-23 12:58:17.118872 9 true
0reactions
leo-dacommented, Apr 24, 2020

after migration

select event_id, contract_id, create_consumed_at from participant_events where contract_id in (‘#39:0’, ‘#42:0’, ‘#43:0’)

event_idcontract_idcreate_consumed_at
#50:0#43:0<null>
#53:0#42:0<null>
#57:0#39:0<null>
#39:0#39:0<null>
#43:0#43:0<null>
#42:0#42:0<null>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Fetching archived contracts to be displayed in the UI - Questions
Hi all, I'd like to ask if there is an existing best practice when fetching archived contracts to be displayed in a React...
Read more >
How to get data from Archived contracts in DAML using nodejs ...
I wanted to get the history data from the archived contracts in DAML so that it can be used for audit purpose. I...
Read more >
homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter aacgain 1.8 AAC‑supporting version of mp3gain aalib 1.4rc5 Portable ASCII art graphics library aamath 0.3 Renders mathematical expressions as ASCII art
Read more >
Release of DAML SDK 1.7.0 - Digital Asset Blog
JSON API, DAML Script, and the JavaScript Client Libraries now ... In queries, contracts known to any of the known parties will be...
Read more >
https://packages.ubuntu.com/ru/source/bionic/armhf...
0ad (0.0.22-4) [universe] 0ad-data (0.0.22-1) [universe] 0xffff (0.7-2) [universe] ... apt-show-source (0.10+nmu5ubuntu1) [universe] apt-show-versions ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found