[ https://issues.apache.org/jira/browse/IGNITE-10275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16691658#comment-16691658 ]
ASF GitHub Bot commented on IGNITE-10275: ----------------------------------------- SomeFire commented on a change in pull request #74: IGNITE-10275 Refactor of visa caching. Jira spam fix. URL: https://github.com/apache/ignite-teamcity-bot/pull/74#discussion_r234601602 ########## File path: ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/tcbot/visa/TcBotTriggerAndSignOffService.java ########## @@ -56,10 +59,20 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +import static org.apache.ignite.ci.observer.BuildsInfo.CANCELLED_STATUS; +import static org.apache.ignite.ci.observer.BuildsInfo.FINISHED_STATUS; +import static org.apache.ignite.ci.observer.BuildsInfo.RUNNING_STATUS; + /** * Provides method for TC Bot Visa obtaining */ public class TcBotTriggerAndSignOffService { + /** */ + private static final ThreadLocal<DateFormat> THREAD_FORMATTER = new ThreadLocal<DateFormat>() { Review comment: Why thread local? Looks like we need a simple object. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > [TC Bot] Several JIRA comments are issued in case ignite.cache.remove failed > ---------------------------------------------------------------------------- > > Key: IGNITE-10275 > URL: https://issues.apache.org/jira/browse/IGNITE-10275 > Project: Ignite > Issue Type: Task > Reporter: Dmitriy Pavlov > Assignee: PetrovMikhail > Priority: Major > > Examples of spam: > - https://issues.apache.org/jira/browse/IGNITE-9308 > - https://issues.apache.org/jira/browse/IGNITE-10141 > org/apache/ignite/ci/observer/ObserverTask.java:179 > org.apache.ignite.IgniteCache#remove(K) > returns false, so bot tries to re-comment ticket in next cycle. > It is possible as a fast fix at first check removes result, as a full fix we > can refactor visa requests queue to some new (probably synthetic key). -- This message was sent by Atlassian JIRA (v7.6.3#76005)