Skip to content

Add configuration option to configure RabbitConnectionFactory's channelRpcTimeout #23564

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

Closed
wants to merge 1 commit into from

Conversation

jkhoward
Copy link
Contributor

@jkhoward jkhoward commented Oct 1, 2020

Added the property channelRpcTimeout in RabbitProperties.java file to be
configurable in RabbitAutoConfiguration

Thank you for the OSD opportunity to learn! I hope you all made a lot of progress on this project today.

Added the property channelRpcTimeout in RabbitProperties.java file to be
configurable in RabbitAutoConfiguration
@pivotal-issuemaster
Copy link

@jkhoward Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 1, 2020
@mbhave mbhave added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 1, 2020
@mbhave mbhave added this to the 2.4.x milestone Oct 1, 2020
@pivotal-issuemaster
Copy link

@jkhoward Thank you for signing the Contributor License Agreement!

@wilkinsona wilkinsona changed the title implemented channelRpcTimeout to RabbitProperties class Add configuration option to configure RabbitConnectionFactory's channelRpcTimeout Oct 2, 2020
/**
* Channel RPC timeout.
*/
private Duration channelRpcTimeout;
Copy link

@pierre-sion pierre-sion Oct 2, 2020

Choose a reason for hiding this comment

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

May be annotate with @DurationUnit(ChronoUnit.MILLIS) (see field requestedHeartbeat)
The default duration is infinite, which may lead to a freeze of the Spring Boot application startup in some situations => may be a sensible default of 1 min would be wise?

Copy link
Member

Choose a reason for hiding this comment

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

@pierre-sion the default is already ms so need to change the unit. In the original PR, no default value was set (null) and the mapping only applies if a non null value is provided. The default of 10 minutes is preserved but I've made that more explicit in a polish commit.

@snicoll snicoll self-assigned this Oct 2, 2020
@snicoll snicoll modified the milestones: 2.4.x, 2.4.0-M4 Oct 2, 2020
snicoll pushed a commit that referenced this pull request Oct 2, 2020
This commit adds a configuration option to configure
RabbitConnectionFactory's channelRpcTimeout property.

See gh-23564
@snicoll snicoll closed this in 2ab2cf0 Oct 2, 2020
@snicoll
Copy link
Member

snicoll commented Oct 2, 2020

@jkhoward nicely done and thank you for making your first contribution to Spring Boot. The default for this property is 10 minutes so I've polished that in c4e1b4f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants