You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Xu Shao Hong (Jira)" <ji...@apache.org> on 2021/03/23 03:04:00 UTC
[jira] [Updated] (HDDS-5013) Expected OmUuid but om1 shown
[ https://issues.apache.org/jira/browse/HDDS-5013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xu Shao Hong updated HDDS-5013:
-------------------------------
Description:
{code:java}
// code placeholder
/**
* Asks SCM where a block should be allocated. SCM responds with the
* set of datanodes that should be used creating this block.
* @param size - size of the block.
* @param num - number of blocks.
* @param type - replication type of the blocks.
* @param factor - replication factor of the blocks.
* @param excludeList - exclude list while allocating blocks.
* @return allocated block accessing info (key, pipeline).
* @throws IOException
*/
@Override
public List<AllocatedBlock> allocateBlock(long size, int num,
HddsProtos.ReplicationType type, HddsProtos.ReplicationFactor factor,
String owner, ExcludeList excludeList) throws IOException {
{code}
Tracing back the owner argument, it is shown that it should be omId.
omId is actually the OmUuid, while the audit we get records "om1" instead of UUID.
2021-03-22 20:13:01,210 | INFO | SCMAudit | user=ozoneadmin | ip=10.51.87.181 | op=ALLOCATE_BLOCK \{owner=om1, size=268435456, num=1, type=RATIS, factor=THREE} | ret=SUCCESS |
2021-03-22 20:13:01,224 | INFO | SCMAudit | user=ozoneadmin | ip=10.51.87.181 | op=ALLOCATE_BLOCK \{owner=om1, size=268435456, num=1, type=RATIS, factor=THREE} | ret=SUCCESS |
2021-03-22 20:13:01,231 | INFO | SCMAudit | user=ozoneadmin | ip=10.51.87.181 | op=ALLOCATE_BLOCK \{owner=om1, size=268435456, num=1, type=RATIS, factor=THREE} | ret=SUCCESS |
2021-03-22 20:13:01,238 | INFO | SCMAudit | user=ozoneadmin | ip=10.51.87.181 | op=ALLOCATE_BLOCK \{owner=om1, size=268435456, num=1, type=RATIS, factor=THREE} | ret=SUCCESS |
2021-03-22 20:13:01,289 | INFO | SCMAudit | user=ozoneadmin | ip=10.51.87.181 | op=ALLOCATE_BLOCK \{owner=om1, size=268435456, num=1, type=RATIS, factor=THREE} | ret=SUCCESS |
was:
The owner should be OmUuid but from the audit log, it is om1
2021-03-22 20:13:01,210 | INFO | SCMAudit | user=ozoneadmin | ip=10.51.87.181 | op=ALLOCATE_BLOCK \{owner=om1, size=268435456, num=1, type=RATIS, factor=THREE} | ret=SUCCESS |
2021-03-22 20:13:01,224 | INFO | SCMAudit | user=ozoneadmin | ip=10.51.87.181 | op=ALLOCATE_BLOCK \{owner=om1, size=268435456, num=1, type=RATIS, factor=THREE} | ret=SUCCESS |
2021-03-22 20:13:01,231 | INFO | SCMAudit | user=ozoneadmin | ip=10.51.87.181 | op=ALLOCATE_BLOCK \{owner=om1, size=268435456, num=1, type=RATIS, factor=THREE} | ret=SUCCESS |
2021-03-22 20:13:01,238 | INFO | SCMAudit | user=ozoneadmin | ip=10.51.87.181 | op=ALLOCATE_BLOCK \{owner=om1, size=268435456, num=1, type=RATIS, factor=THREE} | ret=SUCCESS |
2021-03-22 20:13:01,289 | INFO | SCMAudit | user=ozoneadmin | ip=10.51.87.181 | op=ALLOCATE_BLOCK \{owner=om1, size=268435456, num=1, type=RATIS, factor=THREE} | ret=SUCCESS |
> Expected OmUuid but om1 shown
> -----------------------------
>
> Key: HDDS-5013
> URL: https://issues.apache.org/jira/browse/HDDS-5013
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Xu Shao Hong
> Priority: Major
> Attachments: 企业微信截图_dd512891-02f6-4f7f-a07e-6a3d8156fe8f.png
>
>
> {code:java}
> // code placeholder
> /**
> * Asks SCM where a block should be allocated. SCM responds with the
> * set of datanodes that should be used creating this block.
> * @param size - size of the block.
> * @param num - number of blocks.
> * @param type - replication type of the blocks.
> * @param factor - replication factor of the blocks.
> * @param excludeList - exclude list while allocating blocks.
> * @return allocated block accessing info (key, pipeline).
> * @throws IOException
> */
> @Override
> public List<AllocatedBlock> allocateBlock(long size, int num,
> HddsProtos.ReplicationType type, HddsProtos.ReplicationFactor factor,
> String owner, ExcludeList excludeList) throws IOException {
> {code}
> Tracing back the owner argument, it is shown that it should be omId.
> omId is actually the OmUuid, while the audit we get records "om1" instead of UUID.
>
>
> 2021-03-22 20:13:01,210 | INFO | SCMAudit | user=ozoneadmin | ip=10.51.87.181 | op=ALLOCATE_BLOCK \{owner=om1, size=268435456, num=1, type=RATIS, factor=THREE} | ret=SUCCESS |
> 2021-03-22 20:13:01,224 | INFO | SCMAudit | user=ozoneadmin | ip=10.51.87.181 | op=ALLOCATE_BLOCK \{owner=om1, size=268435456, num=1, type=RATIS, factor=THREE} | ret=SUCCESS |
> 2021-03-22 20:13:01,231 | INFO | SCMAudit | user=ozoneadmin | ip=10.51.87.181 | op=ALLOCATE_BLOCK \{owner=om1, size=268435456, num=1, type=RATIS, factor=THREE} | ret=SUCCESS |
> 2021-03-22 20:13:01,238 | INFO | SCMAudit | user=ozoneadmin | ip=10.51.87.181 | op=ALLOCATE_BLOCK \{owner=om1, size=268435456, num=1, type=RATIS, factor=THREE} | ret=SUCCESS |
> 2021-03-22 20:13:01,289 | INFO | SCMAudit | user=ozoneadmin | ip=10.51.87.181 | op=ALLOCATE_BLOCK \{owner=om1, size=268435456, num=1, type=RATIS, factor=THREE} | ret=SUCCESS |
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org