Skip to content

Show content of map#3538

Merged
hangc0276 merged 4 commits intoapache:masterfrom
gaozhangmin:show-content-map
Oct 19, 2022
Merged

Show content of map#3538
hangc0276 merged 4 commits intoapache:masterfrom
gaozhangmin:show-content-map

Conversation

@gaozhangmin
Copy link
Copy Markdown
Contributor

Fixes #3490
Change ToString method, print the content of map.

@gaozhangmin
Copy link
Copy Markdown
Contributor Author

@dlg99 PTAL

@gaozhangmin gaozhangmin requested a review from hangc0276 October 17, 2022 06:03
Copy link
Copy Markdown
Member

@wenbingshen wenbingshen left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Copy Markdown
Contributor

@dlg99 dlg99 left a comment

Choose a reason for hiding this comment

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

Thank you!

Copy link
Copy Markdown
Member

@StevenLuMT StevenLuMT left a comment

Choose a reason for hiding this comment

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

can you add a testcase to check the right result?

EntryLogMetadata meta = entryLogger.getEntryLogMetadata(0L);
String metaString = meta.toString();
assertEquals(metaString,
"{totalSize = 60, remainingSize = 60, ledgersMap = ConcurrentLongLongHashMap{1 => 30, 3 => 30}}");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

good job

@gaozhangmin
Copy link
Copy Markdown
Contributor Author

rerun failure checks

1 similar comment
@gaozhangmin
Copy link
Copy Markdown
Contributor Author

rerun failure checks

@hangc0276 hangc0276 merged commit 5c6e78f into apache:master Oct 19, 2022
hangc0276 pushed a commit to hangc0276/bookkeeper that referenced this pull request Nov 7, 2022
Fixes apache#3490
Change ToString method, print the content of map.

(cherry picked from commit 5c6e78f)
hangc0276 pushed a commit to hangc0276/bookkeeper that referenced this pull request Nov 7, 2022
Fixes apache#3490
Change ToString method, print the content of map.

(cherry picked from commit 5c6e78f)
nicoloboschi pushed a commit to datastax/bookkeeper that referenced this pull request Jan 11, 2023
Fixes apache#3490
Change ToString method, print the content of map.

(cherry picked from commit 5c6e78f)
(cherry picked from commit 0abc039)
zymap pushed a commit that referenced this pull request Feb 16, 2023
Fixes #3490
Change ToString method, print the content of map.

(cherry picked from commit 5c6e78f)
@zymap
Copy link
Copy Markdown
Member

zymap commented Feb 17, 2023

Branch-4.15 tests failed. I found this PR depends on PR #3256. Revert it from branch-4.15.

zymap added a commit to zymap/bookkeeper that referenced this pull request Feb 17, 2023
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
Fixes apache#3490
Change ToString method, print the content of map.
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.

EntryLogger: useless logging of ledgersMap

7 participants