You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Stephen O'Donnell (Jira)" <ji...@apache.org> on 2021/10/06 16:29:00 UTC

[jira] [Created] (HDDS-5832) EC: ECKeyOutputStream persists blocks in random order

Stephen O'Donnell created HDDS-5832:
---------------------------------------

             Summary: EC: ECKeyOutputStream persists blocks in random order
                 Key: HDDS-5832
                 URL: https://issues.apache.org/jira/browse/HDDS-5832
             Project: Apache Ozone
          Issue Type: Sub-task
          Components: Ozone Client
            Reporter: Stephen O'Donnell
            Assignee: Stephen O'Donnell


When the blocks for an ECKeyOutputStream are persisted in OM, they are in a random order, which means the data cannot be read back successfully later.

This is because they are stored into a HashMap which does not iterate in insertion order. Instead we need to use a LinkedHashMap.



--
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