Replies: 2 comments 7 replies
-
|
Beta Was this translation helpful? Give feedback.
-
another issue, today 26-apr-24 i downloaded and installed latest infinity along with latest sdk infinity-sdk-0.1.0.dev21, When I trying to create a table i got following error 'string indices must be integers'
Code: self.db.create_table("t_webscrape_data", { |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We have creating set of tables(delete if exists and create) and loading them with data using set of methods. These methods called in a constructor.
But when it is called frequently i.e. delete, create and data load , infinity service crashed with following error messages.
Then we need to restart the infinity again.
Exception Message:
terminate called after throwing an instance of 'irs::index_not_found'
what(): No segments* file found.
Aborted (core dumped)
16:50:05.854] [19832] [critical] WalManager::Checkpoint failed: Can't open file: /tmp/infinity/data/catalog/META_CATALOG.21006.json: Too many open files@src/storage/io/local_file_system.cpp:84
terminate called after throwing an instance of 'infinity::UnrecoverableException@infinity_exception'
what(): Can't open file: /tmp/infinity/data/catalog/META_CATALOG.21006.json: Too many open files@src/storage/io/local_file_system.cpp:84
Aborted (core dumped)
code files:
manage_class.txt
processreq_t.txt
infinity info
infinity-sdk 0.1.0.dev7
infinity 0.1.0 build on 2024-02-26 00:50
below the snippets from the attached code files
class manage_class:
def init(self):
# Initialize the infinity connection and database at the time of class instantiation
self.infinity_obj = infinity.connect(REMOTE_HOST)
self.db = self.infinity_obj.get_database("default")
self.LoadClassStatesMaster()
self.LoadClassDetails()
self.LoadClassActionsMaster()
self.LoadMasterData()
self.LoadIntentData()
->exception thrown between any of load* methods
Above class instantiated and used in below class
class proces:
def process_data(request):
global generator # Declare 'generator' as a global variable
j_response = None
obj_mcs = manage_class.manage_class()
above classes part of django web api application, so frequent http requests hit the application.
To avoid crashing, We have implemented a work around using a flag check to ensure that table creation and data loading methods called only once.
Beta Was this translation helpful? Give feedback.
All reactions