---
** [tickets:#2215] log: write_log_record_hdl, fileclose_hdl get bad file
descriptor**
**Status:** unassigned
**Milestone:** 5.0.2
**Created:** Fri Dec 02, 2016 10:52 AM UTC by Vu Minh Nguyen
**Last Updated:** Fri Dec 02, 2016 10:52 AM UTC
**Owner:** nobody
Steps to procedure:
1) Modify `saLogstreamLogFileFormat` attribute value
2) Modify `saLogstreamLogFileFormat` attribute value again
( Or write a log record to that log stream)
Here is what will happen in `IMM apply callback` at step (2):
a1) Close the old file
a2) Create the new file
If at step #a1 - close old file gets `TIMEOUT`, the main thread will give up
creating new file at step #a2.
But note that, `TIMEOUT` means the closing the file is in progress handled by
`log file handle` thread.
So, when going next with step #2 above, will get `bad file descriptor` as
performing close on the file which is already closed.
Below is the syslog info:
> Dec 2 14:06:28 SC-1 local0.notice osaflogd[458]: NO log_stream log file
> close FAILED: Connection timed out
> Dec 2 14:06:28 SC-1 local0.err osaflogd[458]: ER log_stream_config_change
> failed: -1
> Dec 2 14:06:28 SC-1 local0.notice osafimmnd[445]: NO Ccb 4 COMMITTED
> (immcfg_SC-1_740)
> Dec 2 14:06:29 SC-1 local0.notice osafimmnd[445]: NO Ccb 5 COMMITTED
> (immcfg_SC-1_752)
> Dec 2 14:06:29 SC-1 local0.notice osaflogd[458]: NO log_stream log file
> close FAILED: Connection timed out
> Dec 2 14:06:29 SC-1 local0.err osaflogd[458]: ER log_stream_config_change
> failed: -1
> Dec 2 14:06:29 SC-1 local0.notice osafimmnd[445]: NO Ccb 6 COMMITTED
> (immcfg_SC-1_760)
> Dec 2 14:06:30 SC-1 local0.notice osaflogd[458]: NO fileclose_hdl:
> fdatasync() error "Bad file descriptor"
> Dec 2 14:06:30 SC-1 local0.err osaflogd[458]: ER fileclose() Bad file
> descriptor
> Dec 2 14:06:30 SC-1 local0.notice osaflogd[458]: NO log_stream log file
> close FAILED: Success
> Dec 2 14:06:30 SC-1 local0.err osaflogd[458]: ER log_stream_config_change
> failed: -1
> Dec 2 14:06:30 SC-1 local0.err osaflogd[458]: ER write_log_record_hdl -
> write FAILED: Bad file descriptor
> Dec 2 14:06:30 SC-1 local0.notice osaflogd[458]: NO fileclose_hdl:
> fdatasync() error "Bad file descriptor"
> Dec 2 14:06:30 SC-1 local0.err osaflogd[458]: ER fileclose() Bad file
> descriptor
> Dec 2 14:06:30 SC-1 local0.notice osaflogd[458]: NO fileclose failed Success
>
---
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