[GitHub] incubator-eagle pull request #706: [MINOR] Sleep 1 ms after versionId was ge...

2016-12-01 Thread asfgit
Github user asfgit closed the pull request at:

https://github.com/apache/incubator-eagle/pull/706


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] incubator-eagle pull request #706: [MINOR] Sleep 1 ms after versionId was ge...

2016-12-01 Thread chitin
Github user chitin commented on a diff in the pull request:

https://github.com/apache/incubator-eagle/pull/706#discussion_r90580970
  
--- Diff: 
eagle-core/eagle-alert-parent/eagle-alert/alert-metadata-parent/alert-metadata/src/test/java/org/apache/eagle/alert/metadata/impl/JdbcImplTest.java
 ---
@@ -184,6 +184,11 @@ public void test_clearScheduleState() {
 if (i >= 10 - maxCapacity) {
 reservedOnes.add(versionId);
 }
+try {
+Thread.sleep(1);
+} catch (Exception e) {
--- End diff --

Make sure all versionIds genereted in all loops are different value.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] incubator-eagle pull request #706: [MINOR] Sleep 1 ms after versionId was ge...

2016-12-01 Thread chitin
GitHub user chitin opened a pull request:

https://github.com/apache/incubator-eagle/pull/706

[MINOR] Sleep 1 ms after versionId was generated

[MINOR] Sleep 1 ms after versionId was generated
- VersionId is the same with one generated in last loop randomly, the test 
failed in this case.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/chitin/incubator-eagle MINOR_JDBCTEST

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/incubator-eagle/pull/706.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #706


commit e22fe8a08e8b9b0751d8af7a5f3225f3fdb650ed
Author: chitin 
Date:   2016-12-01T11:16:25Z

[MINOR] Sleep 1 ms after versionId was generated
- VersionId is the same with one generated in last loop randomly, the test 
failed in this case.




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---