Skip to content

IGNITE-17645 Write lastSnpSeg into SnapshotMetadata - #10247

Merged
nizhikov merged 6 commits into
apache:IGNITE-17177_inc_snapshotsfrom
timoninmaxim:IGNITE-17645__snapshot_meta_wal
Sep 23, 2022
Merged

IGNITE-17645 Write lastSnpSeg into SnapshotMetadata#10247
nizhikov merged 6 commits into
apache:IGNITE-17177_inc_snapshotsfrom
timoninmaxim:IGNITE-17645__snapshot_meta_wal

Conversation

@timoninmaxim

Copy link
Copy Markdown
Member

Thank you for submitting the pull request to the Apache Ignite.

In order to streamline the review of the contribution
we ask you to ensure the following steps have been taken:

The Contribution Checklist

  • There is a single JIRA ticket related to the pull request.
  • The web-link to the pull request is attached to the JIRA ticket.
  • The JIRA ticket has the Patch Available state.
  • The pull request body describes changes that have been made.
    The description explains WHAT and WHY was made instead of HOW.
  • The pull request title is treated as the final commit message.
    The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
  • A reviewer has been mentioned through the JIRA comments
    (see the Maintainers list)
  • The pull request has been checked by the Teamcity Bot and
    the green visa attached to the JIRA ticket (see TC.Bot: Check PR)

Notes

If you need any help, please email dev@ignite.apache.org or ask anу advice on http://asf.slack.com #ignite channel.

@timoninmaxim
timoninmaxim force-pushed the IGNITE-17645__snapshot_meta_wal branch 2 times, most recently from 4e705b7 to 199553a Compare September 16, 2022 12:13
@timoninmaxim
timoninmaxim force-pushed the IGNITE-17645__snapshot_meta_wal branch from 199553a to 2290a2f Compare September 22, 2022 15:13
@nizhikov
nizhikov changed the base branch from master to IGNITE-17177_inc_snapshots September 22, 2022 15:19
List<Integer> grpIds,
Set<String> bltNodes,
Set<GroupPartitionId> pairs,
@Nullable Long lastSegIdx,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It seems lastSegIdx can be null only when we read existing snapshot metadata from disk.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It could be null if wal() is disabled by user while snapshot is creating.

/**
* @return Index of last WAL segment that contains data of snapshot.
*/
public Long lastSegIdx() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lastSegIdx can be null here.

@nizhikov
nizhikov merged commit f13743d into apache:IGNITE-17177_inc_snapshots Sep 23, 2022
@timoninmaxim
timoninmaxim deleted the IGNITE-17645__snapshot_meta_wal branch September 23, 2022 13:54
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.

2 participants