jboss-set / aphrodite

A java api for retrieving and updating SET issues from multiple issue trackers.
4 stars 26 forks source link

Sometimes Aphrodite can't read pull reuqest from repository #229

Open soul2zimate opened 4 years ago

soul2zimate commented 4 years ago

I doubt this is a bug or a network connection issue. This is hard to reproduce and really intermittent. e.g. it seems that public https://api.github.com/repos/xnio/xnio is not reachable at below case.

2020-09-28 09:52:34,728 WARN  [org.jboss.set.aphrodite.spi.RepositoryService] (pool-415-thread-9) repository : https://github.com/xnio/xnio/pull/142 is not accessable due to Server returned HTTP response code: -1, message: 'null' for URL: https://api.github.com/repos/xnio/xnio. Check repository link and your account permission.
2020-09-28 09:52:34,729 ERROR [org.jboss.set.aphrodite.issue.trackers.jira.JiraPatchHomeImpl] (pool-415-thread-9) Unable to find pull request with url: https://github.com/xnio/xnio/pull/142: org.jboss.set.aphrodite.spi.NotFoundException: No pull request found which corresponds to url: https://github.com/xnio/xnio/pull/142
    at deployment.prbz-overview.war//org.jboss.set.aphrodite.Aphrodite.getPullRequest(Aphrodite.java:667)
    at deployment.prbz-overview.war//org.jboss.set.aphrodite.issue.trackers.jira.JiraPatchHomeImpl.getPatchState(JiraPatchHomeImpl.java:72)
    at deployment.prbz-overview.war//org.jboss.set.aphrodite.issue.trackers.jira.JiraPatchHomeImpl.lambda$mapURLtoPatchStream$0(JiraPatchHomeImpl.java:52)
    at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
    at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
    at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
    at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
    at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
    at deployment.prbz-overview.war//org.jboss.set.aphrodite.issue.trackers.jira.JiraPatchHomeImpl.mapURLtoPatchStream(JiraPatchHomeImpl.java:54)
    at deployment.prbz-overview.war//org.jboss.set.aphrodite.issue.trackers.jira.JiraPatchHomeImpl.findPatchesByIssue(JiraPatchHomeImpl.java:46)
    at deployment.prbz-overview.war//org.jboss.set.aphrodite.issue.trackers.jira.JiraIssue.getPatches(JiraIssue.java:128)
    at deployment.prbz-overview.war//org.jboss.set.assist.evaluator.impl.payload.AssociatedPullRequestEvaluator.eval(AssociatedPullRequestEvaluator.java:72)
    at deployment.prbz-overview.war//org.jboss.set.overview.processor.PayloadOverviewProcessor$PayloadProcessingTask.call(PayloadOverviewProcessor.java:219)
    at deployment.prbz-overview.war//org.jboss.set.overview.processor.PayloadOverviewProcessor$PayloadProcessingTask.call(PayloadOverviewProcessor.java:183)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)