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

make scan less aggressive, #847 #849

Merged
merged 1 commit into from
Dec 7, 2020
Merged

make scan less aggressive, #847 #849

merged 1 commit into from
Dec 7, 2020

Conversation

patriknw
Copy link
Member

@patriknw patriknw commented Dec 7, 2020

References #847

@@ -109,14 +109,13 @@ import akka.stream.alpakka.cassandra.scaladsl.CassandraSession
}
acc + (pid -> ((newTagPidSequenceNr, newTimestamp)))
}
.flatMap { result =>
if (deadline.hasTimeLeft()) {
doIt()
Copy link
Member Author

Choose a reason for hiding this comment

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

@chbatey What do you think about this? As far as I can see it's just throwing away earlier results.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the initial thought was the scan would take some time so the timeout would have met by the first time it came back

@@ -109,14 +109,13 @@ import akka.stream.alpakka.cassandra.scaladsl.CassandraSession
}
acc + (pid -> ((newTagPidSequenceNr, newTimestamp)))
}
.flatMap { result =>
if (deadline.hasTimeLeft()) {
doIt()
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good

@chbatey chbatey merged commit 137d16f into master Dec 7, 2020
@chbatey chbatey deleted the wip-847-scan-patriknw branch December 7, 2020 16:13
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