nucliadb 6.9.2.post5234__py3-none-any.whl → 6.9.2.post5239__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of nucliadb might be problematic. Click here for more details.

@@ -161,7 +161,6 @@ class Rebalancer:
161
161
  Split chooses a >110% filled shard and reduces it to 100%
162
162
  If the shard is between 90% and 110% full, nobody touches it
163
163
  """
164
- logger.info("Starting rebalance for kb", extra={"kbid": self.kbid})
165
164
  await self.build_shard_resources_index()
166
165
  while True:
167
166
  await self.wait_for_indexing()
@@ -180,7 +179,6 @@ class Rebalancer:
180
179
  await self.merge_shard(shard_to_merge, shards)
181
180
  else:
182
181
  break
183
- logger.info("Finished rebalance for kb", extra={"kbid": self.kbid})
184
182
 
185
183
  async def split_shard(self, shard_to_split: RebalanceShard, shards: list[RebalanceShard]):
186
184
  logger.info(
@@ -507,7 +505,13 @@ def needs_merge(shard: RebalanceShard, all_shards: list[RebalanceShard]) -> bool
507
505
 
508
506
  async def rebalance_kb(context: ApplicationContext, kbid: str) -> None:
509
507
  rebalancer = Rebalancer(context, kbid)
510
- await rebalancer.rebalance_shards()
508
+ try:
509
+ logger.info("Starting rebalance for kb", extra={"kbid": kbid})
510
+ await rebalancer.rebalance_shards()
511
+ logger.info("Finished rebalance for kb", extra={"kbid": kbid})
512
+ except Exception as err:
513
+ logger.exception("Rebalance finished with error", extra={"kbid": kbid})
514
+ errors.capture_exception(err)
511
515
 
512
516
 
513
517
  async def run(context: ApplicationContext) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb
3
- Version: 6.9.2.post5234
3
+ Version: 6.9.2.post5239
4
4
  Summary: NucliaDB
5
5
  Author-email: Nuclia <nucliadb@nuclia.com>
6
6
  License-Expression: AGPL-3.0-or-later
@@ -19,11 +19,11 @@ Classifier: Programming Language :: Python :: 3.12
19
19
  Classifier: Programming Language :: Python :: 3 :: Only
20
20
  Requires-Python: <4,>=3.9
21
21
  Description-Content-Type: text/markdown
22
- Requires-Dist: nucliadb-telemetry[all]>=6.9.2.post5234
23
- Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.9.2.post5234
24
- Requires-Dist: nucliadb-protos>=6.9.2.post5234
25
- Requires-Dist: nucliadb-models>=6.9.2.post5234
26
- Requires-Dist: nidx-protos>=6.9.2.post5234
22
+ Requires-Dist: nucliadb-telemetry[all]>=6.9.2.post5239
23
+ Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.9.2.post5239
24
+ Requires-Dist: nucliadb-protos>=6.9.2.post5239
25
+ Requires-Dist: nucliadb-models>=6.9.2.post5239
26
+ Requires-Dist: nidx-protos>=6.9.2.post5239
27
27
  Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
28
28
  Requires-Dist: nuclia-models>=0.50.0
29
29
  Requires-Dist: uvicorn[standard]
@@ -86,7 +86,7 @@ nucliadb/common/cluster/__init__.py,sha256=cp15ZcFnHvpcu_5-aK2A4uUyvuZVV_MJn4bIX
86
86
  nucliadb/common/cluster/exceptions.py,sha256=t7v_l93t44l2tQpdQXgO_w-c4YZRcaayOz1A2i0w4RQ,1258
87
87
  nucliadb/common/cluster/grpc_node_dummy.py,sha256=JkufazWzMA4KFEU8EBkMbiiDW4C8lLcRhiiCxP7aCQY,2949
88
88
  nucliadb/common/cluster/manager.py,sha256=p-haaGEnCa-20t-I2XEo4QJ5ZC1QgJ6p2jzXFYVB6nQ,12346
89
- nucliadb/common/cluster/rebalance.py,sha256=g0QtmDBvfNsajD2HDrJrAtJ3ZiZln_FcnbtM4v5YhWA,22391
89
+ nucliadb/common/cluster/rebalance.py,sha256=0RIyrv8kkTHJFpqC5H3fPukypF0HpRNiN5f4WRiFvh8,22541
90
90
  nucliadb/common/cluster/rollover.py,sha256=kmVCdyjJ1dilnSodHMqf0EUkTjPC5H0aA4JqW9KsEa4,27168
91
91
  nucliadb/common/cluster/settings.py,sha256=f6Y5K0PGahkedwe5wtkWMnbqwDFJgOOwX_MOIGwH9Dg,2271
92
92
  nucliadb/common/cluster/utils.py,sha256=E4GqidwTKczJX_lTnncBCof2fL4CFVVF1eLiz9NWjlc,5494
@@ -385,8 +385,8 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
385
385
  nucliadb/writer/tus/s3.py,sha256=vu1BGg4VqJ_x2P1u2BxqPKlSfw5orT_a3R-Ln5oPUpU,8483
386
386
  nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
387
387
  nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
388
- nucliadb-6.9.2.post5234.dist-info/METADATA,sha256=fKTDCzNB_tMGMjXjDJh6zb8lL0u-kUvKmcWsgKw1CJc,4158
389
- nucliadb-6.9.2.post5234.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
390
- nucliadb-6.9.2.post5234.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
391
- nucliadb-6.9.2.post5234.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
392
- nucliadb-6.9.2.post5234.dist-info/RECORD,,
388
+ nucliadb-6.9.2.post5239.dist-info/METADATA,sha256=QmItzxDN0lYqpyo1MTeG_a51UxYCSGFjnAwnwSsxcX8,4158
389
+ nucliadb-6.9.2.post5239.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
390
+ nucliadb-6.9.2.post5239.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
391
+ nucliadb-6.9.2.post5239.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
392
+ nucliadb-6.9.2.post5239.dist-info/RECORD,,