-
Notifications
You must be signed in to change notification settings - Fork 589
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
GRIFFIN-244 Get metrics by instance #491
Conversation
In order to store more detailed information about certain metric the YARN application id associated with that metric has been added to MetricWrapper's flush method.
Merge new changes
…ticSearchSink Add applicationId to MetricWrapper
Apply changes 231 234
Griffin Exception will be thrown if there is no Job Instance Bean with given id found. Test has been added to JobControllerTest to test this logic.
Add information about new method in documentation and create new postman example.
uncomment mysql connector
Griffin 237 Get Job Instance by Id
…m_upstream # Conflicts: # service/src/main/java/org/apache/griffin/core/exception/GriffinExceptionMessage.java # service/src/main/java/org/apache/griffin/core/job/JobService.java
…stream Changes from upstream
# Conflicts: # service/src/main/java/org/apache/griffin/core/job/JobServiceImpl.java # service/src/test/java/org/apache/griffin/core/job/JobControllerTest.java
Upstream changes
PREDICATE_TYPE_NOT_FOUND(40408, "Unknown predicate type"), | ||
JOB_INSTANCE_NOT_FOUND(40408, "No job instances with given job instance id found"), | ||
|
||
PREDICATE_TYPE_NOT_FOUND(40409, "Unknown predicate type"), |
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.
This probably makes duplication with the next one. At least when requesting non-existing instance, I got Unknown predicate type
in response :o
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.
Done.
service/pom.xml
Outdated
@@ -110,11 +110,11 @@ under the License. | |||
<artifactId>postgresql</artifactId> | |||
<version>${postgresql.version}</version> | |||
</dependency> | |||
<!--<dependency>--> |
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.
let's revert it?
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.
I've commented it back.
This reverts commit a5e9bc8
After merging the different errors received the same status code(40409). This collision has been 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.
I approve. I wonder about whether we should check against empty array here but it looks like not real case for working application. Anyway this is not breaking any existing functionality.
Also there are some discrepancies with the project codestyle, but as existing project code also have them, we agreed to perform cleanup and attaching checkstyle in different PR.
@chemikadze please come to see this... |
@Override | ||
public MetricValue getMetric(String applicationId) throws IOException { | ||
Map<String, String> map =new HashMap<>(); | ||
map.put("q", "applicationId:"+applicationId); |
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.
Collections.singletonMap()
probably can be used
@RodionGork these merge commits have no practical sense, please rebase ontop of fresh master, and get rid of non-merge commits |
@chemikadze rebase leads to conflicts resolving... Thus I'd better have all this stuff squashed and pushed as @dershovGD (we probably have no practical sense in intermediate commits too), if no one's minds. |
Now #492 is a new, squashed version of this PR. |
No description provided.