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

disallow retryInterval when fail over is enabled #10521

Conversation

njr-11
Copy link
Contributor

@njr-11 njr-11 commented Jan 21, 2020

It should not be allowed to configure retryInterval (which is single-server only and interferes with fail over) when missed task threshold is configured to enable fail over. Reject this combination and update tests accordingly.

@njr-11
Copy link
Contributor Author

njr-11 commented Jan 21, 2020

#build

@LibbyBot
Copy link

Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_0zPGcDyZEeqMye9II9MD-g

Target locations of links might be accessible only to IBM employees.

@LibbyBot
Copy link

@LibbyBot
Copy link

The build njr-11-10521-20200121-2332
https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_0zPGcDyZEeqMye9II9MD-g
completed and has errors or failures.

For help analyzing your personal build, go to https://cognitive.hursley.ibm.com/buildAnalysis.html?uuid=_0zPGcDyZEeqMye9II9MD-g

@njr-11 njr-11 force-pushed the 8610-disallow-retryInterval-when-failover-enabled-merged branch from 5071811 to acee8ac Compare January 22, 2020 14:47
@njr-11
Copy link
Contributor Author

njr-11 commented Jan 22, 2020

#run-libby-bot
#build

@LibbyBot
Copy link

Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_0YiigD0dEeqMye9II9MD-g

Target locations of links might be accessible only to IBM employees.

@@ -41,7 +41,7 @@ jndiName=JNDI name
jndiName.desc=JNDI name.

missedTaskThreshold=Missed task threshold for fail over
missedTaskThreshold.desc=Amount of time beyond the expected start of a task execution to reserve for running it. Other members are prevented from running the task before the expiration of this interval. If the interval elapses without successful execution of the task, then the task execution is considered missed, enabling another member to attempt to run it. This enables fail over.
missedTaskThreshold.desc=missedTaskThreshold.desc=Amount of time beyond the expected start of a task execution to reserve for running it. Other members are prevented from running the task before the expiration of this interval. If the interval elapses without successful execution of the task or the task rolls back, then the task execution is considered missed, enabling another member to attempt to run it. This enables fail over.
Copy link
Member

Choose a reason for hiding this comment

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

looks like there's a typo at the start of the line- desc code appears twice?

The final sentence- This enables failover
What, specifically, enables failover? Need to specify - is it the process described in the previous sentence? Or missedTaskThreshold?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for catching this. I attempted to fix this issue and the other issues that you found under
726da70
Please review and approve or let me know if further changes are needed.

CWWKC1521.less.than.min=CWWKC1521E: Configured value {0} for {1} cannot be less than the configured value for {2}, which is {3}.
CWWKC1521.less.than.min.explanation=Configuring a larger retryInterval encourages other servers to retry the failed task instead of the server on which it failed.
CWWKC1521.less.than.min.useraction=Configure the retryInterval property so that it is larger than the missedTaskThreshold.
CWWKC1521.not.compatible=CWWKC1521E: Configuration attribute {0} is not valid when {1} is enabled.
Copy link
Member

Choose a reason for hiding this comment

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

change
Configuration attribute {0} is not valid when {1} is enabled
to
The {0} configuration attribute is not valid when the {1} configuration attribute is enabled.

CWWKC1521.less.than.min.useraction=Configure the retryInterval property so that it is larger than the missedTaskThreshold.
CWWKC1521.not.compatible=CWWKC1521E: Configuration attribute {0} is not valid when {1} is enabled.
CWWKC1521.not.compatible.explanation=The specified configuration attributes are not compatible.
CWWKC1521.not.compatible.useraction=Update configuration to remove one of the configuration attributes.
Copy link
Member

Choose a reason for hiding this comment

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

change
Update configuration to remove one of the configuration attributes.
to
Update the configuration to remove one of the configuration attributes.

dmuelle
dmuelle approved these changes Jan 22, 2020
@dmuelle dmuelle self-requested a review January 22, 2020 17:34
Copy link
Member

@dmuelle dmuelle left a comment

Choose a reason for hiding this comment

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

one additional edit to clean up the first sentence- other changes look good

@@ -41,7 +41,7 @@ jndiName=JNDI name
jndiName.desc=JNDI name.

missedTaskThreshold=Missed task threshold for fail over
missedTaskThreshold.desc=Amount of time beyond the expected start of a task execution to reserve for running it. Other members are prevented from running the task before the expiration of this interval. If the interval elapses without successful execution of the task, then the task execution is considered missed, enabling another member to attempt to run it. This enables fail over.
missedTaskThreshold.desc=Amount of time beyond the expected start of a task execution to reserve for running it. Other members are prevented from running the task before the expiration of this interval. If the interval elapses without successful execution of the task or the task rolls back, then the task execution is considered missed, enabling another member to attempt to run it. Missed task threshold values within the supported range of 100 seconds to 9000 seconds (2.5 hours) enable failover.
Copy link
Member

Choose a reason for hiding this comment

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

change
Amount of time beyond the expected start of a task execution to reserve for running it.
to
The amount of time after the expected start of a task execution that is reserved for running the task.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The fix for the above has been made exactly as suggested under 9d01e54

@njr-11
Copy link
Contributor Author

njr-11 commented Jan 22, 2020

#build
#run-libby-bot

@LibbyBot
Copy link

Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_re-vwD08EeqMye9II9MD-g

Target locations of links might be accessible only to IBM employees.

@LibbyBot
Copy link

Copy link
Member

@dmuelle dmuelle left a comment

Choose a reason for hiding this comment

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

Changes look good

@LibbyBot
Copy link

The build njr-11-10521-20200122-1839
https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_re-vwD08EeqMye9II9MD-g
completed and has errors or failures.

For help analyzing your personal build, go to https://cognitive.hursley.ibm.com/buildAnalysis.html?uuid=_re-vwD08EeqMye9II9MD-g

@njr-11
Copy link
Contributor Author

njr-11 commented Jan 23, 2020

#build

@LibbyBot
Copy link

Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_xgxZMD3jEeqMye9II9MD-g

Target locations of links might be accessible only to IBM employees.

Copy link
Member

@dmuelle dmuelle left a comment

Choose a reason for hiding this comment

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

Hi @njr-11 , upon editorial review, my team lead has requested further revision of this message to remove the word "execution". See my suggested revision below. Let me know if you have any questions. Thanks

@@ -41,7 +41,7 @@ jndiName=JNDI name
jndiName.desc=JNDI name.

missedTaskThreshold=Missed task threshold for fail over
missedTaskThreshold.desc=Amount of time beyond the expected start of a task execution to reserve for running it. Other members are prevented from running the task before the expiration of this interval. If the interval elapses without successful execution of the task, then the task execution is considered missed, enabling another member to attempt to run it. This enables fail over.
missedTaskThreshold.desc=The amount of time after the expected start of a task execution that is reserved for running the task. Other members are prevented from running the task before the expiration of this interval. If the interval elapses without successful execution of the task or the task rolls back, then the task execution is considered missed, enabling another member to attempt to run it. Missed task threshold values within the supported range of 100 seconds to 9000 seconds (2.5 hours) enable failover.
Copy link
Member

@dmuelle dmuelle Jan 23, 2020

Choose a reason for hiding this comment

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

**suggested revision (removes "execution")

The amount of time after the expected start of a task that is reserved for running the task. Other members are prevented from running the task before the expiration of this interval. If the interval elapses without the task running successfully, or the task rolls back, then the task run is considered missed, enabling another member to attempt to run it. Missed task threshold values within the supported range of 100 seconds to 9000 seconds (2.5 hours) enable failover.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated here:
f40a335

@njr-11
Copy link
Contributor Author

njr-11 commented Jan 23, 2020

#build
#run-libby-bot

@LibbyBot
Copy link

Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_5KwhAD3xEeqMye9II9MD-g

Target locations of links might be accessible only to IBM employees.

Copy link
Member

@dmuelle dmuelle left a comment

Choose a reason for hiding this comment

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

changes approved

@LibbyBot
Copy link

@njr-11
Copy link
Contributor Author

njr-11 commented Jan 23, 2020

An additional commit was added due to a merge conflict. It did not impact any of the message files. A new build is required though:
#build
#run-libby-bot

@LibbyBot
Copy link

Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_heK80D4mEeqMye9II9MD-g

Target locations of links might be accessible only to IBM employees.

@LibbyBot
Copy link

The build njr-11-10521-20200123-1617
https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_5KwhAD3xEeqMye9II9MD-g
completed successfully!

@LibbyBot
Copy link

@LibbyBot
Copy link

The build njr-11-10521-20200123-2233
https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_heK80D4mEeqMye9II9MD-g
completed and has errors or failures.

For help analyzing your personal build, go to https://cognitive.hursley.ibm.com/buildAnalysis.html?uuid=_heK80D4mEeqMye9II9MD-g

@andrea-pichler
Copy link

Completed the requested L2 message review

@njr-11
Copy link
Contributor Author

njr-11 commented Jan 24, 2020

#build
#run-libby-bot

@LibbyBot
Copy link

Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_Ga_XAD6tEeqMye9II9MD-g

Target locations of links might be accessible only to IBM employees.

@LibbyBot
Copy link

Code analysis and actions

DO NOT DELETE THIS COMMENT.
  • 4 product code files were changed.

  • Please describe in a separate comment how you tested your changes.

  • 8 FAT files were changed, added, or removed.

  • Check that the build did not break the affected FAT suite(s).

  • 1 messages files were changed and need an L2 review.

  • @OpenLiberty/message-reviewer Please review.

  • dev/com.ibm.ws.concurrent.persistent/resources/com/ibm/ws/concurrent/persistent/resources/CWWKCMessages.nlsprops

  • 2 NLS files were changed and need an ID review.

  • @OpenLiberty/message-reviewer Please review.

  • dev/com.ibm.ws.concurrent.persistent/resources/OSGI-INF/l10n/metatype.properties

  • dev/com.ibm.ws.concurrent.persistent/resources/com/ibm/ws/concurrent/persistent/resources/CWWKCMessages.nlsprops

@LibbyBot
Copy link

@njr-11
Copy link
Contributor Author

njr-11 commented Jan 24, 2020

#build

@LibbyBot
Copy link

Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_yB60MD7wEeqMye9II9MD-g

Target locations of links might be accessible only to IBM employees.

@LibbyBot
Copy link

The build njr-11-10521-20200124-1436
https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_Ga_XAD6tEeqMye9II9MD-g
completed and has errors or failures.

For help analyzing your personal build, go to https://cognitive.hursley.ibm.com/buildAnalysis.html?uuid=_Ga_XAD6tEeqMye9II9MD-g

@LibbyBot
Copy link

@LibbyBot
Copy link

The build njr-11-10521-20200125-1030
https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_yB60MD7wEeqMye9II9MD-g
completed and has errors or failures.

For help analyzing your personal build, go to https://cognitive.hursley.ibm.com/buildAnalysis.html?uuid=_yB60MD7wEeqMye9II9MD-g

@njr-11
Copy link
Contributor Author

njr-11 commented Jan 25, 2020

Build has 1 failure, which is a duplicate of a pre-existing issue

@njr-11 njr-11 merged commit 60c8e23 into OpenLiberty:integration Jan 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants