[jira] [Updated] (YUNIKORN-255) Cleanup code from event cache change

2020-07-22 Thread Adam Antal (Jira)


 [ 
https://issues.apache.org/jira/browse/YUNIKORN-255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adam Antal updated YUNIKORN-255:

Fix Version/s: 0.9

> Cleanup code from event cache change
> 
>
> Key: YUNIKORN-255
> URL: https://issues.apache.org/jira/browse/YUNIKORN-255
> Project: Apache YuniKorn
>  Issue Type: Sub-task
>  Components: core - common
>Reporter: Wilfred Spiegelenburg
>Assignee: Adam Antal
>Priority: Major
>  Labels: pull-request-available
> Fix For: 0.9, 0.9.0
>
>
> There are a number of places where the code for the event cache needs a 
> cleanup:
> - need comments throughout the code explaining assumptions made and behaviour
> - add negative tests where they are missing
> Code comments:
> - entrypoint.go clean up if structure around lines 85-90
> - rationalise event_cache startup around channel creation, service start and 
> store cleanup on shutdown
> - event_cache_test: document what the tests do, use loops to generate events, 
> make sure test names cover what is being tested.
> - event_publisher: remove isStopped and use atomic directly, data loss on 
> send failure, error from SendEvent is a non nil value no need to check for ""
> - event_publisher_test: mockEventPlugin is a failing plugin and should be 
> reusable
> - event_store: optimise collectevents by using a 3 param make call for array
> - event_store_test: document what the tests do, use loops to generate events, 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: issues-h...@yunikorn.apache.org



[jira] [Updated] (YUNIKORN-255) Cleanup code from event cache change

2020-07-22 Thread Adam Antal (Jira)


 [ 
https://issues.apache.org/jira/browse/YUNIKORN-255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adam Antal updated YUNIKORN-255:

Fix Version/s: 0.9.0

> Cleanup code from event cache change
> 
>
> Key: YUNIKORN-255
> URL: https://issues.apache.org/jira/browse/YUNIKORN-255
> Project: Apache YuniKorn
>  Issue Type: Sub-task
>  Components: core - common
>Reporter: Wilfred Spiegelenburg
>Assignee: Adam Antal
>Priority: Major
>  Labels: pull-request-available
> Fix For: 0.9.0
>
>
> There are a number of places where the code for the event cache needs a 
> cleanup:
> - need comments throughout the code explaining assumptions made and behaviour
> - add negative tests where they are missing
> Code comments:
> - entrypoint.go clean up if structure around lines 85-90
> - rationalise event_cache startup around channel creation, service start and 
> store cleanup on shutdown
> - event_cache_test: document what the tests do, use loops to generate events, 
> make sure test names cover what is being tested.
> - event_publisher: remove isStopped and use atomic directly, data loss on 
> send failure, error from SendEvent is a non nil value no need to check for ""
> - event_publisher_test: mockEventPlugin is a failing plugin and should be 
> reusable
> - event_store: optimise collectevents by using a 3 param make call for array
> - event_store_test: document what the tests do, use loops to generate events, 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: issues-h...@yunikorn.apache.org



[jira] [Updated] (YUNIKORN-255) Cleanup code from event cache change

2020-06-29 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/YUNIKORN-255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated YUNIKORN-255:

Labels: pull-request-available  (was: )

> Cleanup code from event cache change
> 
>
> Key: YUNIKORN-255
> URL: https://issues.apache.org/jira/browse/YUNIKORN-255
> Project: Apache YuniKorn
>  Issue Type: Sub-task
>  Components: core - common
>Reporter: Wilfred Spiegelenburg
>Assignee: Adam Antal
>Priority: Major
>  Labels: pull-request-available
>
> There are a number of places where the code for the event cache needs a 
> cleanup:
> - need comments throughout the code explaining assumptions made and behaviour
> - add negative tests where they are missing
> Code comments:
> - entrypoint.go clean up if structure around lines 85-90
> - rationalise event_cache startup around channel creation, service start and 
> store cleanup on shutdown
> - event_cache_test: document what the tests do, use loops to generate events, 
> make sure test names cover what is being tested.
> - event_publisher: remove isStopped and use atomic directly, data loss on 
> send failure, error from SendEvent is a non nil value no need to check for ""
> - event_publisher_test: mockEventPlugin is a failing plugin and should be 
> reusable
> - event_store: optimise collectevents by using a 3 param make call for array
> - event_store_test: document what the tests do, use loops to generate events, 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: issues-h...@yunikorn.apache.org



[jira] [Updated] (YUNIKORN-255) Cleanup code from event cache change

2020-06-25 Thread Wilfred Spiegelenburg (Jira)


 [ 
https://issues.apache.org/jira/browse/YUNIKORN-255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wilfred Spiegelenburg updated YUNIKORN-255:
---
Parent: YUNIKORN-42
Issue Type: Sub-task  (was: Improvement)

> Cleanup code from event cache change
> 
>
> Key: YUNIKORN-255
> URL: https://issues.apache.org/jira/browse/YUNIKORN-255
> Project: Apache YuniKorn
>  Issue Type: Sub-task
>  Components: core - common
>Reporter: Wilfred Spiegelenburg
>Assignee: Adam Antal
>Priority: Major
>
> There are a number of places where the code for the event cache needs a 
> cleanup:
> - need comments throughout the code explaining assumptions made and behaviour
> - add negative tests where they are missing
> Code comments:
> - entrypoint.go clean up if structure around lines 85-90
> - rationalise event_cache startup around channel creation, service start and 
> store cleanup on shutdown
> - event_cache_test: document what the tests do, use loops to generate events, 
> make sure test names cover what is being tested.
> - event_publisher: remove isStopped and use atomic directly, data loss on 
> send failure, error from SendEvent is a non nil value no need to check for ""
> - event_publisher_test: mockEventPlugin is a failing plugin and should be 
> reusable
> - event_store: optimise collectevents by using a 3 param make call for array
> - event_store_test: document what the tests do, use loops to generate events, 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: issues-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: issues-h...@yunikorn.apache.org