In case 2 streams are created in the same CCB, ccb_completed callback is called 
2 times to verify the parameters then ccb_apply_create callbacks is called 2 
time to create 2 new streams. Log service verifies stream file name by checking 
if the file name is duplicated with any exist streams. 

But in this case the verification pass:
  1/ No exist streams has file name "test3"
  2/ log service does not know if the stream "safLgStrCfg=test3" or 
"safLgStrCfg=test4" will created successfully. So why should reject if they are 
the same file name?


---

** [tickets:#2752] log: not reject creating log streams with same file name in 
same CCB**

**Status:** assigned
**Milestone:** 5.18.01
**Created:** Thu Dec 28, 2017 01:51 PM UTC by Vu Minh Nguyen
**Last Updated:** Fri Dec 29, 2017 10:00 AM UTC
**Owner:** Canh Truong


``` bash
$ immcfg 
> immcfg -c SaLogStreamConfig safLgStrCfg=test3 -a saLogStreamPathName=. -a 
> saLogRecordDestination=test -a saLogStreamFileName=test3
> immcfg -c SaLogStreamConfig safLgStrCfg=test4 -a saLogStreamPathName=. -a 
> saLogRecordDestination=test -a saLogStreamFileName=test3
> $
$ immlist safLgStrCfg=test3
Name                                               Type         Value(s)
========================================================================
safLgStrCfg                                        SA_STRING_T  
safLgStrCfg=test3 
saLogStreamPathName                                SA_STRING_T  . 
saLogStreamFileName                                SA_STRING_T  test3 


$ immlist safLgStrCfg=test4
Name                                               Type         Value(s)
========================================================================
safLgStrCfg                                        SA_STRING_T  
safLgStrCfg=test4 
saLogStreamPathName                                SA_STRING_T  . 
saLogStreamFileName                                SA_STRING_T  test3 
```

LOG server should not allow creating streams which have the same target log 
file, or that target exists. 




---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to