[CONTROLLER-1152] Clustering: Fix akka-raft TestDriver logging to run with slf4j Created: 12/Feb/15 Updated: 15/May/15 Resolved: 15/May/15 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | mdsal |
| Affects Version/s: | Post-Helium |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Kamal Rameshan | Assignee: | Kamal Rameshan |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 2704 |
| Description |
|
After the move from akka event logging to slf4j, running TestDriver does not print any logs. By default slf4j uses simplelogging and we can have a simple simplelogging.properties to fix this. |
| Comments |
| Comment by Tom Pantelis [ 12/Feb/15 ] |
|
I have added a simple logger.properties file to sal-akk-raft/test/resources (and sap-distributed-datastore) so logging occurs for unit tests. I don't know what the TestDriver is though. |
| Comment by Kamal Rameshan [ 13/Feb/15 ] |
|
There is a TestDriver which tests out the Raft actor interaction. It has a command line interface through which we can create actors/nodes and also add clients (which issues log events to these actors). These actors are however created in the same actor system. Checkout the 'example' folder under sal-akka-raft/src/main/java. Logs werre not getting printed there and hence the change. |
| Comment by Kamal Rameshan [ 14/May/15 ] |