Jyotirmoy Sinha created HDDS-9892:
-------------------------------------

             Summary: [snapshot] Verbose output of snapshot info command throws 
IllegalFormatConversionException
                 Key: HDDS-9892
                 URL: https://issues.apache.org/jira/browse/HDDS-9892
             Project: Apache Ozone
          Issue Type: Bug
          Components: Snapshot
            Reporter: Jyotirmoy Sinha


Verbose output of snapshot info command throws IllegalFormatConversionException

Non-verbose output -
{code:java}
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
} {code}
Verbose output -
{code:java}
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) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to