Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: do not use double-brace initialization for parameter value #526

Merged
merged 1 commit into from
Jul 14, 2022

Conversation

bennyz
Copy link
Member

@bennyz bennyz commented Jul 13, 2022

Initializing a HashMap with double-brace create an inner class and the
value of diskImagesMap will be a HashMap wrapped in:

    org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand$1

Instead of just a HashMap, and LiveMigrateDiskCommand is not deserializable which will prevent ovirt-engine from starting when it tries to reload command_entities

@bennyz bennyz requested a review from ahadas as a code owner July 13, 2022 14:02
@bennyz bennyz changed the title core: dot no use double-brace initialization for parameter value core: do not use double-brace initialization for parameter value Jul 13, 2022
Initializing a HashMap with double-brace create an inner class and the
value of diskImagesMap will be a HashMap wrapped in:
    org.ovirt.engine.core.bll.storage.lsm.LiveMigrateDiskCommand$1
Instead of just a HashMap, and LiveMigrateDiskCommand is not deserializable
which will prevent ovirt-engine from starting when it tries to reload
command_entities

Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>
@bennyz
Copy link
Member Author

bennyz commented Jul 13, 2022

/ost

@ahadas ahadas added the storage label Jul 14, 2022
@ahadas ahadas added this to the ovirt-4.5.2 milestone Jul 14, 2022
@ahadas ahadas merged commit 03cab35 into oVirt:master Jul 14, 2022
@bennyz bennyz deleted the fix-disk-images-map branch July 14, 2022 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants