-
Notifications
You must be signed in to change notification settings - Fork 31
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
Added support for naming Jargon apps in ips (main) #423
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great first attempt!
jargon-core/src/main/java/org/irods/jargon/core/connection/IRODSSession.java
Outdated
Show resolved
Hide resolved
jargon-core/src/main/java/org/irods/jargon/core/connection/IRODSSession.java
Outdated
Show resolved
Hide resolved
jargon-core/src/main/java/org/irods/jargon/core/connection/IRODSSession.java
Outdated
Show resolved
Hide resolved
jargon-core/src/main/java/org/irods/jargon/core/packinstr/StartupPack.java
Outdated
Show resolved
Hide resolved
jargon-core/src/main/java/org/irods/jargon/core/packinstr/StartupPack.java
Outdated
Show resolved
Hide resolved
jargon-core/src/main/java/org/irods/jargon/core/packinstr/StartupPack.java
Outdated
Show resolved
Hide resolved
Awesome. Apologies for naive question.... why is |
it could honestly be a method of either, we just need to modify the respective file. i originally added it as a method of the |
jargon-core/src/main/java/org/irods/jargon/core/packinstr/StartupPack.java
Outdated
Show resolved
Hide resolved
jargon-core/src/main/java/org/irods/jargon/core/packinstr/StartupPack.java
Outdated
Show resolved
Hide resolved
I think this highly depends on what we want to support. If clients are required to only appear under one name, then setting the name via a If clients are allowed to appear under multiple names, then the member variables and functions shouldn't be marked |
The only known/imagined use case, as far as I know, is to allow an application writer to 'name' their app. I don't know of a scenario where I'd want to label individual connections from a particular app with different names. Can we think of one? Metalnx having a 'main' vs. 'worker' threads? Or NFSRODS doing 'active' vs. 'background' or 'precache' work? |
That's where I landed as well. I don't think there's much value in allowing each connection to have a different name. It is only a nice to have. If we allowed this, then we'd have to establish naming rules so people don't show up with weird schemes. Good logging removes the need for individually named connections. I vote we only let users set a single name for all connections. Keeps things simple. |
agreed. name the app, not the connection. |
jargon-core/src/main/java/org/irods/jargon/core/packinstr/StartupPack.java
Outdated
Show resolved
Hide resolved
jargon-core/src/main/java/org/irods/jargon/core/packinstr/StartupPack.java
Outdated
Show resolved
Hide resolved
jargon-core/src/main/java/org/irods/jargon/core/packinstr/StartupPack.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're close. We're going to have to run the Jargon test suite before this can be merged.
jargon-core/src/main/java/org/irods/jargon/core/connection/IRODSSession.java
Outdated
Show resolved
Hide resolved
jargon-core/src/main/java/org/irods/jargon/core/packinstr/StartupPack.java
Outdated
Show resolved
Hide resolved
jargon-core/src/main/java/org/irods/jargon/core/packinstr/StartupPack.java
Outdated
Show resolved
Hide resolved
jargon-core/src/main/java/org/irods/jargon/core/packinstr/StartupPack.java
Outdated
Show resolved
Hide resolved
Once the code passes review. Take a swing at running the Jargon test suite. You can find instructions at https://github.com/DICE-UNC/jargon/tree/master/docker-test-framework. |
The testing framework isn't working for me (both latest and 4-2). In 4-2, when running
In latest, when running After discussing with Kory, we've decided to skip the testing framework for now (this PR compiles into a .jar fine, and works with NFSRODS when naming). Happy to leave this PR open until testing framework is fixed if needed. Will squash & clean up PR in meantime |
3e4cdd6
to
d43de5a
Compare
jargon-core/src/main/java/org/irods/jargon/core/packinstr/StartupPack.java
Outdated
Show resolved
Hide resolved
jargon-core/src/main/java/org/irods/jargon/core/packinstr/StartupPack.java
Outdated
Show resolved
Hide resolved
c2a944b
to
1656ac3
Compare
looking very good |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff!
We'll work out the test situation before adding the pound and merging.
@ganning127 I created PR #424 to address the test issue reported here. Please try to run the tests using that and let us know if it allows you to make more progress. |
From our discussion on Zoom, something is hanging on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All tests pass.
Consider changing commit message to something like ...
[407] Jargon apps can now report their name to iRODS server for ips.
Please add the pound too.
1656ac3
to
874de1f
Compare
changed commit message and added # |
feel free to leave feedback on how data is passed around / what to change.
in the Jargon app, we need to do something like
to show the name