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

Prod Release 06/08/24 #970

Merged
merged 10 commits into from
Aug 6, 2024
Merged

Prod Release 06/08/24 #970

merged 10 commits into from
Aug 6, 2024

Conversation

darunrs
Copy link
Collaborator

@darunrs darunrs commented Aug 2, 2024

We've noticed that it is occasionally possible for the indexer config
returned by the contract to be parseable/null with a success status
code, even though the indexer itself was not in fact deleted. This
triggers the deprovisioning workflow anyway, which currently throws the
Indexer into a repairing state, where it is no longer operating.

This PR updates the contract to retain configuration if the indexer was
deleted. Coordinator will now expect a specific configuration to take
deletion actions, instead of the previous method which left things open
to interpretation.

In the near future, the contract will be migrated (#964) to use an enum
instead of contract format, to avoid wastefully storing things like
code/schema for deleted indexers forever.
@darunrs darunrs requested a review from a team as a code owner August 2, 2024 00:25
@darunrs darunrs changed the title Prod Release 01/08/24 Prod Release 05/08/24 Aug 2, 2024
Kevin101Zhang and others added 5 commits August 2, 2024 16:39
added events into launchpad.
…ing a new indexer and renamed BOS jsx elements (#973)

JSX change + prettier
Added tests for fetching individual indexer config from registry
contract. This was mostly an exercise to understand the behaviour of
parsing registry contract responses, as well as understanding the
changes that were made recently. A thin wrapper (`JsonRpcClientWrapper`)
has been created to allow mocking of the JSON RPC Client responses.
Adds tests for: `DataLayerHandler`, `BlockStreamsHandler`, and
`ExecutorsHandler`. No functional changes, but I did need to
extract/create internal client wrappers so that the RPC requests can be
mocked.
@darunrs darunrs changed the title Prod Release 05/08/24 Prod Release 06/08/24 Aug 6, 2024
darunrs and others added 4 commits August 6, 2024 22:50
The current date used to start the receiver blocks backfill would have
hour, minute, second, and nanosecond data. This meant when it reached
today's date, it may potentially be ahead. This would lead to today not
being queried. This PR fixes this by ensuring the current date is at the
very start of the day, which guarantees it passes the <= check.
explore seems to be missing a few indexers and the reason was due to
pagination starting from 0. so on load it would grab the intial 50 and
then onclick for loadmore it would still grab the 0-50 already on
display.

fix: changes page to intialize to 1. 

Initial Load (0-49) Indexers Loaded
First Click (page = 1): Loads indexers from 50 to 99.
Second Click (page = 2): Loads indexers from 100 to 149.
```
const handleLoadMore = () => {
  const start = page * PAGE_SIZE; // FIRST: 1*50 = 50 -> SECOND: 2*50 = 100
  const end = start + PAGE_SIZE; //  FIRST: 50+50 = 100 -> SECOND: 100+50 = 150
  const newIndexers = indexers.slice(start, end); // FIRST CLICK: 50-99 -> SECOND CLICK: 100-149
  setCurrentPageIndexer([...currentPageIndexer, ...newIndexers]); 
  // FIRST: 0-49 + 50-99, SECOND: 0-99 + 100 - 149
  setPage(page + 1); 
};
```
Block streams are failing due to their start block being lower than the
current. This PR fixes this issue by seeding the health task with the
input start block. This should fix the issue in most cases. I've also
ensured that the handoff between receiver_blocks and lake also do not
repeat a block.
@darunrs
Copy link
Collaborator Author

darunrs commented Aug 6, 2024

Prod contract deployment was successful. Tested list_all and that worked. Will do release before testing register/delete.

@darunrs darunrs merged commit 3f95e60 into stable Aug 6, 2024
21 checks passed
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.

3 participants