Details
-
New Feature
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
Hello,
Example error message:
D 35 CAL0002: Failed to open file: /var/lib/columnstore/data1/systemFiles/dbrm/SMTxnID, exception: unable to open Buffered file |
Code path /utils/ibdatafile/BufferedFile.cpp
BufferedFile::BufferedFile(const char* fname, const char* mode, unsigned opts) : |
IDBDataFile( fname ),
|
m_fp( 0 ), |
m_buffer( 0 ) |
{
|
m_fp = fopen(fname, mode);
|
 |
if ( m_fp == NULL ) |
{
|
throw std::runtime_error("unable to open Buffered file "); |
}
|
If it returns NULL, errno will be set, which gave information about the reason,
why fopen() failed. ( if ( errno != 0 ) )
Addings the errno would be helpful, what is going on.
Upon successful completion, fopen() shall return a pointer to the object controlling the stream. Otherwise, a null pointer shall be returned, [CX] [Option Start] and errno shall be set to indicate the error. |
https://pubs.opengroup.org/onlinepubs/007904975/functions/fopen.html
Attachments
Issue Links
- relates to
-
MCOL-5638 Improve Client Error Messaging
- Open