[
https://issues.apache.org/jira/browse/HDDS-12608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17935758#comment-17935758
]
Tsz-wo Sze commented on HDDS-12608:
-----------------------------------
{code}
2025-03-15 14:06:39,828
[1653fbbe-77b3-4beb-944f-f44f2eab0adb-EndpointStateMachineTaskThread-scm3.org/172.25.0.118:9861-0
] INFO utils.DatanodeStoreCache: Added db
/data/hdds/hdds/CID-b6cecacf-2a78-4270-850e-f7a04b3207d8/DS-b262fcfa-1d4c-4a05-b9b2-8c973ff80dd4/container.db
to cache
2025-03-15 14:06:39,828
[1653fbbe-77b3-4beb-944f-f44f2eab0adb-EndpointStateMachineTaskThread-scm3.org/172.25.0.118:9861-0
] INFO volume.HddsVolume: SchemaV3 db is created and loaded at
/data/hdds/hdds/CID-b6cecacf-2a78-4270-850e-f7a04b3207d8/DS-b262fcfa-1d4c-4a05-b9b2-8c973ff80dd4/container.db
for volume DS-b262fcfa-1d4c-4a05-b9b2-8c973ff80dd4
2025-03-15 14:06:39,835
[1653fbbe-77b3-4beb-944f-f44f2eab0adb-EndpointStateMachineTaskThread-scm4.org/172.25.0.120:9861-0
] WARN util.FileUtils: Failed to Atomic Files.move
/data/metadata/dnlayoutversion/VERSION.tmp to
/data/metadata/dnlayoutversion/VERSION with options [REPLACE_EXISTING]:
java.nio.file.NoSuchFileException: /data/metadata/dnlayoutversion/VERSION.tmp
-> /data/metadata/dnlayoutversion/VERSION
2025-03-15 14:06:39,836
[1653fbbe-77b3-4beb-944f-f44f2eab0adb-EndpointStateMachineTaskThread-scm1.org/172.25.0.116:9861-0
] WARN util.FileUtils: Failed to Atomic Files.move
/data/metadata/dnlayoutversion/VERSION.tmp to
/data/metadata/dnlayoutversion/VERSION with options [REPLACE_EXISTING]:
java.nio.file.NoSuchFileException: /data/metadata/dnlayoutversion/VERSION.tmp
-> /data/metadata/dnlayoutversion/VERSION
2025-03-15 14:06:39,836
[1653fbbe-77b3-4beb-944f-f44f2eab0adb-EndpointStateMachineTaskThread-scm2.org/172.25.0.117:9861-0
] WARN util.FileUtils: Failed to Atomic Files.move
/data/metadata/dnlayoutversion/VERSION.tmp to
/data/metadata/dnlayoutversion/VERSION with options [REPLACE_EXISTING]:
java.nio.file.NoSuchFileException: /data/metadata/dnlayoutversion/VERSION.tmp
-> /data/metadata/dnlayoutversion/VERSION
{code}
This looks like a test problem: different SCMs (scm1.org, scm2.org, etc.)
writing to the same version file. Doesn't the path
- /data/metadata/dnlayoutversion/VERSION.tmp
look incorrect? Why they are not writing to an individual SCM directory (under
the test root dir)?
> Race condition in datanode version file creation
> ------------------------------------------------
>
> Key: HDDS-12608
> URL: https://issues.apache.org/jira/browse/HDDS-12608
> Project: Apache Ozone
> Issue Type: Bug
> Components: Ozone Datanode
> Affects Versions: 2.0.0
> Reporter: Attila Doroszlai
> Assignee: Attila Doroszlai
> Priority: Major
> Labels: pull-request-available
>
> Multiple threads may create the VERSION file. After HDDS-12456 they use the
> same temporary file for {{AtomicFileOutputStream}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]