Skip to content

inmem journal must not reset highestSequenceNr after journal cleanup, #27994 - #27995

Merged
johanandren merged 1 commit into
masterfrom
wip-inmem-lastSeqNr-patriknw
Oct 15, 2019
Merged

johanandren merged 1 commit into
masterfrom
wip-inmem-lastSeqNr-patriknw

Conversation

@patriknw

Copy link
Copy Markdown
Contributor
  • add tck test (failed for exactly this)
  • keep track of highest

…27994

* add tck test (failed for exactly this)
* keep track of highest
@patriknw patriknw added the 2 - pick next Used to mark issues which are next up in the queue to be worked on. The tag is non-binding label Oct 14, 2019
@patriknw

Copy link
Copy Markdown
Contributor Author

Follow up from #27496

@akka-ci akka-ci added validating PR is currently being validated by Jenkins tested PR that was successfully built and tested by Jenkins and removed validating PR is currently being validated by Jenkins labels Oct 14, 2019
@akka-ci

akka-ci commented Oct 14, 2019

Copy link
Copy Markdown

Test PASSed.

// persistenceId -> persistent message
var messages = Map.empty[String, Vector[PersistentRepr]]
// persistenceId -> highest used sequence number
private var highestSequenceNumbers = Map.empty[String, Long]

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.

Makes me wonder if we'd need a faster data structure or if this isn't quite on the hot path then no.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

inmem journal is only intended for testing so shouldn't be a problem

@chbatey chbatey left a comment

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.

LGTM

@johanandren
johanandren merged commit 50a2355 into master Oct 15, 2019
@johanandren
johanandren deleted the wip-inmem-lastSeqNr-patriknw branch October 15, 2019 08:37
@johanandren johanandren added this to the 2.6.0-RC1 milestone Oct 15, 2019
@patriknw

patriknw commented Nov 4, 2019

Copy link
Copy Markdown
Contributor Author

Refs #27994

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 - pick next Used to mark issues which are next up in the queue to be worked on. The tag is non-binding tested PR that was successfully built and tested by Jenkins

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants