Skip to content

[ntuple,daos] RNTupleWriter::Recreate() now overwrites old ntuple#9033

Merged
jalopezg-git merged 1 commit intoroot-project:masterfrom
jalopezg-git:ntuple-daos-overwrite
Sep 28, 2021
Merged

[ntuple,daos] RNTupleWriter::Recreate() now overwrites old ntuple#9033
jalopezg-git merged 1 commit intoroot-project:masterfrom
jalopezg-git:ntuple-daos-overwrite

Conversation

@jalopezg-git
Copy link
Copy Markdown
Contributor

This pull-request fixes RNTupleWriter::Recreate() in DAOS 1.2, where the old ntuple was not overwritten (see issue #9032).

Changes or fixes:

  • DAOS_COND_DKEY_INSERT was inappropriately used in daos_obj_update() calls, which causes RNTupleWriter::Recreate() to not overwrite old data. This has been fixed.

  • Additionally, DAOS_COND_{D,A}KEY_FETCH has been added to flags in daos_obj_fetch() call (fail if dkey/akey does not exist).

Checklist:

  • tested changes locally

This PR fixes #9032.

`DAOS_COND_DKEY_INSERT` was inappropriately used in `daos_obj_update()` calls,
which causes `RNTupleWriter::Recreate()` to not overwrite old data.  This has
been fixed.

Additionally, `DAOS_COND_{D,A}KEY_FETCH` has been added to flags in
`daos_obj_fetch()` call (fail if dkey/akey does not exist).

Closes issue root-project#9032.
@phsft-bot
Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, mac1014/python3, mac11.0/cxx17, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Copy Markdown

Build failed on mac11.0/cxx17.
Running on macphsft20.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

Copy link
Copy Markdown
Member

@vepadulano vepadulano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot Javi!

@jalopezg-git jalopezg-git merged commit 14df1b9 into root-project:master Sep 28, 2021
@jalopezg-git jalopezg-git deleted the ntuple-daos-overwrite branch September 28, 2021 08:54
@jalopezg-git
Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ntuple,daos] RNTupleWriter::Recreate() does not overwrite data in DAOS container

4 participants