Skip to content

Conversation

gaussianrecurrence
Copy link

  • Previously when you only specified --dir option the PID was read from
    the member workDir and the status request was attempted to solved by
    using the attachment API, and after that JMX interface.
    But given only --dir was specified the controller resolving the
    request should be FileProcessController instead.
  • Logic has been changed for both servers and locators to always use
    FileProcessConroller whenever only --dir flag is specified.
  • Added an UT to verify new code.
  • Modified several ITs to verify the new behaviour.
  • Deleted the following ITs which no longer apply with the new logic:
    • statusWithEmptyPidFileThrowsIllegalArgumentException
    • statusWithEmptyWorkingDirectoryReturnsNotRespondingWithDetails
    • statusWithStalePidFileReturnsNotResponding

Thank you for submitting a contribution to Apache Geode.

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

For all changes:

  • Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

  • Has your PR been rebased against the latest commit within the target branch (typically develop)?

  • Is your initial contribution a single, squashed commit?

  • Does gradlew build run cleanly?

  • Have you written or updated unit tests to verify your changes?

  • [N/A] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:

Please ensure that once the PR is submitted, check Concourse for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to [email protected].

@gaussianrecurrence gaussianrecurrence force-pushed the feature/GEODE-9478 branch 2 times, most recently from 9eeb75c to 0371b8f Compare August 9, 2021 16:07
@gaussianrecurrence gaussianrecurrence marked this pull request as ready for review August 16, 2021 17:04
@kirklund
Copy link
Contributor

Thanks for working on this change! Please give me a day or so to finish reviewing.

Copy link
Contributor

@kirklund kirklund left a comment

Choose a reason for hiding this comment

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

I would remove the @throws IllegalArgumentException javadoc clause on the new constructors of FileProcessController and then go ahead and merge.

Comment on lines 84 to 85
*
* @throws IllegalArgumentException if pid is not a positive integer
Copy link
Contributor

Choose a reason for hiding this comment

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

Delete throws since pid is not a parameter on this constructor.

Comment on lines 97 to 98
*
* @throws IllegalArgumentException if pid is not a positive integer
Copy link
Contributor

Choose a reason for hiding this comment

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

Delete throws since pid is not a parameter on this constructor.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for pointing this out. Change done!

@onichols-pivotal
Copy link
Contributor

Consider adding the windows label to this PR then pushing another commit (or an empty commit) to be sure there won't be any OS-specifc surprises.

@albertogpz albertogpz added the windows add this label to get Windows JDK11 PR checks too label Nov 12, 2021
@gaussianrecurrence
Copy link
Author

gaussianrecurrence commented Nov 12, 2021

Consider adding the windows label to this PR then pushing another commit (or an empty commit) to be sure there won't be any OS-specifc surprises.

Thanks for mentioning that. I tend to forget about Windows :)

@onichols-pivotal
Copy link
Contributor

this PR appears to be abandoned (although I'm not sure why), should it be merged or closed?

@gaussianrecurrence
Copy link
Author

this PR appears to be abandoned (although I'm not sure why), should it be merged or closed?

I haven't look into this for a long time. I'd like to get this merged if possible, so I'll work on the merge conflicts and try to get the missing reviews, if any others are needed

@gaussianrecurrence gaussianrecurrence force-pushed the feature/GEODE-9478 branch 5 times, most recently from 59b1701 to f7182fe Compare February 15, 2022 11:01
Mario Salazar de Torres added 2 commits September 29, 2022 09:33
 - Previously when you only specified --dir option the PID was read from
   the member workDir and the status request was attempted to solved by
   using the attachment API, and after that JMX interface.
   But given only --dir was specified the controller resolving the
   request should be FileProcessController instead.
 - Logic has been changed for both servers and locators to always use
   FileProcessConroller whenever only --dir flag is specified.
 - Added an UT to verify new code.
 - Modified several ITs to verify the new behaviour.
 - Deleted the following ITs which no longer apply with the new logic:
   * statusWithEmptyPidFileThrowsIllegalArgumentException
   * statusWithEmptyWorkingDirectoryReturnsNotRespondingWithDetails
   * statusWithStalePidFileReturnsNotResponding
 - Removed throws in javadoc given new constructors doesn't have any PID
@jdeppe-pivotal jdeppe-pivotal removed their request for review January 25, 2024 17:08
@JinwooHwang JinwooHwang reopened this Aug 30, 2025
@semioticrobotic
Copy link
Contributor

@JinwooHwang: While it has sat for some time, this appears to be ready for final review and merge, as all tests are currently passing.

@JinwooHwang
Copy link
Contributor

Thanks for taking the time to assess the PR, @semioticrobotic.
@kirklund, @jinmeiliao and @onichols-pivotal, before proceeding, does anyone have any concerns or objections regarding the merge?

@JinwooHwang
Copy link
Contributor

All checks have passed successfully.

@gaussianrecurrence
Copy link
Author

It has been a long time since I last looked at this, still if you are looking to merge this one and need my help let me know :)

@JinwooHwang
Copy link
Contributor

Hi @gaussianrecurrence,
Thank you again for your contribution and for checking in. We sincerely appreciate the effort you've invested in this work and want to ensure it receives the attention it deserves.
Since all 17 checks have passed successfully, I’m confident we’re very close to being able to merge this. To help finalize the integration into the codebase, it would be great if you could share any additional context or clarifications you might have.
Please let us know if you're available to collaborate further—we’d be glad to support however we can.

@gaussianrecurrence
Copy link
Author

Hi @gaussianrecurrence, Thank you again for your contribution and for checking in. We sincerely appreciate the effort you've invested in this work and want to ensure it receives the attention it deserves. Since all 17 checks have passed successfully, I’m confident we’re very close to being able to merge this. To help finalize the integration into the codebase, it would be great if you could share any additional context or clarifications you might have. Please let us know if you're available to collaborate further—we’d be glad to support however we can.

TBH, most of the context is already provided on the Jira ticket GEODE-9478.
Regarding the collaboration, I don't have the time I had before to dedicate to the project, but I can try and help in any means possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

windows add this label to get Windows JDK11 PR checks too

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants