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

[WIP][Persistence][Core][Savepoints/Rollbacks] Implement KISS SavePoints - Serialize WorldState from Persistence - JSON POC - (Issue #327) #645

Closed
Closed
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
1762efb
chore(utility): normalize imports
deblasis Mar 9, 2023
305e96a
chore(utility): setBus (from embedded base_module)
deblasis Mar 9, 2023
cc9f7db
refactor(shared): utility module interface changes
deblasis Mar 9, 2023
c859dbb
chore(shared): utilitycontext marked for deprecation
deblasis Mar 9, 2023
771b95e
refactor(shared): utility unitofwork, catering for #508 as well
deblasis Mar 9, 2023
a1d7aab
feat(shared): utility unitofwork for leader and replica for #508
deblasis Mar 9, 2023
06a5694
refactor(shared): mv ReleaseUtilityContext->ReleaseUtilityUnitOfWork
deblasis Mar 9, 2023
f938274
chore(shared): TODO in consensus (ReleaseUtilityUnitOfWork)
deblasis Mar 9, 2023
2b2469b
refactor(shared): refactored ConsensusDebugModule for uow
deblasis Mar 9, 2023
324ae5e
feat(utility): base utilityUnitOfWork
deblasis Mar 9, 2023
69a8fe1
feat(utility): leader utilityUnitOfWork
deblasis Mar 9, 2023
c151bbf
feat(utility): replicaUtilityUnitOfWork
deblasis Mar 9, 2023
d28d2e7
feat(utility): unitOfWork constructor
deblasis Mar 9, 2023
a8d7792
refactor(consensus): utilityUnitOfWork
deblasis Mar 9, 2023
2b93b37
refactor(consensus): utilityUnitOfWork in pacemaker
deblasis Mar 9, 2023
54ca863
chore(consensus): TODO in tests
deblasis Mar 9, 2023
0d6de1b
refactor(consensus): refactored block application to use uow
deblasis Mar 9, 2023
1092e6b
chore(consensus): removed already handled TODO
deblasis Mar 9, 2023
4692611
chore(consensus): removed already handled TODO
deblasis Mar 9, 2023
676e710
feat(consensus): techdebt (maxmempoolbytes from consensus config)
deblasis Mar 9, 2023
68cb452
feat(consensus): using refactored uow for leader logic
deblasis Mar 9, 2023
46f9181
fix(consensus): consolidated maxTxBytes
deblasis Mar 10, 2023
4f86ceb
refactor(consensus): pacemaker_test uow
deblasis Mar 10, 2023
b589396
refactor(shared): updated type for maxTxBytes
deblasis Mar 10, 2023
097787a
refactor(consensus): tests are ✅
deblasis Mar 10, 2023
5e2dca4
refactor(consensus): simplified create / apply
deblasis Mar 11, 2023
7ab68c5
fix(persistence): techdebt: log statement
deblasis Mar 11, 2023
15365fe
refactor(utility): updated create / apply
deblasis Mar 11, 2023
bdf0a5c
refactor(utility): deprecating utilityContext
deblasis Mar 11, 2023
43294c3
refactor(utility): WIP separation of concerns module/uow
deblasis Mar 11, 2023
eb63737
refactor(utility): ctx -> uow + 🧹
deblasis Mar 11, 2023
75c0f18
refactor(utility): simplified TestUtilityContext_ApplyBlock
deblasis Mar 12, 2023
7228de8
chore(utility): renamed tests
deblasis Mar 12, 2023
ae32b35
chore(consensus): updated utilityContext references
deblasis Mar 12, 2023
781af57
docs(shared): updated utilityContext references
deblasis Mar 12, 2023
809005c
chore(consensus): updated utility context references
deblasis Mar 12, 2023
f3bbea3
chore(shared): updated utility context references
deblasis Mar 12, 2023
9fa0a00
refactor(consensus): restored CreateAndApplyProposalBlock
deblasis Mar 12, 2023
a225d37
refactor(utility): CreateAndApplyProposalBlock in leaderUow
deblasis Mar 12, 2023
1be71bd
chore(utility): context 🧹
deblasis Mar 12, 2023
dcccee8
fix(consensus): fix tests
deblasis Mar 12, 2023
d7ee688
chore(utility): lint
deblasis Mar 12, 2023
62f3622
refactor(persistence): removed NewSavePoint([]byte) from interface
deblasis Mar 14, 2023
a8f1306
refactor(persistence): removed NewSavePoint from PostgresContext
deblasis Mar 14, 2023
48d071a
feat(persistence): savepoints prototype
deblasis Mar 14, 2023
bd528bb
feat(persistence): select * in JSON format for all tables
deblasis Mar 14, 2023
528b0dc
feat(persistence): JSON getters
deblasis Mar 14, 2023
656a815
feat(persistence): JSON getters implementations
deblasis Mar 14, 2023
81f08be
feat(persistence): savepoint WIP
deblasis Mar 16, 2023
b9c5e6e
feat(persistence): savepointFactory WIP
deblasis Mar 16, 2023
eef51b0
feat(persistence): POC test
deblasis Mar 16, 2023
7aa75ac
chore(shared): go mod tidy
deblasis Mar 16, 2023
992e620
Merge remote-tracking branch 'upstream/main' into issue/327-kiss-save…
deblasis Apr 2, 2023
023c426
refactor(persistence): savepoint Release()
deblasis Apr 2, 2023
ac167a7
chore(shared): TODOes
deblasis Apr 2, 2023
52063d9
refactor(persistence): improved savepoint
deblasis Apr 2, 2023
7ce96f9
fix(persistence): handling "no results" in JSON db queries
deblasis Apr 3, 2023
6249db3
fix(consensus): fix merge
deblasis Apr 3, 2023
c3c4100
fix(consensus): fix merge
deblasis Apr 3, 2023
b94016f
fix(consensus): merge fix
deblasis Apr 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(consensus): techdebt (maxmempoolbytes from consensus config)
  • Loading branch information
deblasis committed Mar 9, 2023
commit 676e7103926c4cfa87973d79c91f4fb353f0fb9c
4 changes: 2 additions & 2 deletions consensus/hotstuff_leader.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,8 @@ func (m *consensusModule) prepareAndApplyBlock(qc *typesCons.QuorumCertificate)
return nil, typesCons.ErrReplicaPrepareBlock
}

// TECHDEBT: Retrieve this from consensus consensus config
maxTxBytes := 90000
maxTxBytes := int(m.consCfg.MaxMempoolBytes)


// Reap the mempool for transactions to be applied in this block
stateHash, txs, err := m.utilityContext.CreateAndApplyProposalBlock(m.privateKey.Address(), maxTxBytes)
Expand Down