You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Bharat Viswanadham (Jira)" <ji...@apache.org> on 2020/03/09 20:36:00 UTC
[jira] [Updated] (HDDS-3150) Implement getIfExist in Table and use
it in CreateKey/File
[ https://issues.apache.org/jira/browse/HDDS-3150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bharat Viswanadham updated HDDS-3150:
-------------------------------------
Description:
With replay, now we use directly get() API.
Previously the code
OMKeyRequest.java
{code:java}
else if (omMetadataManager.getKeyTable().isExist(dbKeyName)) {
// TODO: Need to be fixed, as when key already exists, we are
// appending new blocks to existing key.
keyInfo = omMetadataManager.getKeyTable().get(dbKeyName);{code}
Now for every create key/File, this is changed for replay
{code:java}
OmKeyInfo dbKeyInfo =
omMetadataManager.getKeyTable().getIfExist(dbKeyName);
if (dbKeyInfo != null) {{code}
was:
With replay, now we use directly get() API.
Previously the code
OMKeyRequest.java
{code:java}
else if (omMetadataManager.getKeyTable().isExist(dbKeyName)) {
// TODO: Need to be fixed, as when key already exists, we are
// appending new blocks to existing key.
keyInfo = omMetadataManager.getKeyTable().get(dbKeyName);{code}
> Implement getIfExist in Table and use it in CreateKey/File
> ----------------------------------------------------------
>
> Key: HDDS-3150
> URL: https://issues.apache.org/jira/browse/HDDS-3150
> Project: Hadoop Distributed Data Store
> Issue Type: Bug
> Reporter: Bharat Viswanadham
> Assignee: Bharat Viswanadham
> Priority: Major
>
> With replay, now we use directly get() API.
> Previously the code
> OMKeyRequest.java
>
> {code:java}
> else if (omMetadataManager.getKeyTable().isExist(dbKeyName)) {
> // TODO: Need to be fixed, as when key already exists, we are
> // appending new blocks to existing key.
> keyInfo = omMetadataManager.getKeyTable().get(dbKeyName);{code}
>
> Now for every create key/File, this is changed for replay
> {code:java}
> OmKeyInfo dbKeyInfo =
> omMetadataManager.getKeyTable().getIfExist(dbKeyName);
> if (dbKeyInfo != null) {{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org