[
https://issues.apache.org/jira/browse/FALCON-1621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15152174#comment-15152174
]
Praveen Adlakha commented on FALCON-1621:
-----------------------------------------
Testing for this one
{code}
$ falcon instance -type feed -name A7769e4e0-1e5dd537 -listing
Consolidated Status: SUCCEEDED
Instances:
Cluster Instance Status Size
CreationTime Details
-----------------------------------------------------------------------------------------------
A7769e4e0-f6695c1c2016-02-18T07:31Z MISSING - -
/tmp/falcon-regression/FeedReplicationTest/source/2016/02/18/07/31
A7769e4e0-f6695c1c2016-02-18T07:36Z MISSING - -
/tmp/falcon-regression/FeedReplicationTest/source/2016/02/18/07/36
A7769e4e0-aef2de442016-02-18T07:31Z MISSING - -
/tmp/falcon-regression/FeedReplicationTest/target/2016/02/18/07/31
A7769e4e0-aef2de442016-02-18T07:36Z MISSING - -
/tmp/falcon-regression/FeedReplicationTest/target/2016/02/18/07/36
Additional Information:
Response: ua1/Success
ua2/Success
Request Id: ua1/1709804316@qtp-690339675-0 -
8424918f-f8f0-4349-af75-d1a9fa87500f
ua2/2074919474@qtp-311239812-2 - e25ca400-9bcf-41eb-a5f4-755197bd8411
{code}
> Lifecycle of entity gets missed when prism and falcon server communicates
> -------------------------------------------------------------------------
>
> Key: FALCON-1621
> URL: https://issues.apache.org/jira/browse/FALCON-1621
> Project: Falcon
> Issue Type: Bug
> Reporter: Praveen Adlakha
> Assignee: Praveen Adlakha
>
> Hi All,
> When ever communication happens between Prism and falcon server in
> distributed mode methods related to lifecycle will never get called because
> of :
> {code}
> private String pathValue(Method method, Object... args) throws
> FalconException {
> Path pathParam = method.getAnnotation(Path.class);
> if (pathParam == null) {
> throw new FalconException("No path param mentioned for " +
> method);
> }
> String pathValue = pathParam.value();
> Annotation[][] paramAnnotations = method.getParameterAnnotations();
> StringBuilder queryString = new StringBuilder("?");
> for (int index = 0; index < args.length; index++) {
> if (args[index] instanceof String || args[index] instanceof
> Boolean || args[index] instanceof Integer) {
> String arg = String.valueOf(args[index]);
> for (int annotation = 0; annotation <
> paramAnnotations[index].length; annotation++) {
> Annotation paramAnnotation =
> paramAnnotations[index][annotation];
> String annotationClass =
> paramAnnotation.annotationType().getName();
> if (annotationClass.equals(QueryParam.class.getName())) {
>
> queryString.append(getAnnotationValue(paramAnnotation, "value")).
> append('=').append(arg).append("&");
> } else if
> (annotationClass.equals(PathParam.class.getName())) {
> pathValue = pathValue.replace("{"
> + getAnnotationValue(paramAnnotation,
> "value") + "}", arg);
> }
> }
> }
> }
> return pathValue + queryString.toString();
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)