Skip to content

IGNITE-23379 Pass lease information with Raft snapshot of partition#4725

Merged
rpuch merged 13 commits intoapache:mainfrom
gridgain:ignite-23379
Nov 15, 2024
Merged

IGNITE-23379 Pass lease information with Raft snapshot of partition#4725
rpuch merged 13 commits intoapache:mainfrom
gridgain:ignite-23379

Conversation

@rpuch
Copy link
Contributor

@rpuch rpuch commented Nov 14, 2024

outputStream.write(primaryReplicaNodeIdBytes);
private void saveLease(AbstractWriteBatch writeBatch, long leaseStartTime, UUID primaryReplicaNodeId, String primaryReplicaNodeName) {
try {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe make the meta serializable and write the serialization logic to it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please note that in this case only lease information is updated, not the whole partition metadata.

I like the idea to make this format versioned, filed an issue https://issues.apache.org/jira/browse/IGNITE-23683

@rpuch rpuch merged commit d6d402d into apache:main Nov 15, 2024
@rpuch rpuch deleted the ignite-23379 branch November 15, 2024 13:46
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