-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MyRocks crashes when using tmpfs for data directory & --rocksdb-use-direct-reads=1 #778
Comments
|
|
Yes, tmpfs does not support direct I/O, so it is expected the combination of requesting direct_io and running on tmpfs would result in an error. In this case, the server triggers an assertion when it tries to access the files using direct-read. It is unlikely we will try to improve the behavior (i.e. not crash) unless there is a compelling reason to. A user who attempts to set tmpfs as the data storage and requests direct-reads should quickly discover a problem in the setup. |
If there any way to continue similar to what InnoDB does?
|
Currently not. MyRocks and RocksDB does not switch from direct I/O to buffered I/O on failures from direct I/O access. MyRocks can test filesystem access with direct I/O use the appropriate settings before passing them down to RocksDB, but there are also downsides when the system is running with a configuration different than what was specified. |
Would the downsides be adequately covered by a warning in the error log? |
I have submitted a pull request to address this issue. |
Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778
@rralcala that is great, thank you! |
@hermanlee could you review the patch please? |
Upstream commit ID : fb-mysql-5.6.35/bcd7519d0149a9dd946263b80f3a114625897420 PS-4476 : Merge prod-------- Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook/mysql-5.6#778 Closes facebook/mysql-5.6#793 Differential Revision: D6995213 Pulled By: rralcala fbshipit-source-id: f0da21c
Upstream commit ID : fb-mysql-5.6.35/bcd7519d0149a9dd946263b80f3a114625897420 PS-4476 : Merge prod-------- Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook/mysql-5.6#778 Closes facebook/mysql-5.6#793 Differential Revision: D6995213 Pulled By: rralcala fbshipit-source-id: f0da21c
Upstream commit ID : fb-mysql-5.6.35/bcd7519d0149a9dd946263b80f3a114625897420 PS-4476 : Merge prod-------- Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook/mysql-5.6#778 Closes facebook/mysql-5.6#793 Differential Revision: D6995213 Pulled By: rralcala fbshipit-source-id: f0da21c
Upstream commit ID : fb-mysql-5.6.35/bcd7519d0149a9dd946263b80f3a114625897420 PS-4476 : Merge prod-------- Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook/mysql-5.6#778 Closes facebook/mysql-5.6#793 Differential Revision: D6995213 Pulled By: rralcala fbshipit-source-id: f0da21c
Upstream commit ID : fb-mysql-5.6.35/bcd7519d0149a9dd946263b80f3a114625897420 PS-4476 : Merge prod-------- Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook/mysql-5.6#778 Closes facebook/mysql-5.6#793 Differential Revision: D6995213 Pulled By: rralcala fbshipit-source-id: f0da21c
Upstream commit ID : fb-mysql-5.6.35/bcd7519d0149a9dd946263b80f3a114625897420 PS-4476 : Merge prod201801 Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook/mysql-5.6#778 Closes facebook/mysql-5.6#793 Differential Revision: D6995213 Pulled By: rralcala fbshipit-source-id: f0da21c
Upstream commit ID : fb-mysql-5.6.35/bcd7519d0149a9dd946263b80f3a114625897420 PS-4476 : Merge prod201801 Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook/mysql-5.6#778 Closes facebook/mysql-5.6#793 Differential Revision: D6995213 Pulled By: rralcala fbshipit-source-id: f0da21c
Upstream commit ID : fb-mysql-5.6.35/bcd7519d0149a9dd946263b80f3a114625897420 PS-4476 : Merge prod201801 Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook/mysql-5.6#778 Closes facebook/mysql-5.6#793 Differential Revision: D6995213 Pulled By: rralcala fbshipit-source-id: f0da21c
…ebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 Pulled By: rralcala fbshipit-source-id: e8488f5
…ebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 Pulled By: rralcala fbshipit-source-id: e8488f5
…ebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 Pulled By: rralcala fbshipit-source-id: e8488f5
…ebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 Pulled By: rralcala fbshipit-source-id: e8488f5
…ebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 Pulled By: rralcala fbshipit-source-id: e8488f5
… (#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes #778 Closes #793 Differential Revision: D6995213 (a62014f) Pulled By: rralcala fbshipit-source-id: c61900b39ab
…ebook#793) (facebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 (facebook@a62014f) Pulled By: rralcala fbshipit-source-id: c61900b39ab
…ebook#793) (facebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 (facebook@a62014f) Pulled By: rralcala fbshipit-source-id: c61900b39ab
…ebook#793) (facebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 (facebook@a62014f) Pulled By: rralcala fbshipit-source-id: c61900b39ab
…ebook#793) (facebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 (facebook@a62014f) Pulled By: rralcala fbshipit-source-id: c61900b39ab
…ebook#793) (facebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 (facebook@a62014f) Pulled By: rralcala fbshipit-source-id: c61900b39ab
…ebook#793) (facebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 (facebook@a62014f) Pulled By: rralcala fbshipit-source-id: c61900b39ab
…ebook#793) (facebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 (facebook@a62014f) Pulled By: rralcala fbshipit-source-id: c61900b39ab
…ebook#793) (facebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 Pulled By: rralcala
…ebook#793) (facebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 Pulled By: rralcala
…cona#793) (percona#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook/mysql-5.6#778 Closes facebook/mysql-5.6#793 Differential Revision: D6995213 Pulled By: rralcala
…ebook#793) (facebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 Pulled By: rralcala
…ebook#793) (facebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 Pulled By: rralcala
…ebook#793) (facebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 Pulled By: rralcala
…ebook#793) (facebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 Pulled By: rralcala
…ebook#793) (facebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 Pulled By: rralcala
…ebook#793) (facebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 Pulled By: rralcala
…ebook#793) (facebook#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook#778 Closes facebook#793 Differential Revision: D6995213 Pulled By: rralcala
…cona#793) (percona#793) Summary: This change adds a check to see whether the filesystem backing rocksdb_datadir allows O_DIRECT when use_direct_reads is true and prevents rocksdb from coming up. This fixes facebook/mysql-5.6#778 Closes facebook/mysql-5.6#793 Differential Revision: D6995213 Pulled By: rralcala
The text was updated successfully, but these errors were encountered: