Skip to content

Conversation

@micossow
Copy link
Contributor

@micossow micossow commented Apr 5, 2024

closes #858

@micossow micossow marked this pull request as ready for review April 8, 2024 12:49
@micossow micossow requested review from adamw, kciesielski and mostr April 8, 2024 12:50
Copy link
Contributor

@mostr mostr left a comment

Choose a reason for hiding this comment

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

Few minor comments as I'm quite new to this code


// then: ensure that not all messages were moved back to the original queue after 2 seconds
Thread.sleep(2000)
fetchApproximateNumberOfMessages(queue) should (be > 1 and be < 6)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't that be max 2 and the former one min 4?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only if the message move jobs starts immediately, which I'm not sure is guaranteed in the environments like the Github Actions provide (fractions of CPU core)

# Conflicts:
#	rest/rest-sqs/src/main/scala/org/elasticmq/rest/sqs/SQSRestServerBuilder.scala
@micossow micossow merged commit eda7e9f into master Apr 10, 2024
@micossow micossow deleted the message-transfer branch April 10, 2024 16:10
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.

Implement dead-letter queue redrive actions

4 participants