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

[JavaToolInstaller]. Handling for 'unknown' errors #13237

Merged

Conversation

sdobrodeev
Copy link

@sdobrodeev sdobrodeev commented Jul 6, 2020

Task name: JavaToolInstaller

Description: Added handling for an error that occurs when calling a stat method for an inaccessible Windows share.

Documentation changes required: (Y/N) N

Added unit tests: (Y/N) N

Attached related issue: (Y/N) #13006 and #12200

Checklist:

  • Task version was bumped - please check instruction how to do it
  • Checked that applied changes work as expected

@sdobrodeev sdobrodeev requested review from leantk and a team as code owners July 6, 2020 10:40
@sdobrodeev sdobrodeev self-assigned this Jul 6, 2020
@@ -177,6 +177,7 @@
"CorrelationIdForARM": "Correlation ID from ARM api call response : %s",
"JavaNotPreinstalled": "Java %s is not preinstalled on this agent",
"UsePreinstalledJava": "Use preinstalled JDK from %s",
"WrongArchiveStructure": "JDK file is not valid. Verify if JDK file contains only one root folder with 'bin' inside."
"WrongArchiveStructure": "JDK file is not valid. Verify if JDK file contains only one root folder with 'bin' inside.",
"ShareAccessError": "Network shared resource not available (%s)"
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: 'Network shared resource not available: (%s)'

@sdobrodeev sdobrodeev linked an issue Jul 7, 2020 that may be closed by this pull request
@sdobrodeev sdobrodeev force-pushed the users/sdobrodeev/bug13006_JavaToolInstaller_unknown_error branch from 9202eb4 to 09b1fad Compare July 7, 2020 08:32
@sdobrodeev sdobrodeev requested a review from a team July 7, 2020 18:06
@@ -11,6 +11,7 @@ interface IDirectoriesDictionary {
}

export class JavaFilesExtractor {
readonly ERR_SHARE_ACCESS = -4094;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could it be private instead of public?

Copy link
Contributor

@anatolybolshakov anatolybolshakov left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@sdobrodeev sdobrodeev force-pushed the users/sdobrodeev/bug13006_JavaToolInstaller_unknown_error branch from 09b1fad to ba07852 Compare July 8, 2020 13:54
@sdobrodeev sdobrodeev merged commit 900d618 into master Jul 10, 2020
@sdobrodeev sdobrodeev deleted the users/sdobrodeev/bug13006_JavaToolInstaller_unknown_error branch July 10, 2020 08:26
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.

JavaToolInstaller task cannot get JDK file from network share
2 participants