Troubleshooting No Data Issue
If you encounter issues with missing data in BanyanDB, follow these troubleshooting steps to identify and resolve the problem.
Check Data Ingestion
- Monitor Write Rate: Use the BanyanDB metrics write rateto monitor the write rate and ensure that data is being ingested into the database.
- Monitor Write Errors: Monitor the write errors metric to identify any issues with data ingestion. High write errors can indicate problems with data ingestion.
- Review Ingestion Logs: Check the BanyanDB logs for any errors or warnings related to data ingestion. Look for messages indicating failed writes or data loss.
Verify the Query Time Range
Ensure that the query time range is correct and includes the data you expect to see. Incorrect time ranges can result in missing data in query results.
- Check Available Data: Check the folders and files in the BanyanDB data directory to verify that the data files exist for the specified time range. Refer to the tsdb documentation for more information on data storage.
- Time Zone Settings: Verify that the time zone settings in the query are correct and align with the data stored in BanyanDB. The BanyanDB server and bydbctl uses the time zone aligned with the system time zone by default.
Check Data Retention Policy
Verify that the data retention policy is not deleting data prematurely. If the data retention policy is set to delete data after a certain period, it may result in missing data in query results. Please check the Data Lifecycle documentation for more information on data retention policies.
Metadata Missing
If the metadata for a group, measure or stream is missing, it can result in missing data in query results. Ensure that the metadata for the group, measure or stream is correctly defined and available in the BanyanDB metadata registry.
If only the metadata is missing, you can recreate the metadata using the SkyWalking OAP, bydbctl or WebUI to restore the missing metadata. Refer to the metadata management documentation for more information.