Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0035470 | Retail Modules | StoreServer | public | 2017-03-09 16:48 | 2017-03-18 11:49 |
|
Reporter | mtaal | |
Assigned To | AugustoMauch | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | RR17Q2 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | mtaal |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0035470: Code should not adapt the Map instance it gets from a method, but instead call the originating class to adapt the Map |
Description | See the code here [1], it gets a Map instance from the SynchronizationEngineProvider.getChannelsWithInitialLoadInProgress() method and changes the Map instance. This works as the Map instance is the same as being kept internally in the SynchronizationEngineProvider. But it is less nice from a encapsulation point of view to adapt the map outside of its owner (the SynchronizationEngineProvider).
[1]
https://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/5f4547f93c1a9a8ba8add123b198ec084e8ff95e#l4.42 [^] |
Steps To Reproduce | See description |
Proposed Solution | Better to either call the setter again (makes no difference in the logic really but shows that the resulting map is set back, ignoring multi-threading issues).
But nicest probably to have a removeChannel method on the SynchronizationEngineProvider to remove a channel from the internal Map.
|
Additional Information | |
Tags | No tags attached. |
Relationships | blocks | feature request | 0034835 | | closed | AugustoMauch | Use another approach for the Table Reload process |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2017-03-09 16:48 | mtaal | New Issue | |
2017-03-09 16:48 | mtaal | Assigned To | => AugustoMauch |
2017-03-09 16:48 | mtaal | Triggers an Emergency Pack | => No |
2017-03-09 16:49 | mtaal | Relationship added | blocks 0034835 |
2017-03-10 09:14 | hgbot | Checkin | |
2017-03-10 09:14 | hgbot | Note Added: 0094894 | |
2017-03-10 09:14 | hgbot | Status | new => resolved |
2017-03-10 09:14 | hgbot | Resolution | open => fixed |
2017-03-10 09:14 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.replication.symmetricds/rev/7416d6418ced0a003624169ee3c0f7e12f7a14e0 [^] |
2017-03-18 11:48 | mtaal | Review Assigned To | => mtaal |
2017-03-18 11:48 | mtaal | Proposed Solution updated | |
2017-03-18 11:49 | mtaal | Note Added: 0095383 | |
2017-03-18 11:49 | mtaal | Status | resolved => closed |