Pratyush Bhatt created HDDS-10209:
-------------------------------------
Summary: ozone admin om list-open-files throws ambigious output
when prefix is at volume level
Key: HDDS-10209
URL: https://issues.apache.org/jira/browse/HDDS-10209
Project: Apache Ozone
Issue Type: Bug
Components: Ozone CLI
Reporter: Pratyush Bhatt
If the prefix is passed at bucket level (i.e. /vol/buck) or at key level (i.e.
/vol/buck/key), then the command works fine:
{code:java}
[root@ccycloud-1 ~]# ozone admin om lof --service-id=ozone1706076384
--prefix=/volhbase1/buckethbase1 --length=500
524 total open files (est.). Showing 16 open files (limit 500) under path
prefix:
/volhbase1/buckethbase1Client ID Creation time Hsync'ed Open
File Path
111812547758719287 1706124080790 Yes
/volhbase1/buckethbase1/-9223372036591838975/ccycloud-4.ozn-hb3chf3oz.xyz%2C22101%2C1706124062457.ccycloud-4.ozn-hb3chf3oz.xyz%2C22101%2C1706124062457.regiongroup-0.1706124080749
111812547511583030 1706124077020 Yes
/volhbase1/buckethbase1/-9223372036591976191/ccycloud-6.ozn-hb3chf3oz.xyz%2C22101%2C1706124059945.ccycloud-6.ozn-hb3chf3oz.xyz%2C22101%2C1706124059945.regiongroup-0.1706124076997
111812547468394805 1706124076361 Yes
/volhbase1/buckethbase1/-9223372036591977727/ccycloud-8.ozn-hb3chf3oz.xyz%2C22101%2C1706124060101.ccycloud-8.ozn-hb3chf3oz.xyz%2C22101%2C1706124060101.regiongroup-0.1706124076336
111812547463545140 1706124076287 Yes
/volhbase1/buckethbase1/-9223372036591978239/ccycloud-2.ozn-hb3chf3oz.xyz%2C22101%2C1706124060206.ccycloud-2.ozn-hb3chf3oz.xyz%2C22101%2C1706124060206.regiongroup-0.1706124076269
111812547448275251 1706124076054 Yes
/volhbase1/buckethbase1/-9223372036591981567/ccycloud-7.ozn-hb3chf3oz.xyz%2C22101%2C1706124059311.ccycloud-7.ozn-hb3chf3oz.xyz%2C22101%2C1706124059311.regiongroup-0.1706124076022
111812547421536562 1706124075646 Yes
/volhbase1/buckethbase1/-9223372036591996927/ccycloud-5.ozn-hb3chf3oz.xyz%2C22101%2C1706124059421.ccycloud-5.ozn-hb3chf3oz.xyz%2C22101%2C1706124059421.regiongroup-0.1706124075634
111812547420750129 1706124075634 Yes
/volhbase1/buckethbase1/-9223372036591997951/ccycloud-9.ozn-hb3chf3oz.xyz%2C22101%2C1706124058991.ccycloud-9.ozn-hb3chf3oz.xyz%2C22101%2C1706124058991.regiongroup-0.1706124075622
111812547400827184 1706124075330 Yes
/volhbase1/buckethbase1/-9223372036592011519/ccycloud-1.ozn-hb3chf3oz.xyz%2C22101%2C1706124059096.ccycloud-1.ozn-hb3chf3oz.xyz%2C22101%2C1706124059096.regiongroup-0.1706124075324
111812547330179375 1706124074252 Yes
/volhbase1/buckethbase1/-9223372036592011519/ccycloud-1.ozn-hb3chf3oz.xyz%2C22101%2C1706124059096.meta.1706124074239.meta
111812606359044424 1706124974960 Yes
/volhbase1/buckethbase1/-9223372036592049151/ccycloud-1.ozn-hb3chf3oz.xyz%2C22001%2C1706124060079.1706124974943
111812546705359147 1706124064717 No
/volhbase1/buckethbase1/-9223372036592054271/hbase-hbck.lock
111812214078111792 1706118989225 No
/volhbase1/buckethbase1/-9223372036679375615/hbase-hbck.lock
111811869587342596 1706113732717 No
/volhbase1/buckethbase1/-9223372036761317887/hbase-hbck.lock
111811995656924462 1706115656386 Yes
/volhbase1/buckethbase1/-9223372036854114047/ccycloud-7.ozn-hb3chf3oz.xyz%2C22101%2C1706093675724.meta.1706115656383.meta
111811972730727554 1706115306560 Yes
/volhbase1/buckethbase1/-9223372036854114559/ccycloud-1.ozn-hb3chf3oz.xyz%2C22101%2C1706093675951.meta.1706115306544.meta
111810555524218886 1706093681705 No
/volhbase1/buckethbase1/-9223372036854132991/hbase-hbck.lockReached the end of
the list. {code}
and
{code:java}
[root@ccycloud-1 ~]# ozone admin om lof --service-id=ozone1706076384
--prefix=/volhbase1/buckethbase1/hbase --length=500
524 total open files (est.). Showing 0 open files (limit 500) under path prefix:
/volhbase1/buckethbase1/hbaseClient ID Creation time Hsync'ed
Open File PathReached the end of the list. {code}
But if the prefix is at volume level, (i.e. /vol), then instead of throwing
some unsupported operation at volume level or something like that, it throws
the below error:
{code:java}
[root@ccycloud-1 ~]# ozone admin om lof --service-id=ozone1706076384
--prefix=/volhbase1/ --length=500
com.google.protobuf.ServiceException:
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ozone.om.exceptions.OMNotLeaderException):
OM:om63 is not the leader. Suggested leader is
OM:om62[ccycloud-5.ozn-hb3chf3oz.root.comops.site/10.140.36.167].
at
org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.createNotLeaderException(OzoneManagerProtocolServerSideTranslatorPB.java:261)
at
org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.createLeaderErrorException(OzoneManagerProtocolServerSideTranslatorPB.java:243)
at
org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.submitReadRequestToOM(OzoneManagerProtocolServerSideTranslatorPB.java:236)
at
org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.processRequest(OzoneManagerProtocolServerSideTranslatorPB.java:184)
at
org.apache.hadoop.hdds.server.OzoneProtocolMessageDispatcher.processRequest(OzoneProtocolMessageDispatcher.java:89)
at
org.apache.hadoop.ozone.protocolPB.OzoneManagerProtocolServerSideTranslatorPB.submitRequest(OzoneManagerProtocolServerSideTranslatorPB.java:155)
at
org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos$OzoneManagerService$2.callBlockingMethod(OzoneManagerProtocolProtos.java)
at
org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:533)
at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1070)
at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:994)
at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:922)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:422)
at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1899)
at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2899)
, while invoking $Proxy18.submitRequest over
nodeId=om63,nodeAddress=ccycloud-1.ozn-hb3chf3oz.root.comops.site:9862 after 3
failover attempts. Trying to failover immediately.
com.google.protobuf.ServiceException: org.apache.hadoop.ipc.RemoteExcept {code}
cc: [~smeng]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]