Hi,
I had a closer look : this is a bug in the parsing of strings in the Status tool.
For stream names of length 20 the formatting would just fail and that seems to be precisely
what you got.
I uploaded a patch to be integrated in version 0.6 (release candidate most probably next week).
See ticket S4-127.
Workaround is to use a stream name with a length different than 20 ...
Thanks again for reporting that!
Matthieu
On Mar 4, 2013, at 11:44 , Matthieu Morel wrote:
> Hi,
>
> this looks like a bug. If filed a ticket with your input and we'll fix that as soon as
possible.
>
> https://issues.apache.org/jira/browse/S4-127
>
> Thanks!
>
> Matthieu
>
>
> On Mar 4, 2013, at 04:20 , Dingyu Yang wrote:
>
>> Hi, all,
>> I find a problem that I have a app ,which includes multiple streams. They
>> can merge into a stream, and a stream goes into multiple PEs.
>> Then the s4 status command can not display.
>> Cannot get the status of S4.
>>
>> 11:09:56.308 [main] ERROR org.apache.s4.tools.Status - Cannot get the
>> status of S4
>> java.util.FormatFlagsConversionMismatchException: Conversion = s, Flags = 0
>> at java.util.Formatter$FormatSpecifier.failMismatch(Formatter.java:3995)
>> ~[na:1.6.0_22]
>> at java.util.Formatter$FormatSpecifier.checkBadFlags(Formatter.java:2905)
>> ~[na:1.6.0_22]
>> at java.util.Formatter$FormatSpecifier.checkGeneral(Formatter.java:2863)
>> ~[na:1.6.0_22]
>> at java.util.Formatter$FormatSpecifier.<init>(Formatter.java:2639)
>> ~[na:1.6.0_22]
>> at java.util.Formatter.parse(Formatter.java:2480) ~[na:1.6.0_22]
>> at java.util.Formatter.format(Formatter.java:2414) ~[na:1.6.0_22]
>> at java.util.Formatter.format(Formatter.java:2367) ~[na:1.6.0_22]
>> at java.lang.String.format(String.java:2769) ~[na:1.6.0_22]
>> at org.apache.s4.tools.Status.inMiddle(Status.java:209)
>> ~[s4-tools-0.5.0-incubating.jar:0.5.0-incubating]
>> at org.apache.s4.tools.Status.showStreamsStatus(Status.java:199)
>> ~[s4-tools-0.5.0-incubating.jar:0.5.0-incubating]
>> at org.apache.s4.tools.Status.main(Status.java:119)
>> ~[s4-tools-0.5.0-incubating.jar:0.5.0-incubating]
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> ~[na:1.6.0_22]
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> ~[na:1.6.0_22]
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> ~[na:1.6.0_22]
>> at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_22]
>> at org.apache.s4.tools.Tools$Task.dispatch(Tools.java:54)
>> [s4-tools-0.5.0-incubating.jar:0.5.0-incubating]
>> at org.apache.s4.tools.Tools.main(Tools.java:94)
>> [s4-tools-0.5.0-incubating.jar:0.5.0-incubating]
>
|