You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "sravani-revuri (via GitHub)" <gi...@apache.org> on 2026/05/12 06:52:36 UTC
[PR] HDDS-15173. FSORepairTool throws java.lang.ClassNotFoundException: org.apache.ozone.compaction.log.CompactionLogEntry error [ozone]
sravani-revuri opened a new pull request, #10245:
URL: https://github.com/apache/ozone/pull/10245
## What changes were proposed in this pull request?
FSO repair tool is throwing java.lang.ClassNotFoundException: org.apache.ozone.compaction.log.CompactionLogEntry error. This is caused by the changes done in [HDDS-14595](https://issues.apache.org/jira/browse/HDDS-14595).
```
GMGFH9VX2V:ozone-2.2.0-SNAPSHOT sarvekshayr$ bin/ozone repair om fso-tree --db /Users/sarvekshayr/MINDB/om.db --dry-run
[dry run] Skipping OM service check in dry run mode.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/ozone/compaction/log/CompactionLogEntry
at org.apache.hadoop.ozone.om.codec.OMDBDefinition.<clinit>(OMDBDefinition.java:316)
at org.apache.hadoop.ozone.repair.om.FSORepairTool.getStoreFromPath(FSORepairTool.java:625)
at org.apache.hadoop.ozone.repair.om.FSORepairTool$Impl.<init>(FSORepairTool.java:147)
at org.apache.hadoop.ozone.repair.om.FSORepairTool.execute(FSORepairTool.java:113)
at org.apache.hadoop.ozone.repair.RepairTool.call(RepairTool.java:71)
at org.apache.hadoop.ozone.repair.RepairTool.call(RepairTool.java:28)
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:89)
at org.apache.hadoop.hdds.cli.GenericCli.run(GenericCli.java:80)
at org.apache.hadoop.ozone.repair.OzoneRepair.main(OzoneRepair.java:37)
Caused by: java.lang.ClassNotFoundException: org.apache.ozone.compaction.log.CompactionLogEntry
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
```
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-15173
## How was this patch tested?
Manual Testing.
```
bin/ozone repair om fso-tree --db /Users/vrevuri/outside-omdb/om.db --volume=/volfs --bucket=buckfs
ATTENTION: Running as user vrevuri. Make sure this is the same user used to run the Ozone process. Are you sure you want to continue (y/N)? y
Run as user: vrevuri
No running OM service detected. Proceeding with repair.
Creating database with reachable and pendingToDelete tables at /Users/vrevuri/outside-omdb/temp.db
Processing volume: /volfs
Processing bucket: volfs/buckfs
Reachable:
Directories: 2
Files: 3
Bytes: 18
Unreachable (Pending to delete):
Directories: 0
Files: 0
Bytes: 0
Unreferenced (Orphaned):
Directories: 0
Files: 0
Bytes: 0
```
```
bin/ozone repair om fso-tree --db /Users/vrevuri/outside-omdb/om.db
ATTENTION: Running as user vrevuri. Make sure this is the same user used to run the Ozone process. Are you sure you want to continue (y/N)? y
Run as user: vrevuri
No running OM service detected. Proceeding with repair.
Creating database with reachable and pendingToDelete tables at /Users/vrevuri/outside-omdb/temp.db
Processing volume: /s3v
Processing volume: /volfs
Processing bucket: volfs/buckfs
Reachable:
Directories: 2
Files: 3
Bytes: 18
Unreachable (Pending to delete):
Directories: 0
Files: 0
Bytes: 0
Unreferenced (Orphaned):
Directories: 0
Files: 0
Bytes: 0
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-15173. FSORepairTool throws ClassNotFoundException: org.apache.ozone.compaction.log.CompactionLogEntry [ozone]
Posted by "sarvekshayr (via GitHub)" <gi...@apache.org>.
sarvekshayr merged PR #10245:
URL: https://github.com/apache/ozone/pull/10245
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-15173. FSORepairTool throws ClassNotFoundException: org.apache.ozone.compaction.log.CompactionLogEntry [ozone]
Posted by "sarvekshayr (via GitHub)" <gi...@apache.org>.
sarvekshayr commented on PR #10245:
URL: https://github.com/apache/ozone/pull/10245#issuecomment-4431295592
Thanks @sravani-revuri for the fix and @adoroszlai for the review,
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org