You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "Arjun Mishra (JIRA)" <ji...@apache.org> on 2018/03/09 14:53:00 UTC
[jira] [Resolved] (SENTRY-2176) IllegalFormatConversionException
while trying to convert AtomicLong to int
[ https://issues.apache.org/jira/browse/SENTRY-2176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arjun Mishra resolved SENTRY-2176.
----------------------------------
Resolution: Fixed
Has been resolved with SENTRY-2124
> IllegalFormatConversionException while trying to convert AtomicLong to int
> --------------------------------------------------------------------------
>
> Key: SENTRY-2176
> URL: https://issues.apache.org/jira/browse/SENTRY-2176
> Project: Sentry
> Issue Type: Improvement
> Components: Sentry
> Affects Versions: 2.1.0
> Reporter: Arjun Mishra
> Assignee: Arjun Mishra
> Priority: Major
>
> Bug introduced by SENTRY-2078 in the toString method while trying to convert AtomicLong "leaderCount" to int
> SLF4J: Failed toString() invocation on an object of type [org.apache.sentry.service.thrift.LeaderStatusMonitor]
> java.util.IllegalFormatConversionException: d != java.util.concurrent.atomic.AtomicLong
> at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4302)
> at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2793)
> at java.util.Formatter$FormatSpecifier.print(Formatter.java:2747)
> at java.util.Formatter.format(Formatter.java:2520)
> at java.util.Formatter.format(Formatter.java:2455)
> at java.lang.String.format(String.java:2940)
> at org.apache.sentry.service.thrift.LeaderStatusMonitor.toString(LeaderStatusMonitor.java:284)
> at org.slf4j.helpers.MessageFormatter.safeObjectAppend(MessageFormatter.java:304)
> at org.slf4j.helpers.MessageFormatter.deeplyAppendParameter(MessageFormatter.java:276)
> at org.slf4j.helpers.MessageFormatter.arrayFormat(MessageFormatter.java:230)
> at org.slf4j.helpers.MessageFormatter.format(MessageFormatter.java:124)
> at org.slf4j.impl.Log4jLoggerAdapter.info(Log4jLoggerAdapter.java:322)
> at org.apache.sentry.service.thrift.LeaderStatusMonitor.takeLeadership(LeaderStatusMonitor.java:254)
> at sentry.org.apache.curator.framework.recipes.leader.LeaderSelector$WrappedListener.takeLeadership(LeaderSelector.java:537)
> at sentry.org.apache.curator.framework.recipes.leader.LeaderSelector.doWork(LeaderSelector.java:399)
> at sentry.org.apache.curator.framework.recipes.leader.LeaderSelector.doWorkLoop(LeaderSelector.java:444)
> at sentry.org.apache.curator.framework.recipes.leader.LeaderSelector.access$100(LeaderSelector.java:64)
> at sentry.org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:245)
> at sentry.org.apache.curator.framework.recipes.leader.LeaderSelector$2.call(LeaderSelector.java:239)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)