You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by GitBox <gi...@apache.org> on 2020/02/25 02:20:46 UTC
[GitHub] [kylin] cpugputpu opened a new pull request #1119: KYLIN-4386 Use
LinkedHashMap for a deterministic order
cpugputpu opened a new pull request #1119: KYLIN-4386 Use LinkedHashMap for a deterministic order
URL: https://github.com/apache/kylin/pull/1119
The background information and a detailed analysis is here:
https://issues.apache.org/jira/browse/KYLIN-4386
The tests in `org.apache.kylin.stream.coordinator.CoordinatorTest#testReassignFailOnStartNew` and `org.apache.kylin.stream.coordinator.CoordinatorTest#testReassignFailOnStopAndSync` will fail when making assertions due to an order issue.
The fix is to use LinkedHashMap instead of HashMap so that the non-deterministic order when iterating a HashMap is eliminated. It will not affect the performance and can make the tests more stable.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [kylin] codecov-io commented on issue #1119: KYLIN-4386 Use
LinkedHashMap for a deterministic order
Posted by GitBox <gi...@apache.org>.
codecov-io commented on issue #1119: KYLIN-4386 Use LinkedHashMap for a deterministic order
URL: https://github.com/apache/kylin/pull/1119#issuecomment-590666542
# [Codecov](https://codecov.io/gh/apache/kylin/pull/1119?src=pr&el=h1) Report
> Merging [#1119](https://codecov.io/gh/apache/kylin/pull/1119?src=pr&el=desc) into [master](https://codecov.io/gh/apache/kylin/commit/9ca3dfec2702aace60cf2ed395b2ffc94faedb54?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/kylin/pull/1119?src=pr&el=tree)
```diff
@@ Coverage Diff @@
## master #1119 +/- ##
===========================================
- Coverage 25% 25% -0.01%
+ Complexity 6228 6226 -2
===========================================
Files 1443 1443
Lines 88142 88142
Branches 12337 12337
===========================================
- Hits 22043 22039 -4
- Misses 63933 63935 +2
- Partials 2166 2168 +2
```
| [Impacted Files](https://codecov.io/gh/apache/kylin/pull/1119?src=pr&el=tree) | Coverage Δ | Complexity Δ | |
|---|---|---|---|
| [...he/kylin/dict/lookup/cache/RocksDBLookupTable.java](https://codecov.io/gh/apache/kylin/pull/1119/diff?src=pr&el=tree#diff-Y29yZS1kaWN0aW9uYXJ5L3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9reWxpbi9kaWN0L2xvb2t1cC9jYWNoZS9Sb2Nrc0RCTG9va3VwVGFibGUuamF2YQ==) | `72.97% <0%> (-5.41%)` | `6% <0%> (-1%)` | |
| [...pache/kylin/job/impl/curator/CuratorScheduler.java](https://codecov.io/gh/apache/kylin/pull/1119/diff?src=pr&el=tree#diff-Y29yZS1qb2Ivc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2t5bGluL2pvYi9pbXBsL2N1cmF0b3IvQ3VyYXRvclNjaGVkdWxlci5qYXZh) | `64.4% <0%> (-0.85%)` | `7% <0%> (ø)` | |
| [...a/org/apache/kylin/dict/Number2BytesConverter.java](https://codecov.io/gh/apache/kylin/pull/1119/diff?src=pr&el=tree#diff-Y29yZS1kaWN0aW9uYXJ5L3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9reWxpbi9kaWN0L051bWJlcjJCeXRlc0NvbnZlcnRlci5qYXZh) | `81.74% <0%> (-0.8%)` | `17% <0%> (-1%)` | |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/kylin/pull/1119?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/kylin/pull/1119?src=pr&el=footer). Last update [9ca3dfe...608d1a4](https://codecov.io/gh/apache/kylin/pull/1119?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [kylin] coveralls commented on issue #1119: KYLIN-4386 Use
LinkedHashMap for a deterministic order
Posted by GitBox <gi...@apache.org>.
coveralls commented on issue #1119: KYLIN-4386 Use LinkedHashMap for a deterministic order
URL: https://github.com/apache/kylin/pull/1119#issuecomment-590668358
## Pull Request Test Coverage Report for [Build 5656](https://coveralls.io/builds/28936944)
* **0** of **0** changed or added relevant lines in **0** files are covered.
* **1** unchanged line in **1** file lost coverage.
* Overall coverage increased (+**0.005%**) to **27.467%**
---
| Files with Coverage Reduction | New Missed Lines | % |
| :-----|--------------|--: |
| [core-job/src/main/java/org/apache/kylin/job/impl/curator/CuratorScheduler.java](https://coveralls.io/builds/28936944/source?filename=core-job%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fkylin%2Fjob%2Fimpl%2Fcurator%2FCuratorScheduler.java#L145) | 1 | 68.64% |
<!-- | **Total:** | **1** | | -->
| Totals | [](https://coveralls.io/builds/28936944) |
| :-- | --: |
| Change from base [Build 5648](https://coveralls.io/builds/28893242): | 0.005% |
| Covered Lines: | 24210 |
| Relevant Lines: | 88142 |
---
##### 💛 - [Coveralls](https://coveralls.io)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [kylin] nichunen merged pull request #1119: KYLIN-4386 Use
LinkedHashMap for a deterministic order
Posted by GitBox <gi...@apache.org>.
nichunen merged pull request #1119: KYLIN-4386 Use LinkedHashMap for a deterministic order
URL: https://github.com/apache/kylin/pull/1119
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services