Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Fix issue #322 #333

Merged
merged 2 commits into from
Jun 18, 2019
Merged

Fix issue #322 #333

merged 2 commits into from
Jun 18, 2019

Conversation

vinser52
Copy link
Contributor

@vinser52 vinser52 commented Jun 17, 2019

This change is Reviewable

@pmem-bot
Copy link
Contributor

@pbalcer and @grom72 please review this pull request

Copy link

@szyrom szyrom left a comment

Choose a reason for hiding this comment

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

I see the failure log from #322, but @vinser52 can you describe why/what was wrong?

Reviewable status: 0 of 1 files reviewed, all discussions resolved

@vinser52
Copy link
Contributor Author

vinser52 commented Jun 17, 2019

@szyrom

I see the failure log from #322, but @vinser52 can you describe why/what was wrong?

I have passed wrong parameter to constructor. When we are creating a new node, the last parameter should be previous head. But in internal_copy() method I passed b->tmp_node by mistake.
Assert caught the issue on Windows. The assert is raised only when more than one elements fit to the same bucket when we do internal_copy().

Copy link

@szyrom szyrom left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: 0 of 1 files reviewed, all discussions resolved

@codecov
Copy link

codecov bot commented Jun 17, 2019

Codecov Report

Merging #333 into master will increase coverage by 0.23%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #333      +/-   ##
==========================================
+ Coverage   95.88%   96.11%   +0.23%     
==========================================
  Files          32       32              
  Lines        2986     2986              
==========================================
+ Hits         2863     2870       +7     
+ Misses        123      116       -7
Flag Coverage Δ
#tests_clang_debug_cpp17 96.03% <100%> (+0.84%) ⬆️
#tests_gcc_debug 96.08% <100%> (ø) ⬆️
#tests_gcc_release_cpp17_no_valgrind 95.03% <100%> (-0.89%) ⬇️
Impacted Files Coverage Δ
.../libpmemobj++/experimental/concurrent_hash_map.hpp 94.23% <100%> (+0.89%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 36a98e1...8266729. Read the comment docs.

Copy link
Contributor

@igchor igchor left a comment

Choose a reason for hiding this comment

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

:lgtm: but could you pleas add this explanation to the commit message?

Reviewable status: 0 of 1 files reviewed, all discussions resolved

Wrong parameter is passed to constructor. When we create a new
node, the last parameter should be previous head. But in internal_copy()
method the b->tmp_node is passed by mistake.
Assert caught the issue on Windows. The assert is raised only when more
than one elements fit to the same bucket when we do internal_copy().
Copy link
Contributor

@kkajrewicz kkajrewicz left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @vinser52)


include/libpmemobj++/experimental/concurrent_hash_map.hpp, line 2953 at r1 (raw file):

		allocate_node_copy_construct(
			pop,

It still fails, another issue was raised while running the test, see updated #322

Copy link
Contributor Author

@vinser52 vinser52 left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @kkajrewicz)


include/libpmemobj++/experimental/concurrent_hash_map.hpp, line 2953 at r1 (raw file):

Previously, kkajrewicz (Krzysztof Kajrewicz) wrote…

It still fails, another issue was raised while running the test, see updated #322

Done.
There is a mistake in the unit test itself. The test make wrong assumption that keys are ordered in the concurrent_hash_map. But concurrent_hash_map is unordered associative container

Copy link
Contributor

@igchor igchor left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @kkajrewicz)

Copy link
Contributor

@kkajrewicz kkajrewicz left a comment

Choose a reason for hiding this comment

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

Fix typo in commit msg: s/cocnurrent/concurrent

Reviewed 1 of 1 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved


include/libpmemobj++/experimental/concurrent_hash_map.hpp, line 2953 at r1 (raw file):

Previously, vinser52 (Sergei Vinogradov) wrote…

Done.
There is a mistake in the unit test itself. The test make wrong assumption that keys are ordered in the concurrent_hash_map. But concurrent_hash_map is unordered associative container

OK. Now it works

There is a mistake in the unit test itself. The test make wrong
assumption that keys are ordered in the concurrent_hash_map. But
concurrent_hash_map is unordered associative container.
Copy link

@szyrom szyrom left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Contributor

@igchor igchor left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants