Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
Verbose output of snapshot info command throws IllegalFormatConversionException
Non-verbose output -
bash-4.2$ ozone sh snapshot info vol1/buck1 snap1 { "volumeName" : "vol1", "bucketName" : "buck1", "name" : "snap1", "creationTime" : 1696964496455, "snapshotStatus" : "SNAPSHOT_ACTIVE", "snapshotId" : "fe67afd7-135c-45ee-862d-c6fb7ae0c75c", "snapshotPath" : "vol1/buck1", "checkpointDir" : "-fe67afd7-135c-45ee-862d-c6fb7ae0c75c", "referencedSize" : 5763, "referencedReplicatedSize" : 17289, "exclusiveSize" : 0, "exclusiveReplicatedSize" : 0 }
Verbose output -
bash-4.2$ ozone sh --verbose snapshot info vol1/buck1 snap1 Volume Name : vol1 Bucket Name : buck1 Snapshot info for snapshot: java.util.IllegalFormatConversionException: d != java.lang.String at java.base/java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4426) at java.base/java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2938) at java.base/java.util.Formatter$FormatSpecifier.print(Formatter.java:2892) at java.base/java.util.Formatter.format(Formatter.java:2673) at java.base/java.io.PrintStream.format(PrintStream.java:1053) at java.base/java.io.PrintStream.printf(PrintStream.java:949) at org.apache.hadoop.ozone.shell.snapshot.InfoSnapshotHandler.execute(InfoSnapshotHandler.java:59) at org.apache.hadoop.ozone.shell.Handler.call(Handler.java:98) at org.apache.hadoop.ozone.shell.Handler.call(Handler.java:44) at picocli.CommandLine.executeUserObject(CommandLine.java:2041) at picocli.CommandLine.access$1500(CommandLine.java:148) at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461) at picocli.CommandLine$RunLast.handle(CommandLine.java:2453) at picocli.CommandLine$RunLast.handle(CommandLine.java:2415) at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273) at picocli.CommandLine$RunLast.execute(CommandLine.java:2417) at picocli.CommandLine.execute(CommandLine.java:2170) at org.apache.hadoop.hdds.cli.GenericCli.execute(GenericCli.java:100) at org.apache.hadoop.ozone.shell.OzoneShell.lambda$execute$0(OzoneShell.java:52) at org.apache.hadoop.hdds.tracing.TracingUtil.executeInSpan(TracingUtil.java:169) at org.apache.hadoop.hdds.tracing.TracingUtil.executeInNewSpan(TracingUtil.java:149) at org.apache.hadoop.ozone.shell.OzoneShell.execute(OzoneShell.java:51) at org.apache.hadoop.hdds.cli.GenericCli.run(GenericCli.java:91) at org.apache.hadoop.ozone.shell.OzoneShell.main(OzoneShell.java:44)
Attachments
Issue Links
- links to